Howto - automatically recover your modem and mobile data after deep sleep
#11
(11-23-2020, 03:25 AM)as400 Wrote: As many of you know, there are problems with Mobile Data connection and modem waking up in a different state after deep sleep.
So I have come up with a solution that is automatic and does not require rebooting the phone.

Find it here --> https://gitlab.com/as400l/pp-modem-guard

Yes, I know it's nasty but the modem behaviour is so painfully unpredictable.


Have you tried the following?

Restart modem with

Code:
mmcli -m any --command='AT+CFUN=1,1'

and activate mobile data with

Code:
nmcli c up Internet

with "Internet" replaced by the name of your mobile data connection name.

Source:
https://gitlab.com/mobian1/issues/-/issu..._438830780

It works quite fine in a script and a sleep of 30 seconds between the two commands.
  Reply


Messages In This Thread
RE: Howto - automatically recover your modem and mobile data after deep sleep - by arno_nuehm - 12-07-2020, 04:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  troubleshooting sleep/wake button on trixie biketool 5 473 05-04-2025, 08:11 PM
Last Post: Kevin Kofler
  Logging modem dialout attempts biketool 2 286 04-11-2025, 02:47 AM
Last Post: vusra
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 7 2,195 02-20-2025, 02:47 PM
Last Post: puffchumpy
  Modem wakes for incoming call, but too slow to answer the call dchang0 8 1,413 12-01-2024, 07:54 PM
Last Post: dchang0
  Mobile internet via cellular network mostly not working Anna 18 16,351 01-19-2024, 02:59 AM
Last Post: anonymous
  MODEM - Usb problem & couldn't query SIM slots: QMI protocol freelectro 5 5,787 06-06-2023, 06:36 AM
Last Post: freelectro
  4G data on default startup / boot dcinoz 1 1,553 04-29-2023, 11:24 PM
Last Post: dcinoz
  ModemManager debug mode? (Needed to flash modem) calinb 1 2,200 02-27-2023, 04:18 PM
Last Post: calinb
  Block firefix-esr-mobile-config from (re)installing itself grump_fiddle_reinstall 3 2,820 01-07-2023, 09:36 AM
Last Post: dcarvil
Exclamation No modems were found: No mobile data, no 2G anonymous 2 2,492 12-26-2022, 06:46 PM
Last Post: anonymous

Forum Jump:


Users browsing this thread: 1 Guest(s)