Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cam1965

Pages: 1 [2] 3 4 ... 23
16
Cosmo Communicator - Linux / Re: USB charging problems
« on: June 14, 2021, 04:56:37 pm »
Thank you for making this issue into its own post.

Jake

You're welcome

17
Gemini PDA - Linux / Re: Ubuntu Touch on gemini
« on: June 14, 2021, 03:42:20 pm »
I found a thread here https://forums.ubports.com/topic/667/gemini-pda/29 - unfortunately it looks like there was no real progress on getting UT to run on Gemini or Cosmo afaict.
Thank you for the information.
I saw that NOKIT installed Ubuntu Touch in gemini.
https://gist.github.com/NotKit/1903121eb2857abf3ceaf1a75cf93bb5

But some links are broken and the halium-boot.img is missing.


18
Gemini PDA - Linux / Ubuntu Touch on gemini
« on: June 14, 2021, 02:47:10 pm »
Just for curiosity. Has anyone installed Ubuntu Touch on gemini? And if so, Id like to know if it is better than   debian ( from Planet ). My gemini is not in use. It is left in my wardrobe with Android only for a long time. I am using Cosmo. Thanks.

19
Cosmo Communicator - Linux / USB charging problems
« on: June 14, 2021, 02:32:11 pm »
In linux and in android  when using a peripheral at the left usb port I  can´t charge at the right usb port . ( The peripheral  connected at left USB port disables the right USB port charging ).
And in linux  the right USB port only works for charging.
In linux , If you connect  a peripheral at the right USB port  it doesn't  work.
In android it works for peripherals in both USB ports. ( with codi enabled ).
And in android you can use the peripheral in the right usb port ( codi enabled )  and charge the cosmo in the left usb port at the same time.
This is confimed by me and by jakfish.
Any Ideas ?
Thank you.

20
Disappointing, but thank you for your confirmation. I thought the problem was on my end.

This is unfortunate as even a usb wifi adapter sucks a lot of battery. Of course, my Cosmo hardware is so broken--speakers, wifi, bluetooth--that perhaps my battery is also at fault.

Jake

OK.
If I find a solution for this I will let you know.
Thank you.
Good Luck !

21
Many thanks. That's some marvelous wallpaper.

Am I doing something wrong or is the Cosmo set up so if you have peripherals attached to the left usb-c, then you can't charge a/c in the right usb-c?

Peripherals seem to shut down the charging.

Jake

I have confirmed this.
The same occurs in android ( when using a peripheral at the left usb port you can´t charge at the right usb port ).
I really don't know.
And the right USB port only works for charging.( in linux ).
If you connect  a peripheral it doesn't  work. ( USB right port )
In android it works for peripherals in both USB ports.
And in android you can use the peripheral in the right usb port and charge the cosmo in the left usb port at the same time.
Please see my post :
https://www.oesf.org/forum/index.php?topic=36570.0  (published on June 07).


 

22
Give how much a modem drains battery, probably not worth compiling the Gemini 3.18 kernel. Just phone tether instead.

I saw a previous post of yours about the sudden absence of the ALT key for shortcut-making, and I can verify that--except for ALT-TAB, ALT key can't be part of the shortcut.

As I've done with my Gemini/Stretch, I'm going to keystroke as much as I can. I'll take your advice and stick to KDE Plasma. I've never used it: is there a way to increase the size of the systray icons? EDIT: https://askubuntu.com/questions/420598/how-do-i-change-the-icon-size-in-the-kde-status-bar/1030407#1030407

Setting it to iconSize=3 makes systray far more finger-friendly

For the Gem, I use this to notify-send uptime, battery, and weather:

Code: [Select]
#!/bin/sh
notify-send " up: $(uptime | sed 's/^.\+up\ \+\([^,]*\).*/\1/g') batt: $(cat /sys/class/power_supply/battery/device/power_supply/battery/uevent | grep -m 1 'POWER_SUPPLY_CAPACITY' | cut -c23-25)%" "$(curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=20902 \ | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3 \1/p')"

