PINE64
How to restart the modem on Arch - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Arch Linux on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=159)
+---- Thread: How to restart the modem on Arch (/showthread.php?tid=15146)

Pages: 1 2


RE: How to restart the modem on Arch - kqlnut - 10-22-2021

(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.


RE: How to restart the modem on Arch - lacriz - 10-22-2021

(10-22-2021, 01:44 AM)kqlnut Wrote: 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.

Thank you; in my mind these 2 problems are about equally bad Smile
I followed your advice, maybe you can help? Seems I have a problem with some swap partition?
https://forum.pine64.org/showthread.php?tid=13169&pid=101859#pid101859


PS
You are right of course about how I should restart the ModemManager service. I will follow-up on that Smile