OESF Portables Forum

Model Specific Forums => Cosmo Communicator => Cosmo Communicator - Linux => Topic started by: mibry on February 12, 2020, 02:49:23 pm

Title: Beta Linux Testing
Post by: mibry on February 12, 2020, 02:49:23 pm
There was an email sent out this afternoon from Planet to people that had indicated they wanted beta Linux for the Cosmo. There is a Linux beta image available for testing from Planets site. Be aware it is very early beta.

Regards

Mibry
Title: Beta Linux Testing
Post by: szopin on February 12, 2020, 03:04:52 pm
Anyone managed to get their keyboard layout working? Followed instructions (removed _apt user from passwd, did apt-get update/upgrade, added cosmo to model), but layout stays us no matter what, ctrl-alt-k just displays 'us' even after removing 'us' from layouts
Title: Beta Linux Testing
Post by: mibry on February 12, 2020, 03:10:54 pm
Quote from: szopin
Anyone managed to get their keyboard layout working? Followed instructions (removed _apt user from passwd, did apt-get update/upgrade, added cosmo to model), but layout stays us no matter what, ctrl-alt-k just displays 'us' even after removing 'us' from layouts

Go into the settings -> input devices -> keyboard. In the keyboard model select Planet | Planet Computers Cosmo Communicator.

Then select apply.

This worked for me.
Title: Beta Linux Testing
Post by: szopin on February 12, 2020, 03:12:56 pm
Quote from: mibry
Quote from: szopin
Anyone managed to get their keyboard layout working? Followed instructions (removed _apt user from passwd, did apt-get update/upgrade, added cosmo to model), but layout stays us no matter what, ctrl-alt-k just displays 'us' even after removing 'us' from layouts

Go into the settings -> input devices -> keyboard. In the keyboard model select Planet | Planet Computers Cosmo Communicator.

Then select apply.

This worked for me.
Yeah, still having the default (US?) layout, no luck with adding/changing layouts, so trying to find any special kreys like -_" etc is a bummer
Title: Beta Linux Testing
Post by: mibry on February 12, 2020, 03:16:38 pm
Quote from: szopin
Quote from: mibry
Quote from: szopin
Anyone managed to get their keyboard layout working? Followed instructions (removed _apt user from passwd, did apt-get update/upgrade, added cosmo to model), but layout stays us no matter what, ctrl-alt-k just displays 'us' even after removing 'us' from layouts

Go into the settings -> input devices -> keyboard. In the keyboard model select Planet | Planet Computers Cosmo Communicator.

Then select apply.

This worked for me.
Yeah, still having the default (US?) layout, no luck with adding/changing layouts, so trying to find any special keys like -_" etc is a bummer

Did you do an apt-get update && apt-get dist-upgrade? The image is from about the 21st Jan. And then reboot.
Title: Beta Linux Testing
Post by: szopin on February 12, 2020, 03:28:30 pm
Quote from: mibry
Quote from: szopin
Quote from: mibry
Quote from: szopin
Anyone managed to get their keyboard layout working? Followed instructions (removed _apt user from passwd, did apt-get update/upgrade, added cosmo to model), but layout stays us no matter what, ctrl-alt-k just displays 'us' even after removing 'us' from layouts

Go into the settings -> input devices -> keyboard. In the keyboard model select Planet | Planet Computers Cosmo Communicator.

Then select apply.

This worked for me.
Yeah, still having the default (US?) layout, no luck with adding/changing layouts, so trying to find any special keys like -_" etc is a bummer

