I also see this issue - though I use mobian trixie. I will also try to turn off the usb sleep. Does it reduce battery life significantly? Can you still suspend the system?
@Pirate_Praveen : It is not so significant, but I didn’t measure it properly.
I use system sleep (suspend to ram after 2 minutes, on battery).
I turned off the usb sleep 3 days ago with the command upper, and now everytime I wake up my phone, LTE is back online.
It is also really reliable when I use the phone as a usb network access for my laptop.
3 days without resetting the modem is a first
I tried setting the delay to 2s and 5s without much change, so turned off auto suspend like you suggested.
Turning off auto suspend did not solve the problem entirely and it created problems with suspend. After the phone resumes from suspend, it was not auto registering. So I switched back to auto mode and with 5000 ms auto suspend delay. It has reduced the frequency of physical resets required to a tolerable level.
Maybe it depends on ISP ? I go on testing the on
value for /sys/bus/usb/devices/1-1.2/power/control
… One week later, no more problem.
Connectivity is up in two seconds after wakeup from suspend, and it never drops when using the librem5 as usb modem on my computer.
As soon as I got more time, I will do a power consumption test.
(After a few months)
I finally add a udev rule to set it definitly. the gain is greater than the (battery) pain.
Edit /etc/udev/rules.d/99-usb-modem-always-on.rules
, add this line:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="2020", ATTR{idProduct}=="2060", TEST=="power/control", ATTR{power/control}="on"
Update, my 34 year old computer now has a static IP and can be reached at empire.game-host.org, the old web page is back also.
That’s good news.
You have the Broadmobi modem right?
Yes, the BM818-E1, indeed. I never had time to measure the power consumption impact of this always on policy…
So rules should be the same for the US version of the card I assume
It should be… Run lsusb
to make sure that productID and vendorID are the same.
Understood
How can I make it work under Mobian? I think that I have the same problem.
I never tried mobian, but it should be the same. udev is common between lots of linux.
Try sudo udevadm control --reload
to force rules reload, flip the modem button off then on, wait a few seconds, and check with cat /sys/bus/usb/devices/1-1.2/power/control
. It should now return “on”.
Thank you. I moved the file into /usr/lib/udev/rules.d, cat /sys/bus/usb/devices/1-1.2/power/control
returns on
.
P.S: It doesn’t solve my connectivity problem. cat /sys/bus/usb/devices/1-1.2/power/control
still returns on
, “4G” is displayed but I can’t use Internet, I can’t send SMS.
What’s your provider? Are your APN settings set properly?
My provider is Orange France and yes, my APN settings are correct as I can use Internet, send SMS and MMS for a few minutes after a reboot. I’m going to try other suggestions mentioned in this thread.
P.S: The workaround suggested by the original poster sudo mmcli -m any --reset
works in my case… just for a few seconds
Is that a direct provider or MVNO? Aalso, good luck with your hunt for a ssettings coombinaation that wootkks fooor you.
It’s a direct provider. I’m surprised because the switching the power control from auto to on worked was enough to make things work on my Pinephones but not on the Librem 5.