OESF Portables Forum

Model Specific Forums => Cosmo Communicator => Cosmo Communicator - Linux => Topic started by: cam1965 on November 19, 2020, 10:44:45 am

Title: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: cam1965 on November 19, 2020, 10:44:45 am
https://support.planetcom.co.uk/index.php/Linux_for_Cosmo

"The latest Linux Debian firmware v3 is now available!

This release contains a Cover Display (CoDi) implementation for Linux which provides a number of new features, such as:

 -  Mouse Control - you can now use the CoDi display as a trackpad when the unit is open
 -  Phone Control - you can browse contact and place/accept calls from the Codi screen while the unit is closed
 -  Device Control - you can switch OFF/reboot Cosmo from the CoDi display
 -  Contacts can be updated by the gka-contacts-qt application or directly from the dialer app"

I have tested it. Upgraded from my previous version. Some functions work, other doesn't work  like expected. But I have to say that I have my own compiled kernel and not the kernel from Planet. But Cover Display works.
Please note: If you plan to update your current Linux installation to the latest version, please make sure that you manually install CoDi firmware v15 on android first.
Please post comments.
Thank you.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: oida on November 19, 2020, 06:04:33 pm
I just installed it.
-runs smoother and faster.
-Mouse emulation with CoDi is very sluggish and has no support for right click. So Gemian is still not operateable without a right mouse button.
-mobile network still does not work, even with connman
-Cannot add new user so the device is very insecure
-still no keyboard backlight
-not worth the update imho if you have some programs installed

Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: ArchiMark on November 19, 2020, 06:22:26 pm
Downloaded the new v3 linux file to my Cosmo.

Did 'Change the partition table of your Cosmo'. Choose option 4, Reserve 30GB for Android and 90 GB for Linux. Went OK.

Have problem with the 'Install Custom OS on your Cosmo' step...here's what I see:

Quote
Device is multi-boot
Detecting old-style custom installers, please wait...
E: /bin/sh failed with status 127
Detecting new-style custom installers, please wait...

It's been about 45 minutes since the last line.....with no further text, still says "please wait..."
Seems like something is not working....

Any suggestions???


Thanks for any input on this.

Mark

Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: cam1965 on November 19, 2020, 07:11:53 pm
Downloaded the new v3 linux file to my Cosmo.

Have problem with the next steps...

Quote
Once you downloaded the zip archive you will have to extract its content onto your microSD card:

1. Using the Files app (do not use File Manager app) locate the ZIP archive
2. Tap the archive file to reveal the cosmo-customos-installer folder
3. Long tap on that folder, select Extract to... and finally select the root folder of the microSD card as destination.
4. Complete the ZIP extraction process.
5. Your microSD card should now contain a folder named cosmo-customos-installer with several files inside it.

When I try doing step 2 above using the 'Files' app, it just puts a checkmark next to the file. It does not 'reveal the cosmo-customos-installer folder' as it says in directions.

Also, if I get to that folder, do you see the 'Extract to' option they mention?

Thanks for any input on this.

Thanks,

Mark

Please install "file manager plus ". It is a very good file manger ( play store ). Then long tap the zip file , click  more and extract. Please make sure to do this on to your micro  sd card. Or you can extract the files in your computer with a micro sd card reader. This is for a new linux install.
You can also upgrade your linux install with the instructions provided by Planet.
Good luck.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: ArchiMark on November 19, 2020, 07:29:23 pm
Downloaded the new v3 linux file to my Cosmo.

Have problem with the next steps...

Quote
Once you downloaded the zip archive you will have to extract its content onto your microSD card:

1. Using the Files app (do not use File Manager app) locate the ZIP archive
2. Tap the archive file to reveal the cosmo-customos-installer folder
3. Long tap on that folder, select Extract to... and finally select the root folder of the microSD card as destination.
4. Complete the ZIP extraction process.
5. Your microSD card should now contain a folder named cosmo-customos-installer with several files inside it.

When I try doing step 2 above using the 'Files' app, it just puts a checkmark next to the file. It does not 'reveal the cosmo-customos-installer folder' as it says in directions.

Also, if I get to that folder, do you see the 'Extract to' option they mention?

Thanks for any input on this.

Thanks,

Mark

Please install "file manager plus ". It is a very good file manger ( play store ). Then long tap the zip file , click  more and extract. Please make sure to do this on to your micro  sd card. Or you can extract the files in your computer with a micro sd card reader. This is for a new linux install.
You can also upgrade your linux install with the instructions provided by Planet.
Good luck.

Thanks for the tip!


Meanwhile, I managed (finally....) to get Files to work and extract file onto SD card...

So, was editing my post above yours while you were responding.

