How to restart the modem on Arch
#10
You are right, thanks again! This is my improved script.
As soon as I get it more field-tested I will set it up as a systemd service:

Code:
if [ -e /dev/ttyUSB2 ]
   echo "modem works"
else
   echo "modem does not work, restarting now ..."
   sudo killall ModemManager
   sudo /usr/bin/ModemManager &
fi

(10-21-2021, 09:02 AM)mikehenson Wrote: I think a lot of the issues I see are coming from the Deep Sleep. I used to have the modem disconnecting, clock drifting, calls taking to long to ring...
So, I disabled the deep sleep in the settings. Settings >> Power >> Automatic Suspend >> OFF

I have not seen my modem disconnect in a long time. The time is always right. I get every phone call. I just charge the phone every 3-4 hours.

Hi Mike,

you know what: Your approach is far easier than mine Smile
Seeing that deep sleep is not even working for me (at all, not ever) I will try that out.
First I will investigate if these 2 take about the same time:
a) Manually shutting down the pp + starting it up again
vs
b) Letting the pp go to deep sleep, failing at it; then timing how long it takes the pp to 'wake up' again (it seems to restart but I dunno)

While writing this I think there may be a valid reason to let the pp go to 'sleep', even if it fails to actually suspend the OS + apps: It wakes up when being called / when receiving a text message. This I want, it is the least the pp can do imho. I will investigate if that works when I shut down the pp.

Just when I thought I finished setting up my first Linux phone.. I should've known better Smile Such fun!
  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 991 02-20-2024, 09:35 AM
Last Post: _radv_
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 2,393 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 875 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 2,057 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  Arch auto mount usb example Lazy_one 2 2,933 10-06-2023, 09:36 AM
Last Post: luppivega
  Modem Issues SchizoPinePhone225 2 888 08-31-2023, 08:23 PM
Last Post: SchizoPinePhone225
  Remove modem firmware aular 10 2,117 08-23-2023, 05:53 PM
Last Post: aular
  Arch with FDE user641 1 966 07-29-2023, 08:27 AM
Last Post: alpineduck
  No keyboard on Arch Plasma when entering password on document Chief 0 875 12-03-2022, 08:35 PM
Last Post: Chief
  Curious About Arch Ferriah 2 2,206 11-07-2022, 04:38 PM
Last Post: Ferriah

Forum Jump:


Users browsing this thread: 1 Guest(s)