[Librem 5, BM818-A1] WWAN connection remains offline after wake from suspend even though phosh shows 4G, VPN connected
Environment: Librem 5, BM818-A1 Modem, Firmware MPSS.JO.2.0.2.c1.1-00032-9607_GENNS_PACK-1 1 [Feb 25 2019 0...], kernel 6.6.32-librem5.2 #2-postmarketOS
, 4G, OpenVPN - VPN Autoconnect, networkmanager v 1.48.2-r0, postmarketos edge, mobile data on, data roaming on, t-mobile/mint, mobile broadband: ip4 settings automatic, ip6 disabled/ or automatic, vpn: ip4 automatic (vpn), ip6 disabled (all network routed through ip4).
Steps to repeat:
- connect to 4G (4G only setting) wwan, /w vpn
- confirm connection to internet / browse website / update gnome-software etc..
- suspend phone / or wait until phone suspends with suspend timer enabled
- wake phone
- confirm no connection to internet / cannot browse website / cannot update gnome-software etc..
Observe that 4G, VPN icon is still showing active connection. Toggling Mobile Data on/off does not resolve connection issue showing continuously trying to establish vpn connection. After toggling Mobile Data on/off in phosh settings and while it tries to start secondary vpn connections the "no mobile data" icon shows in phosh. Toggling HKS modem restores connection.
Information:
ip a
nmcli con show myconnection
nmcli dev status
- shows cdc-wdm0 gsm connected my connection
sudo service networkmanager restart
- shows stopping/starting networkmanager, but connection is not re-established
sudo dmesg | grep wwan
- seems to only show the boot up log
sudo dmesg | grep modem
- doesn't indicate any issues
- What it should be doing after wake from suspend it accurately show that there is no mobile data connection.
- Actually reconnect all connections that were closed during suspend in sequence: power up/or wake modem > connect gsm > connect vpn;
Not sure the following would help in my case, but attempting to manually install Chri's scripts that monitors when modem is lost and power cycles it. Maybe the same script could also be used to automatically power cycle modem on wake from suspend (which we know works at re-establishing the connection every time):