Did you do an apt-get update && apt-get dist-upgrade? The image is from about the 21st Jan. And then reboot.
Yes, as I said followed the instructions and did all those (removed _apt user from passwd, did apt-get update/upgrade, added cosmo to model), the layout just remains in 'us' state even after removing 'us' from layouts and rebooting. Btw we need some way to get ESC remapped to ESC, that's a pretty basic key and we don't need the android 'back' in linux
Title: Beta Linux Testing
Post by: mibry on February 12, 2020, 03:37:32 pm
I would suggest jumping onto telegram and go into the planet group and ask on there.
Title: Beta Linux Testing
Post by: szopin on February 12, 2020, 07:14:32 pm
Quote from: mibry
I would suggest jumping onto telegram and go into the planet group and ask on there.
Not sure which group in telegram, but the issue I have seems to be connected to polish layout, I can switch between spanish (es), en-UK (gb) and en-US (us), but pl layout is just skipped (and from terminal 'setxkbmap pl' gives 'Error loading new keyboard description', so looks like an issue with just some of the layouts)
Title: Beta Linux Testing
Post by: irukandji on February 13, 2020, 06:42:24 am
Did someone test linux image? Does it do anything regarding linux phone calls, sms, mobile network?
Title: Beta Linux Testing
Post by: AGdesigns-NL on February 13, 2020, 06:56:29 am
Does this also affect the default stock android, what is the best tool to backup/restore data from the current Android ? Will the planet own updates be affected by it?
How did you subscribed to be a Linux tester?
As a software developer i really cant wait to test/work with Linux on the Cosmo.
Title: Beta Linux Testing
Post by: szopin on February 13, 2020, 07:01:02 am
Quote from: szopin
Quote from: mibry
I would suggest jumping onto telegram and go into the planet group and ask on there.
Not sure which group in telegram, but the issue I have seems to be connected to polish layout, I can switch between spanish (es), en-UK (gb) and en-US (us), but pl layout is just skipped (and from terminal 'setxkbmap pl' gives 'Error loading new keyboard description', so looks like an issue with just some of the layouts)
Looks like multiple issues, one with polish layout, so edited out spanish one to have it match my cosmo hw (you can edit that in /usr/share/X11/xkb/symbols/planet_vndr/cosmo), now as long as it is the only layout in settings it works fine, if I add the 'us' then it breaks again, this time with Fn+key combos behaving weirdly even if switching (ctrl-alt-k) between layouts seems to work in UI.

edit: a proper fix submitted on github
Title: Beta Linux Testing
Post by: mibry on February 13, 2020, 07:34:39 am
Quote from: irukandji
Did someone test linux image? Does it do anything regarding linux phone calls, sms, mobile network?
Calls, SMS, bluetooth and mobile data don't work at present.
Title: Beta Linux Testing
Post by: cam1965 on February 13, 2020, 12:20:14 pm
Quote from: mibry
There was an email sent out this afternoon from Planet to people that had indicated they wanted beta Linux for the Cosmo. There is a Linux beta image available for testing from Planets site. Be aware it is very early beta.

Regards

Mibry

