How to restart the modem on Arch
#4
Glad it works! What I'm using, on Manjaro Phosh (where restarting eg25-manager works), is a systemd timer to check the modem every minute (as long as the phone is awake) and bring it back up when lost automatically. In my case the modem as /dev/ttyUSB2 disappears, so if that file is gone, eg25-manager is restarted. You could check if in your case /dev/ttyUSB2 disappears as well (or if you find other symptoms of it) and adapt the service unit to restart ModemManager:

/etc/systemd/system/modem-test.timer:
Code:
[Unit]
Description=Check presence of modem every minute

[Timer]
OnBootSec=60
OnUnitActiveSec=60

[Install]
WantedBy=timers.target

/etc/systemd/system/modem-test.service:
Code:
[Unit]
Description=Check if modem is present and restart eg25-manager if necessary
ConditionPathExists=!/dev/ttyUSB2

[Service]
Type=oneshot
ExecStart=systemctl restart eg25-manager.service
  Reply


Messages In This Thread
How to restart the modem on Arch - by lacriz - 10-20-2021, 05:30 PM
RE: eg25-manager for arch? - by kqlnut - 10-21-2021, 12:28 AM
RE: eg25-manager for arch? - by lacriz - 10-21-2021, 02:11 AM
RE: How to restart the modem on Arch - by kqlnut - 10-21-2021, 02:40 AM
RE: How to restart the modem on Arch - by lacriz - 10-21-2021, 03:30 AM
RE: How to restart the modem on Arch - by kqlnut - 10-21-2021, 04:08 AM
RE: How to restart the modem on Arch - by lacriz - 10-21-2021, 05:36 AM
RE: How to restart the modem on Arch - by kqlnut - 10-21-2021, 09:09 AM
RE: How to restart the modem on Arch - by lacriz - 10-21-2021, 03:40 PM
RE: How to restart the modem on Arch - by kqlnut - 10-22-2021, 01:44 AM
RE: How to restart the modem on Arch - by lacriz - 10-22-2021, 05:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Updating Arch Linux _radv_ 8 1,030 02-20-2024, 09:35 AM
Last Post: _radv_
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 2,418 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 892 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 2,090 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  Arch auto mount usb example Lazy_one 2 2,949 10-06-2023, 09:36 AM
Last Post: luppivega
  Modem Issues SchizoPinePhone225 2 906 08-31-2023, 08:23 PM
Last Post: SchizoPinePhone225
  Remove modem firmware aular 10 2,206 08-23-2023, 05:53 PM
Last Post: aular
  Arch with FDE user641 1 976 07-29-2023, 08:27 AM
Last Post: alpineduck
  No keyboard on Arch Plasma when entering password on document Chief 0 882 12-03-2022, 08:35 PM
Last Post: Chief
  Curious About Arch Ferriah 2 2,214 11-07-2022, 04:38 PM
Last Post: Ferriah

Forum Jump:


Users browsing this thread: 1 Guest(s)