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
  LibreOffice usable with Arch Linux on the Pinephone? Peter Gamma 2 690 07-28-2024, 05:12 AM
Last Post: Peter Gamma
  Updating Arch Linux _radv_ 8 2,511 02-20-2024, 09:35 AM
Last Post: _radv_
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 3,779 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 1,629 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 3,136 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  Arch auto mount usb example Lazy_one 2 3,564 10-06-2023, 09:36 AM
Last Post: luppivega
  Modem Issues SchizoPinePhone225 2 1,409 08-31-2023, 08:23 PM
Last Post: SchizoPinePhone225
  Remove modem firmware aular 10 3,773 08-23-2023, 05:53 PM
Last Post: aular
  Arch with FDE user641 1 1,388 07-29-2023, 08:27 AM
Last Post: alpineduck
  No keyboard on Arch Plasma when entering password on document Chief 0 1,095 12-03-2022, 08:35 PM
Last Post: Chief

Forum Jump:


Users browsing this thread: 2 Guest(s)