How to restart the modem on Arch
#11
(10-21-2021, 03:40 PM)lacriz Wrote:
Code:
if [ -e /dev/ttyUSB2 ]
   echo "modem works"
else
   echo "modem does not work, restarting now ..."
   sudo killall ModemManager
   sudo /usr/bin/ModemManager &
fi
I would stop/start or restart ModemManager via systemctl since it's already integrated by the system as a systemd service. Now you are circumventing the service with unknown consequences (unless you checked how ModemManager.service is configured). It's much cleaner if you interact with the service and not the utility itself.

Your phone always crashing in deep sleep is a much bigger problem though that I would investigate. I don't have anything off the top of my head, but I would check what happens in the logs with journalctl or dmesg.
  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 881 02-20-2024, 09:35 AM
Last Post: _radv_
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 2,306 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 820 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 1,985 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  Arch auto mount usb example Lazy_one 2 2,891 10-06-2023, 09:36 AM
Last Post: luppivega
  Modem Issues SchizoPinePhone225 2 853 08-31-2023, 08:23 PM
Last Post: SchizoPinePhone225
  Remove modem firmware aular 10 2,019 08-23-2023, 05:53 PM
Last Post: aular
  Arch with FDE user641 1 933 07-29-2023, 08:27 AM
Last Post: alpineduck
  No keyboard on Arch Plasma when entering password on document Chief 0 859 12-03-2022, 08:35 PM
Last Post: Chief
  Curious About Arch Ferriah 2 2,179 11-07-2022, 04:38 PM
Last Post: Ferriah

Forum Jump:


Users browsing this thread: 1 Guest(s)