Thank you for the clarification. It appears not to be running as a service on my phone or maybe has a different name?
sudo systemctl --system enable watchmodem
[sudo] password for purism:
Failed to enable unit: Unit file watchmodem.service does not exist.
Correct. I aligned the name with the package name. Here’s how the package looks on my phone:
purism@pureos:~$ dpkg-query -W bm818-watchmodem
bm818-watchmodem 0.5+librem5ci79332.e96a15a
purism@pureos:~$ dpkg -L bm818-watchmodem
/.
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/bm818-watchmodem.service
/usr
/usr/bin
/usr/bin/bm818-watchmodem
/usr/sbin
/usr/sbin/bm818-recovermodem
/usr/share
/usr/share/doc
/usr/share/doc/bm818-watchmodem
/usr/share/doc/bm818-watchmodem/README
/usr/share/doc/bm818-watchmodem/changelog.gz
/usr/share/doc/bm818-watchmodem/copyright
/usr/share/sounds
/usr/share/sounds/bm818-watchmodem
/usr/share/sounds/bm818-watchmodem/alarm-clock-elapsed.wav
/usr/share/sounds/bm818-watchmodem/glass.wav
purism@pureos:~$ sudo systemctl status bm818-watchmodem.service
[sudo] password for purism:
● bm818-watchmodem.service - Watch Modem of Librem5
Loaded: loaded (/lib/systemd/system/bm818-watchmodem.service; enabled; preset: enabled)
Active: active (running) since Fri 2022-11-18 14:45:06 CET; 7h ago
Main PID: 607 (bm818-watchmode)
Tasks: 3 (limit: 3124)
Memory: 50.8M
CPU: 20.046s
CGroup: /system.slice/bm818-watchmodem.service
├─607 /bin/bash /usr/bin/bm818-watchmodem
├─611 journalctl -f SYSLOG_IDENTIFIER=ModemManager
└─612 /bin/bash /usr/bin/bm818-watchmodem
Nov 18 14:45:06 pureos systemd[1]: Started Watch Modem of Librem5.
Nov 18 15:57:31 pureos /usr/bin/bm818-watchmodem[2312]: found message indicating a problem with the modem in journal
Nov 18 21:19:29 pureos /usr/bin/bm818-watchmodem[3903]: found message indicating a problem with the modem in journal
Thank you for the explanation, now back to testing:
v 18 13:31:58 l5 systemd[1]: S>
lines 1-13/13 (END)…skipping…
● bm818-watchmodem.service - Wat>
Loaded: loaded (/lib/system>
Active: active (running) si>
Main PID: 15218 (bm818-watchm>
Tasks: 3 (limit: 3175)
Memory: 24.4M
CPU: 178ms
CGroup: /system.slice/bm818>
├─15218 /bin/bash />
├─15219 journalctl >
└─15220 /bin/bash />
Nov 18 13:31:58 l5 systemd[1]
1 Like
Since the modem seems to cut out and not restore after wake from suspend I am seeing if this could be adopted for postmarketOS?
1 Like