Please read new error situation with install of OS.....

Thanks!
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: LinuxGuy on November 20, 2020, 02:10:41 am
Hi Cam1965,



    Mouse Control - you can now use the CoDi display as a trackpad when the unit is open
    Phone Control - you can browse contact and place/accept calls from the Codi screen while the unit is closed
    Device Control - you can switch OFF/reboot Cosmo from the CoDi display


Did update to Codi V15 and Linux V 3 (no complete install necessary - only: https://support.planetcom.co.uk/index.php/Manual_Update_Linux_v3 )

 Mouse Control : works, but sluggish -> I dont use it.

 Phone Control/Device Control: doesnt work! What a pitty - phone usage with codi would be so handy :-(
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: Varti on November 20, 2020, 03:50:29 am
I have merged the news item and the topic under the Cosmo board. I have also noticed that the entire News board was set to read-only, so it was not possible to make any reply on it, this has been now fixed.

Varti

EDIT: thread now split again as requested.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: cam1965 on November 20, 2020, 05:50:27 am
Hi Cam1965,



    Mouse Control - you can now use the CoDi display as a trackpad when the unit is open
    Phone Control - you can browse contact and place/accept calls from the Codi screen while the unit is closed
    Device Control - you can switch OFF/reboot Cosmo from the CoDi display


Did update to Codi V15 and Linux V 3 (no complete install necessary - only: https://support.planetcom.co.uk/index.php/Manual_Update_Linux_v3 )

That is what I did.

 Mouse Control : works, but sluggish -> I dont use it.

Yes, mine too.

 Phone Control/Device Control: doesnt work! What a pitty - phone usage with codi would be so handy :-(

Yes !  The phone rings but I can't answer the call from  codi buttons . I had to open the lid and answer the call and then close the lid to speak  . Also to end a call I had to open the lid also. No history calls logs.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: ArchiMark on November 20, 2020, 09:46:13 am
Downloaded the new v3 linux file to my Cosmo.

I extracted the file folder to my microSD card. There are 3 files inside the folder.

Is it OK that they are inside the folder or should they moved out of the folder to the root level of the card?

I did the step 'Change the partition table of your Cosmo'.

Chose option 4, 'Reserve 30GB for Android and 90 GB for Linux'. Went OK.

Now have problem with the 'Install Custom OS on your Cosmo' step...here's what I see:

Quote
Device is multi-boot
Detecting old-style custom installers, please wait...
E: /bin/sh failed with status 127
Detecting new-style custom installers, please wait...

It's been about 45 minutes since the last line.....with no further text, still says "please wait..."
Seems like something is not working....

Any suggestions???


Thanks for any input on this.

Mark
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: cam1965 on November 20, 2020, 12:23:15 pm
Downloaded the new v3 linux file to my Cosmo.

I extracted the file folder to my microSD card. There are 3 files inside the folder.

Is it OK that they are inside the folder or should they moved out of the folder to the root level of the card?

I did the step 'Change the partition table of your Cosmo'.

Chose option 4, 'Reserve 30GB for Android and 90 GB for Linux'. Went OK.

Now have problem with the 'Install Custom OS on your Cosmo' step...here's what I see:

Quote
Device is multi-boot
Detecting old-style custom installers, please wait...
E: /bin/sh failed with status 127
Detecting new-style custom installers, please wait...

It's been about 45 minutes since the last line.....with no further text, still says "please wait..."
Seems like something is not working....

Any suggestions???


Thanks for any input on this.

Mark

If you have extracted the files , there are 8 files inside the folder , not 3.
(Cosmo_Installer_Debian_kde.sh, Cosmo_Installer_Rooted_Android.sh, Cosmo_Installer_TWRP.sh, gemian-cosmocom-kde-plasma.img, linux-cosmo-boot.img, list_installers.sh, root-boot.img, twrp.img )
You have to put the folder cosmo-customos-installer-v3 to the root of sd card.
I did not test this. I have installed the old version of this installer.
If the problem persists try to install the older version.
Good luck.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: ArchiMark on November 20, 2020, 03:57:17 pm
THANK YOU for the info!

Checked again and there are only 3 files in the folder:

gemian-cosmocom-kde-plasma.img
linux-cosmo-boot.img
root-boot.img

So, that's why I had problem......

Re-downloading file and will try again.....

THANKS!

Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: ArchiMark on November 20, 2020, 05:27:14 pm
Re-downloaded file and this time I got all 8 files after extracting!

Tried installing OS and it worked!

Right now all is good, running KDE and it is working OK....

Can use CoDi display as trackpad....

So, right now, pretty happy.....

 :)

Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: gweber on November 21, 2020, 10:48:26 am
Gentlemen,
How long does the battery charge lasts using Linux? I can barely use Linux for six hours before the battery is depleted. I don't know if clock scaling works (the system reports the clock changes), and it seems that core disabling works, because some apps become sluggish. But both actions don't seem to make any difference on battery charge consumption. Disabling CODI on Android allows me to use Cosmo for almost three days with one charge, with moderate use.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: gabs5807 on November 21, 2020, 02:27:45 pm
On the closed thread "New Linux Update With New Mouse Button Functionality Using CODI Buttons" https://www.oesf.org/forum/index.php?topic=36404.0 (https://www.oesf.org/forum/index.php?topic=36404.0)

@mibry wrote:

Quote
The codi-app is installed to /home/cosmo/.config/autostart/codi.desktop, you have to copy the same to the same location of the user you created.

This did not work on my cosmo. And starting the script from codi.desktop on a terminal, it is running but i got an error "Exception: unable to open database file" at start - and CoDi mouse did not work:

Code: [Select]
$ python3 /usr/lib/codi/codiServer.py
Listening...
Codi Linux Server
Device mtk-kpd found.
Exception: unable to open database file
-> SetCoDiStatus
-> SetMouse
-> DateTimeInfo
-> DoNotDisturbStatusInfo
-> BTStatusInfo
-> WiFiStatusInfo
-> ModemSignalInfo
-> MTKDataChangeAlert
-> MTKDataChangeAlert
-> WiFiStatusInfo
<= org.freedesktop.UPower.Device {'UpdateTime': 1605985039, 'TimeToEmpty': 9725, 'Voltage': 3.98, 'EnergyRate': 4.036516, 'EnergyFull': 11.72508, 'Energy': 10.9043244} []
-> BatteryLevelInfo
...

Examine the script did not show an access to a database  ??? so i don't see what is missing ...

Edit: the same error came in user cosmo.
But using CoDi i see:

Code: [Select]
...
-> MTKDataChangeAlert
-> MTKDataChangeAlert
-> WiFiStatusInfo
<- MouseInfo
mode = 1
x_coord = -23
y_coord = -13
<- MouseInfo
mode = 1
x_coord = -9
y_coord = 23
<- MouseInfo
mode = 1
x_coord = -6
y_coord = 25
<- MouseInfo
...

2nd edit:
i rebooted the system several times now it works as expected - sorry for confusing here ???.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: LinuxGuy on November 21, 2020, 04:23:13 pm


Can use CoDi display as trackpad....

So, right now, pretty happy.....

But can you use CoDi for phone calls under Linux?
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: peter on November 22, 2020, 01:02:22 am

-Cannot add new user so the device is very insecure


One of the first things I did after installing v3 was add a new user. 
https://devconnected.com/how-to-add-and-delete-users-on-debian-10-buster/#Adding_a_user_using_adduser

Then I changed the password of the default user "cosmo" (although I'll probably just delete that account once I get CoDi set up on my new user account).
https://devconnected.com/how-to-change-user-password-on-debian-10/#Change_Another_Users_Password_with_passwd
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: oida on November 22, 2020, 02:51:25 am

-Cannot add new user so the device is very insecure


One of the first things I did after installing v3 was add a new user. 
https://devconnected.com/how-to-add-and-delete-users-on-debian-10-buster/#Adding_a_user_using_adduser

Then I changed the password of the default user "cosmo" (although I'll probably just delete that account once I get CoDi set up on my new user account).
https://devconnected.com/how-to-change-user-password-on-debian-10/#Change_Another_Users_Password_with_passwd

Thanks a lot!

I also cannot Import vcf contacts, Screen stays white in the Phone App. Any ideas? Tia
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: cam1965 on November 23, 2020, 01:38:59 pm


Can use CoDi display as trackpad....

So, right now, pretty happy.....

But can you use CoDi for phone calls under Linux?

Hi LinuxGuy.
After reinstalling the new image, Yes, I can use Cosmo as phone answering and dialing from codi. I have also installed connman and cmst to enable internet data sim . It conflicts partially with network-manager ( installed from planet image ).  Sometimes  opening connman is slow. That is the  only problem.  Installed also ofono-scripts. If you have to open a video and audio you have to change in system settings output to speaker. Because it is set automatically to earphone ( because of telephony ).
CAM.
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: LinuxGuy on November 23, 2020, 11:57:14 pm
Thanks for the info!

So just following the update procedure lined out by PC didnt do the trick .. .. <sigh> ... 
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: oida on November 24, 2020, 03:58:28 pm
I can use codi to call people from the missed-call-list. I cannot call anyone in contacts.
But why care - import of contacts does not work anyway, nor are contacts in Linux recogniced by the phone app. Android is outdated. But it works well as a toy phone for my 3 and 5 years old children ;-)
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: BobA on December 08, 2020, 12:17:54 pm
Greetings!

I'm new to the group so please bear with me if this is widely known/understood.

I was keenly interested in getting he keyboard backlight to work in Cosmo Linux Firmware V3, I asked the support at Planet Computers if there was any way to turn the Keyboard Backlight on, turns out there is (the response from the Planet Computers support folks follows:

In Linux you can adjust the keyboard backlight from the command line.

The following command will work:

“echo X > /proc/aw9524_led_proc”

Where X range from 40 (no light) to 45 (light intensity max).


Again if this is old news my sincere apologies, I hadn't come across the above info before and wanted to share it.

--BobA
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: MonkeyControl on December 08, 2020, 02:37:31 pm
Greetings!

I'm new to the group so please bear with me if this is widely known/understood.

I was keenly interested in getting he keyboard backlight to work in Cosmo Linux Firmware V3, I asked the support at Planet Computers if there was any way to turn the Keyboard Backlight on, turns out there is (the response from the Planet Computers support folks follows:

In Linux you can adjust the keyboard backlight from the command line.

The following command will work:

“echo X > /proc/aw9524_led_proc”

Where X range from 40 (no light) to 45 (light intensity max).


Again if this is old news my sincere apologies, I hadn't come across the above info before and wanted to share it.

--BobA


A few more for both the Gemini and the Cosmo on this webpage below: 

https://github.com/gemian/gemian/wiki/LEDs
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: ArchiMark on December 08, 2020, 03:17:25 pm
Greetings!

I'm new to the group so please bear with me if this is widely known/understood.

I was keenly interested in getting he keyboard backlight to work in Cosmo Linux Firmware V3, I asked the support at Planet Computers if there was any way to turn the Keyboard Backlight on, turns out there is (the response from the Planet Computers support folks follows:

In Linux you can adjust the keyboard backlight from the command line.

The following command will work:

“echo X > /proc/aw9524_led_proc”

Where X range from 40 (no light) to 45 (light intensity max).


Again if this is old news my sincere apologies, I hadn't come across the above info before and wanted to share it.

--BobA

Hi BobA and other new members,

Welcome to this illustrious and helpful group!

Thanks for your sharing.

Enjoy your time here.

Best,

Mark
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: BobA on December 11, 2020, 12:37:51 pm
Hi folks!

I've been using this V3 linux implementation for a few weeks and have had pretty good luck with it.

I had a "USB C Hub, MCY 8-in-1 Type c hub Adapter with RJ45 Ethernet Port" laying around and it works well on port 1 (the left side).  I have used an ethernet connection for several days connected to that hub.  I haven't tested the hdmi yet but it shows it's there and I am confident that will work.

I had two items that I'd love to get some feedback on from anyone:

__USB to Serial adapters  -Do any work in this version of linux?
    I have tested a Prolific 2303 chipset based USB to Serial adapter as well as an FTDI Based USB to Serial Adapter -in both cases I know they adapters have the real chipsets vs a knock-off/grey market chip.  Both adapters are properly enumerated on the USB bus (lsusb) and have a device id etc but don't get as far as getting a usable /dev/TTYUSB*.  I'm thinking there may not be kernel support in this build for ftdi.sio for example or whatever the one is for the prolific2303.  Has anyone had any experience with USB to Serial on this build with the Cosmo?  I'm thinking I'm going to have to do this the hard way unless I've missed something.

__ofono-scripts: does anyone have one of these that works well for Google Fi in the US?  I have a SIM on the way from google and am hopeful ill be able to pull what's needed off the SIM for the script automagically but it never is that easy it seems ;-).

Thanks for your time!

--BobA
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: MonkeyControl on February 24, 2021, 07:14:17 pm
I also cannot Import vcf contacts, Screen stays white in the Phone App. Any ideas? Tia
Apologies for the late response on this one, I spend most of my time in UBPorts these days. 
This link has a solution: 
https://forum.pine64.org/showthread.php?tid=10711
I've just tried it, it works for me. 
Title: Re: Cosmo Linux firmware v3 has been released with Cosmo Cover Display support.
Post by: LinuxGuy on April 17, 2021, 04:30:59 pm
Quote
Quote
But can you use CoDi for phone calls under Linux?
Hi LinuxGuy.
After reinstalling the new image,

But if I reinstall the whole image (instead of apt update etc.) I will loose my complet configuration, right? Reflashed manually v15 but calling via codi still doesnt work, Touchpad works...
Thanks for a hint