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:
Hi Mike,
you know what: Your approach is far easier than mine
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 Such fun!
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
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 Such fun!