So I'll try to make all the machine monitors available by keystroke.

Is it possible to install another main menu, something more Win95-ish?  EDIT: Never mind, right-clicking main menu icon gives better choices.

Jake
I don't  know if there is a possibility to install a main menu more win95-ish.
I have noticed that ALT + SPACE BAR works and you can type the first letters of the application and open it.
This shortcut is very useful.
Or you can assign a shortcut for an application that doesn't make use of ALT key.
For right click mouse use  ( ALT + SPACE  BAR ) and type  xdotool click 3.
Attached photos showing the use of ALT+ SPACE BAR and xdotool.

That is it.
Good Luck !

23
I couldn't have used Cosmo if you had not helped me find a way to the Ralink wifi--the usb modem, while cool, eats too much battery.oo

Did you ever compile usb modem compatibility for your gemini More importantly, have you found a better desktop than kde pasma?

I'd like to use same setup from Stretch, openbox, lxqd, etc

Do you thinks that's possible?

Jake
Hi.
In the past I compiled everything for gemini. But I lost the configurations files.
Today I have only android installed in my gemini. And I  don´t use gemini anymore .It is left in my wardrobe.
In that ocasion it was too more complicated to compile inside gemini. It was more simple to compile in a computer.  I had to change a lot of files in the kernel tree in order to compile a kernel inside gemini.
I think  Adam Boardman has  made changes in the kernel tree to compile inside gemini.
Please see below:

https://github.com/gemian/gemian/wiki/KernelCompilation#cosmo

I think KDE is a better choice for cosmo. The buttons for bright, sound , keyboard bright and other shortcuts are  already configured..
If you install lxqt you will have to configure this. It will demand a lot of time.
So, the best  choice for Cosmo is KDE plasma.
And the best choice for gemini is lxqt .
Good luck.

24
Success. The Ralink driver compiled and I'm on-line. Once again, thank you for your fine instruction.

You've taught me a great deal about kernel compiling. If the rt2800usb driver had not already been in the kernel, how difficult would it have been to insert it?

I've seen your other posts about compiling, and it sounds difficult.

Jake

Hi.
If the driver had not been in the kernel and the suplier didn ´t have a driver to compile with the headers it would be really difficult or impossible to make it work.
But if the suplier had  a driver compatible with the kernel, it would not be so difficult.
I am glad to hear that everything is fine.
Congratulations.
Good Luck !

25
Thanks once more for weighing in.

With regard to disabling/enabling the modem, I agree: there doesn't seem to be a working command. The modem doesn't appear in
Code: [Select]
nmcli and trying
Code: [Select]
sudo eject /dev/ttyusb0 doesn't work, either.

The driver for my Ralink wifi usb driver is rt2800usb and I'll try to learn how to compile that into the kernel. I see that r8152 is already a module in the kernel, but that appears to be ethernet-only. Otherwise, I'd just buy a wifi adapter that used an already-installed module.

Jake

Please follow the steps I told you to compile a kernel.
Please see

https://wiki.debian.org/rt2800usb

The kernel has support  to this wireless as you can see in the attached picture.
You only have to enable the driver on the kernel (in  make menuconfig ).
Good luck.
 


26
Hi .
I have compiled 2 kernels.
Differences are below
< # CONFIG_DEFAULT_SECURITY_SELINUX is not set
< CONFIG_DEFAULT_SECURITY_APPARMOR=y
---
> CONFIG_DEFAULT_SECURITY_SELINUX=y
> # CONFIG_DEFAULT_SECURITY_APPARMOR is not set
4837c4837
< CONFIG_DEFAULT_SECURITY="apparmor"
---
> CONFIG_DEFAULT_SECURITY="selinux"


When apparmor is the default security the kernel doesn't  boot correctly. It  hangs  at the debian logo image.
With  selinux as a default  security everything is OK.

Why ?
Any ideas ?
Thank you.

27
Success. cam1965, thanks so much. I would have never figured this out on my own.