Where is the link to download the image ? Can I install  this image ( I've already partitioned my Cosmo ) without  damage my rooted android installed. Thank you.
Title: Beta Linux Testing
Post by: Ben10 on February 13, 2020, 12:37:45 pm
Is there a way to power off or restart device with buttons only? I was using debian, left it powered on, and after 10-15 mins display turned off, like to some sleep state. The blue caps lock led is on but nothing else. Do I really have to wait for batt to die...?


Btw, here it is:

http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta (http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta)
Title: Beta Linux Testing
Post by: cam1965 on February 13, 2020, 12:38:21 pm
Quote from: cam1965
Quote from: mibry
There was an email sent out this afternoon from Planet to people that had indicated they wanted beta Linux for the Cosmo. There is a Linux beta image available for testing from Planets site. Be aware it is very early beta.

Regards

Mibry

Where is the link to download the image ? Can I install  this image ( I've already partitioned my Cosmo ) without  damage my rooted android installed? Thank you.

Already found it : http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta (http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta)

Only to know : Can I install  this image ( I've already partitioned my Cosmo ) without  damage my rooted android installed. ?Thank you.
Title: Beta Linux Testing
Post by: szopin on February 13, 2020, 12:53:16 pm
Quote from: Ben10
Is there a way to power off or restart device with buttons only? I was using debian, left it powered on, and after 10-15 mins display turned off, like to some sleep state. The blue caps lock led is on but nothing else. Do I really have to wait for batt to die...?


Btw, here it is:

http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta (http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta)
Wow did you get it to suspend? In my usage it would wake up from that with tap on the screen or any keypress, did you tweak anything? ESC is still the power button so you can just hold it for 5+ seconds to power off, wish it could be switched to silver button as esc is crucial for so many apps and it's not 'back' anymore like in android
Title: Beta Linux Testing
Post by: Ben10 on February 13, 2020, 01:13:43 pm
Thank you for interest. No, I didn' do anything to compromise it. Just went to kitchen for 15 mins. It is alive, I can see it still connected to my router but screen is off. Tried to ssh from laptop, found it, but passw. "gemini" is rejected...
Title: Beta Linux Testing
Post by: szopin on February 13, 2020, 01:22:54 pm
Quote from: Ben10
Thank you for interest. No, I didn' do anything to compromise it. Just went to kitchen for 15 mins. It is alive, I can see it still connected to my router but screen is off. Tried to ssh from laptop, found it, but passw. "gemini" is rejected...
Shame, in any case just press and hold ESC until it reboots, no need to wait for battery to die
Title: Beta Linux Testing
Post by: Ben10 on February 13, 2020, 01:28:27 pm
It worked, thank you a lot.
Title: Beta Linux Testing
Post by: AGdesigns-NL on February 13, 2020, 01:33:23 pm
just installed linux. Already looks better then expected!
2 issues i found that makes is hard to use for me;
-is there a way i can calibrate the screen touch panel with linux (Only have a BT Mouse so only can use touch).
-direction keys not working correctly. when i press UP DOWN ENTER it processes UP DOWN DOWN ENTER
Title: Beta Linux Testing
Post by: cam1965 on February 13, 2020, 04:09:50 pm
Quote from: cam1965
Quote from: cam1965
Quote from: mibry
There was an email sent out this afternoon from Planet to people that had indicated they wanted beta Linux for the Cosmo. There is a Linux beta image available for testing from Planets site. Be aware it is very early beta.

Regards

Mibry

Where is the link to download the image ? Can I install  this image ( I've already partitioned my Cosmo ) without  damage my rooted android installed? Thank you.

Already found it : http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta (http://support.planetcom.co.uk/index.php/Cosmo_Linux_Beta)

Only to know : Can I install  this image ( I've already partitioned my Cosmo ) without  damage my rooted android installed. ?Thank you.

Updated : Installed linux without any damage to my android installation.

Only a problem with twrp boot . Please see :

https://www.oesf.org/forum/index.php?showtopic=36119 (https://www.oesf.org/forum/index.php?showtopic=36119)
Title: Beta Linux Testing
Post by: mmbika on February 14, 2020, 10:05:48 pm
Can someone please make and post some videos with this latest Linux stuff ... there is nothing on the web yet about it and results point to months old links, want to see how this Android and Linux lives side by side and if anyone did manage to get it over the external monitor it would be even better ... if someone could use just USB monitor
Title: Beta Linux Testing
Post by: mibry on February 19, 2020, 08:15:43 am
Quote from: mmbika
Can someone please make and post some videos with this latest Linux stuff ... there is nothing on the web yet about it and results point to months old links, want to see how this Android and Linux lives side by side and if anyone did manage to get it over the external monitor it would be even better ... if someone could use just USB monitor

I will post a video in the next couple of days.
Title: Beta Linux Testing
Post by: mibry on February 23, 2020, 05:34:24 am
Quote from: mibry
Quote from: mmbika
Can someone please make and post some videos with this latest Linux stuff ... there is nothing on the web yet about it and results point to months old links, want to see how this Android and Linux lives side by side and if anyone did manage to get it over the external monitor it would be even better ... if someone could use just USB monitor

I will post a video in the next couple of days.

Video of Linux running on the Cosmo. Warning, the file is 183mb.

 https://1drv.ms/v/s!Ag51c2D8JaCgtg0St-k...MngY4L?e=si9gYC (https://1drv.ms/v/s!Ag51c2D8JaCgtg0St-kINcMngY4L?e=si9gYC)
Title: Beta Linux Testing
Post by: mmbika on February 25, 2020, 05:01:49 am
Quote from: mibry
Quote from: mibry
Quote from: mmbika
Can someone please make and post some videos with this latest Linux stuff ... there is nothing on the web yet about it and results point to months old links, want to see how this Android and Linux lives side by side and if anyone did manage to get it over the external monitor it would be even better ... if someone could use just USB monitor

I will post a video in the next couple of days.

Video of Linux running on the Cosmo. Warning, the file is 183mb.

 https://1drv.ms/v/s!Ag51c2D8JaCgtg0St-k...MngY4L?e=si9gYC (https://1drv.ms/v/s!Ag51c2D8JaCgtg0St-kINcMngY4L?e=si9gYC)

video explains the experience and thanks for that.... with a Bluetooth mouse it should be awesome .. does Bluetooth & 4G/Phone or at least  4G Modem work, all together in linux? and off course, audio?
Title: Beta Linux Testing
Post by: TomJ on February 25, 2020, 09:21:13 am
Quote from: mmbika
Quote from: mibry
Video of Linux running on the Cosmo. Warning, the file is 183mb.

 https://1drv.ms/v/s!Ag51c2D8JaCgtg0St-k...MngY4L?e=si9gYC (https://1drv.ms/v/s!Ag51c2D8JaCgtg0St-kINcMngY4L?e=si9gYC)

video explains the experience and thanks for that.... with a Bluetooth mouse it should be awesome .. does Bluetooth & 4G/Phone or at least  4G Modem work, all together in linux? and off course, audio?


I haven't watched the video, but am now thinking about using my Wear OS watch as a mouse for Linux on my phone... may have to try an installation.
Title: Beta Linux Testing
Post by: Elevennails on February 25, 2020, 12:42:19 pm
Someone mentioned they had difficulties getting the keyboard characters to properly display earlier in this thread. Here's the config changes and work arounds i've made so far.

Here's how I've set mine for the UK It does seem to be working fine.

Language

1. Time/Date

settings | Regional Settings | Date & Time | Time Zone | Search London - Click Apply

2. Language

settings Regional Settings | Language | Add Languages - British English - Move it up to top of list to make default - Click apply

3. Formats

Settings Regional Settings | Formats | Region| United Kingdom - British English (en_GB) - I left the "Detailed Settings Check box unticked"

4. Keyboard

settings Regional Settings | Input Devices | Hardware (Tab) | Keyboard model: "Planet | Planet Comupters Cosmo COmmunicator" - Apply
settings Regional Settings | Input Devices | Layouts (Tab) | Configure Layouts | Add "English (UK) n- Select English (USA) and click remove - Apply

Blanks screen on powersave
Next I've disabled the power management. As it seems to keep leaving me with blank screen from which i'm to force a reboot. This does seem to prevent the black screen.
System tray | click the battery icon | Untick "Enable Power Management"


Mouse fix
Next I implemented the mouse fix from here...

https://www.oesf.org/forum/index.php?showtopic=35185 (https://www.oesf.org/forum/index.php?showtopic=35185)

Here's a script to update and upgrade + add the support for the above help topic.

1. create a file called 40-libinput.conf on your sdcard

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "mtrack"
        Option "ScrollDistance" "40"
        Option "FingerLow" "1"
        Option "FingerHigh" "2"
        Option "Sensitivity" "1.8"
        Option "BottomEdge" "0"
        Option "SwipeDistance" "100"
        Option "ScaleDistance" "40"
        Option "ButtonMoveEmulate" "false"
        Option "ClickTime" "25"
        Option "MaxTapMove" "55"
        Option "EdgeBottomSize" "0"
EndSection[/div]

Create a file call mouse.sh on your SDcard

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']#!/bin/bash
echo cosmopda    127.0.0.1 >> /etc/hosts #Stops sudo complaining!
apt-get update
apt-get upgrade
apt-get install xserver-xorg-input-mtrack
cp 40-libinput.conf /usr/share/X11/xorg.con/40-libinput.conf
shutdown -r now #This reboot applies the changes. the service restart didn't work for me[/div]                        

Open a terminal
move to the sdcard location you saved the above files. (mine is here... cd /media/cosmo/3B3A-191B your's may be different)

sudo su #and enter the password for cosmo
. mouse.sh

Hope someone finds this useful. I've copy typed from my cosmo cos i was too lazy to copy file across hopefully there's no typos...

This makes the mouse behave more like a VNC session and not stick to your finger like the default one does. For some reason i was having difficulty getting to the screen extents top and bottom. I like this solution better. You also get gestures for left mouse click etc. I didn't turn off the mouse acceleration in LXQT or build from source. I just used the default debian driver. If you save the 2 script files to your SD card you'll be able to reapply these changes back quickly should you default and start again.

If anyone has any info on how to stop the Wifi card getting a new mac address after each boot. This could save me some agro  I've posted about it here.

https://www.oesf.org/forum/index.php?showtopic=36146 (https://www.oesf.org/forum/index.php?showtopic=36146)

Looks like the same issue as the gemini had.

Hey Dev's great job. I've been longing for the debian release for ages! It's great we finally have it    Thanks for all your efforts


Elevennails