I’m facing the same: more crashes of the modem. I produced months before the following script:
#!/bin/sh
# from https://source.puri.sm/Librem5/linux-next/-/issues/303
#
# Clayton Craft @craftyguy
# Contributor
#
# I've been using the following script to "recover" the modem when it
# disappears, it seems to work every time for me:
set -x
sudo rmmod xhci_plat_hcd xhci_hcd
echo 0 | sudo tee /sys/class/leds/wwan_en/brightness
sleep 2
sudo modprobe xhci_plat_hcd
sleep 5
echo 1 | sudo tee /sys/class/leds/wwan_en/brightness
# added by guru@unixarea.de
#
sleep 5
sudo systemctl restart ModemManager
@tomoqv, et all: due to the fact that this is perhaps not caused by the now working suspend, but at least happens now more often to me, I will creat a new threat for this problem of crashing modem firmware.
Can the Purism team remove this notification, or provide a way to disable it via Gnome Settings please? It makes the notification LED completely useless, as it blinks after it goes into suspend that there is a notification, and it also forwards notifications to connected devices that are not relevant to notify the owner of (e.g. PineTime, Kodi, KDE Connect, etc…)
Today I got the upgrade to kernel 6.2.0-1-librem5. This is not the kernel with the additions of @dos that make suspend work, right? What version is to be expected that has this work for suspend?
I can add that since the upgraded modem firmware, my mobile data (while wifi off with HKS) no longer comes back after suspend unless I reset the modem or power cycle it. It doesn’t seem to matter if I wait a few minutes, data connection refuses to reestablish.
EDIT: It turns out that when the modem reappears after suspend, I also quite often need to power cycle the modem in order to make a phone call. Otherwise, the Calls app is stuck at “Ringing…” and nothing happens even though indicator shows “connected” and 4G/3G etc.
OK. My L5 wakes up always from suspend on incoming calls and satisfies the firmware version you have suggested above. So I wait for the components needed.
Is it possible to have a crude estimate of when all the missing pieces will be available? Maybe in May 2023?
I keep checking suspend after every update. Recently I have noticed this behavior: my L5 always wakes up from suspend when there is an incoming call. Most of the time it does nothing else (no clue there is an incoming call). But there are sometimes that the calls appear systematically correct and works fine until a new reboot will put it again in the state of doing nothing more than waking up.
An orange exclamation mark on the 4G signal strength is always there when it recovers from the suspend state.
One more thing. When it comes up from suspend it often displays a notification about the memory card I have (being mounted I guess).
Awesome, i noticed you had to repeat youself many times 8) thanks for the patience! I noticed that the modem data connection never comes up automatically after phone restart i have to toggle mobile data once each time (thats when using open vpn). Just wondering if that might fix it? That is also true for wifi i think.