Code: [Select]
qemu-user-binfmt
Had everything else installed, except for that. I wonder why debuild didn't throw up a more informative error.

Code: [Select]
lsusb showed the Huawei and I eventually found its tty (ttyUSB0) and I got on-line with wvdial.

A couple more questions if you don't mind:

1) after exiting wvdial, what would the console command to disable the modem completely (it eats a lot of battery), and the command to bring it back up?

2) if I found out the information about my usb wifi adapter, could I simply paste that into your confignew1 file and recompile? (I have a strong feeling it's not that easy)

Thanks once more for your help.

Jake

Hi.
I don't know the command to disable the modem. When you insert it in the usb port it loads usbserial and usb_wwan modules.
And you cannot unload the modules when the modem is connected. So unplug the modem and connect it when you want to use it.
If you use pppconfig you can turn on or off the connection
to connect :

sudo pon ( connection name )

the modem light will flash.

To disconnect :

sudo poff -a

( So the modem  light will be not  flashing , but will still on )

For the second question, you have to follow as below


First :

sudo apt-get install firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree

git clone https://github.com/gemian/cosmo-linux-kernel-4.4.git
cd cosmo-linux-kernel-4.4
git checkout packaging

go to home directory ( type cd enter )


So make a compressed backup of the kernel
tar cjvf kernel.tar.bz2 cosmo-linux-kernel-4.4 ( It is important  this is a kernel tree without modifications).

Enter to the source
cd  cosmo-linux-kernel-4.4

cp  /home/cosmo/confignew1 ./.config

Make menuconfig ( install the packages to compile  in order to menuconfig works )

Make your changes.( here you have to find your wifi driver and enable it on kernel )

copy .config file to some location ( cp .config /home/cosmo/confignew2 )

remove the directory rm -rf cosmo-linux-kernel-4.4 ( this is very  important )

extract the kernel backup

tar jxvf kernel.tar.bz2
 So you have a kernel tree without modifications.

Enter the source ( cd cosmo-linux-kernel-4.4 )

copy the confignew2 file to arch/arm64/configs/k71v1_64_bsp_defconfig ( cp /home/cosmo/confignew2 arch/arm64/configs/k71v1_64_bsp_defconfig )

so do : debuild -b -uc -us

after the process : sudo dpkg -i ../cosmo-linux-kernel*deb


28
The pre-installed kernel does work with an ethernet adapter. I'm on-line--thanks for reminding me of ethernet connections; it's been a long time since I thought of them :)

Jake

Please
follow exactly as below .
Install the build dependencies:

sudo apt install devscripts build-essential bc qemu-user-binfmt

You must git clone again. Please remove all previous downloaded files.

git clone https://github.com/gemian/cosmo-linux-kernel-4.4.git
cd cosmo-linux-kernel-4.4
git checkout packaging

Supposing the confignew1 is on /home/cosmo directory.

copy the confignew1 file to arch/arm64/configs/k71v1_64_bsp_defconfig ( cp /home/cosmo/confignew1 arch/arm64/configs/k71v1_64_bsp_defconfig )

so do :
debuild -b -uc -us

after the process : sudo dpkg -i ../cosmo-linux-kernel*deb 
( see ../ )

Good luck.
CAM1965

29
Thank you so much, cam1965, for posting your config file and all your fine instruction.

I just got Gemian installed on my Cosmo, will follow your work here, and post back.

You have all my appreciation,
Jake

Edit: uh, oh. Without an internet connection (broken wifi/bt), I'm not certain how to get these compiling files to the Cosmo. Any idea?

Edit2: wait. I think mys data on the sim still works. Will insert card and see what I can do.

You can download the files to the sd card and mount it in linux.
Or use an ethernet adapter like the photo attached.
I don´t know if it works with the pre installed kernel.
With my kernel it works.
Maybe it is necessary to install the necessary files to compile with this adapter
 
 

Good Luck !

30
The attachment directory was set as read-only for some unknown reason. Please let me know if all is working now.

Varti

Thank you so much.
It is working now.

Pages: 1 [2] 3 4 ... 23