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
#12
(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?...#pid101859


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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)