Bookworm 6.6.y for the uConsole and DevTerm

4G is not working. Am I missing anything?

alok@uconsole:~ $ service uconsole-4g-cm4 start
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start ‘uconsole-4g-cm4.service’.
Authenticating as: , (alok)
Password:
==== AUTHENTICATION COMPLETE ====
alok@uconsole:~ $ uconsole-4g-cm4 enable
-bash: uconsole-4g-cm4: command not found
alok@uconsole:~ $

Awesome! Especially about the Kernel Repo.

One question: what would I have to do to update from v2 go to v3? I’m not so much asking about the general Bookworm install but about Kernel and Kernel Repo. Is there any info to be found.

I’ve spent considerable time to get everything configured nicely and don’t really want to redo everything again (altough I have backups of the most important config stuff).

I’d imagine I’m not alone whith this.

1 Like

were you able to get it to work? I don’t have a uConsole but helped someone on my last image and incorporated that into this image. Is there any software or something that came with the stock image?

@OE4DNS Yes you can add the apt repo in the OP the regular one or if you’re feeling froggy you can use the bleeding one which is on 6.9.0. you’ll have to unhold the stock kernels and remove them you can leave the 6.6.30 one in just the linux-image and linux-headers. then sudo apt install clockworkpi-cm4-kernel
if you add the bleeding it will replace the kernel in my main bookworm repo.

No @Rex , on the stock image the 4G is woking by using these instructions - How to use the 4G extension · clockworkpi/uConsole Wiki · GitHub

I will try again and update if it works.

Using sudo service uconsole-4g-cm4 start is the same as enable was on the old script. Once you start clthe service continue with the rest of the instructions on that page.

Thank you! Even after your message I did not see the link to the Kernel Repository. So I downlaoded, the image, unpacked it, looked at the APT sources and only then found the link. Which is of course in your topmost post. Silly me :wink:

Anyway this is solved. Are there any other changes (non UI configuration) from v2 to v3. The uconsole-4g-cm4 service is new of course, but anything else important?

The image was built using pi-gen and the kernel I compiled not pulling the stock kernel out and jamming another one in the image file. It’s missing the big apps like libre office, Wolfram alpha and other stuff. A few other apps added. Just a lot cleaner image then how we were making the images.
@OE4DNS If it was me and you didn’t have to compile a bunch of custom stuff. I’d reflash, there’s still remnants of the old stock kernel in the v2 image.

1 Like

@Rex, by using sudo service uconsole-4g-cm4 I don’t think the 4G Modem is powering on. When I use this command then I dont see a green LED blinking.

Below is what happens on the stock image. The only added step is sudo systemctl restart ModemManager otherwise Clockwork’s steps in their Wiki do not work.

alok@uconsole:~ $ uconsole-4g-cm4 enable
Power on 4G module on uConsole cm4
waiting...
done
use mmcli -L to see 4G modem or not
alok@uconsole:~ $ sudo systemctl restart ModemManager
alok@uconsole:~ $ mmcli -L
    /org/freedesktop/ModemManager1/Modem/0 [SIMCOM INCORPORATED] SIMCOM_SIM7600G-H
alok@uconsole:~ $ mmcli -m any | grep "primary port"
           |         primary port: ttyUSB2
alok@uconsole:~ $ sudo nmcli c add type gsm ifname ttyUSB2 con-name 4gnet apn airtelgprs.com
Connection '4gnet' (460117e7-9999-4f8d-98be-dea154706765) successfully added.
alok@uconsole:~ $ sudo nmcli c up 4gnet
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2)
alok@uconsole:~ $ sudo mmcli -m 0
  --------------------------------
  General  |            dbus path: /org/freedesktop/ModemManager1/Modem/0
           |            device id: a72ede59ca9115089b0bdbfc6e9c488218c7d22d
  --------------------------------
  Hardware |         manufacturer: SIMCOM INCORPORATED
           |                model: SIMCOM_SIM7600G-H
           |    firmware revision: LE20B04SIM7600G22
           |            supported: gsm-umts, lte
           |              current: gsm-umts, lte
           |         equipment id: ********************
  --------------------------------
  System   |               device: /sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.3
           |              drivers: option1
           |               plugin: simtech
           |         primary port: ttyUSB2
           |                ports: ttyUSB0 (qcdm), ttyUSB1 (gps), ttyUSB2 (at), ttyUSB3 (at),
           |                       ttyUSB4 (audio)
  --------------------------------
  Status   |       unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
           |                state: connected
           |          power state: on
           |          access tech: lte
           |       signal quality: 45% (recent)
  --------------------------------
  Modes    |            supported: allowed: 2g; preferred: none
           |                       allowed: 3g; preferred: none
           |                       allowed: 2g, 3g; preferred: none
           |                       allowed: 2g, 3g; preferred: 2g
           |                       allowed: 2g, 3g; preferred: 3g
           |                       allowed: 2g, 3g, 4g; preferred: none
           |              current: allowed: any; preferred: none
  --------------------------------
  IP       |            supported: ipv4, ipv6, ipv4v6
  --------------------------------
  3GPP     |                 imei: ************************
           |          operator id: 40410
           |        operator name: IND airtel airtel
           |         registration: home
  --------------------------------
  3GPP EPS | ue mode of operation: csps-2
  --------------------------------
  SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/0
  --------------------------------
  Bearer   |            dbus path: /org/freedesktop/ModemManager1/Bearer/0
