Re: Minimizing unsolicited events & wakeups

2021-01-06 Thread Tom Loten
Appreciate the response Aleksander :) > Is it that you're building MM without suspend/resume support? It is built with the suspend/resume support, but I forgot to mention I'm yanking the tablecloth out via 'echo mem > /sys/power/state'. If I do it via 'systemctl suspend' MM does indeed teardown &

Re: Faster resume probing

2021-01-06 Thread Tom Loten
I've also been working with USB QMI modems (Quectel and Simcom) and getting suspend-to-ram/resume working smoothly, so I figured perhaps I can share some of the things I've learnt along the way. But do note that I'm not by any means an expert here - this is my first foray into usb & modems, so do t

SIM Switching using mmcli

2021-01-06 Thread Nick B
Hey, I would like to add support for SIM switching to ModemManager.proto for OpenWrt, but the only way to achieve this currently (AFAIK) is by using qmicli --sim-switch-slot. I have it working by calling qmicli, but is it possible to do it without depending on qmicli? If not, would there there

Re: Minimizing unsolicited events & wakeups

2021-01-06 Thread Aleksander Morgado
Hey, > I'm trying to use ModemManager (in conjunction with NetworkManager) to manage > a Quectel EC25 mini-pcie module (which is actually USB) using QMI. More > specifically, I need it to play-nice with suspend-to-ram, and minimise the > frequency at which it wakes up the host. > I've managed

Re: Faster resume probing

2021-01-06 Thread Aleksander Morgado
Hey, > Thanks to the logs of ModemManager, I could identify several places > where we lose some time during the resume sequence of a suspend/resume > cycle: > > 1. ModemManager waits a fixed amount of time to make sure that all > ports of a modem show up using udev, losing ~1.5s It's a bit more c