alok@uconsole:~ $ sudo ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether d8:3a:dd:b9:19:71  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 19  bytes 2239 (2.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19  bytes 2239 (2.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 100.81.38.XXX  netmask 255.255.255.255  destination 0.0.0.0
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 9  bytes 108 (108.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11  bytes 191 (191.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.XX.71  netmask 255.255.255.0  broadcast 192.168.XX.255
        inet6 XXXX::8816:9e57:dc62:71e3  prefixlen 64  scopeid 0x20<link>
        ether XXXX:ae:d2:b5:b3  txqueuelen 1000  (Ethernet)
        RX packets 518  bytes 77681 (75.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 407  bytes 58996 (57.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

In the mega link, in the kernel folder go to the userland scripts and download that 4G script. That’s the same one that I have trying to start the service. Run just that script by itself from your desktop and see if it works. I’m night of messed something up with the systemd file

I just tried the original script. It works (I did chmod +x before checking the permissions). Looking at the service, I don’t see the commands “enable” or “disable” being passed to the script.

Just got a chance to take a look and the script was executable. I’ll check out the service file and fix it when I get home and make a script to run to correct it. If you’ve already fixed it let me know, and share it so I can just put out a fix quickly.

Can you do me a favor. I put 2 new files in userland scripts in the mega link uconsole-4g and uconsole-4g-cm4.service download both of them change out the systemd service file and try sudo service uconsole-4g-cm4 start to enable and sudo service uconsole-4g-cm4 stop to disable. If that don’t work or if it does and you want to do it a different way put the uconsole-4g file in /usr/bin and just run the command uconsole-4g enable and uconsole-4g disable

Please try both and let me know how they both work so I can whip up a deb to fix.

Both work. The bash command did say permission denied as user and command not found as sudo. After chmod +x it functions properly as user.

I made it executable, mega must not preserve that.
I’ll pack them up into a deb and toss it on the repo, I’ll leave both options just in case someone wants it systemd or just wants a simple command.

The benefit of the command is the echos from the original script.

can you do me a favor and remove the 4g files and sudo apt install uconsole-4g and run the systemd and the bash command and let me know how it goes. If you have my repo setup that is.

thank you for the new update. is the brightness control from keyboard working now?

it was working before you just have to bind the keys.

OK, so for brightness control, I installed brightnessctl.

for wayland, add these lines to ~/.config/wayfire.ini:

repeatable_binding_light_up = KEY_BRIGHTNESSUP
command_light_up = brightnessctl s +1
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN
command_light_down = brightnessctl s 1-

for X11, edit /etc/xdg/openbox/lxde-pi-rc.xml (or maybe ~/.config/openbox/lxde-pi-rc.xml):

find this:

    <keybind key="0xC6">
      <action name="Execute">
        <command>sh -c "if test -e /usr/bin/pt-brightness; then /usr/bin/pt-brightness -d; fi"</command>
      </action>
    </keybind>
    <keybind key="0xC7">
      <action name="Execute">
        <command>sh -c "if test -e /usr/bin/pt-brightness; then /usr/bin/pt-brightness -i; fi"</command>
      </action>
    </keybind>

change to:

    <keybind key="0xC6">
      <action name="Execute">
        <command>brightnessctl s 1-</command>
      </action>
    </keybind>
    <keybind key="0xC7">
      <action name="Execute">
        <command>brightnessctl s 1+"</command>
      </action>
    </keybind>

BUT, in my case, 0xC6 and 0xC7 not working (I 'm not sure why yet), so I use C-A-O and C-A-P.

1 Like

I’ve checked inside clockworkpi-cm4-kernel_6.6.30_arm64.deb and I am unable to understand the purpose of having duplicated files in boot/firmware/ and usr/lib/, as well as empty etc/ directory structures. Can you clarify?