ModemManager and sleep

Angelo Corsaro corsaroangelo at gmail.com
Tue Dec 10 10:35:57 UTC 2019


Hi,
I just updated the modemmanager, but this not solve the issue:



After power on

root at angelo-thinkpad-x1-carbon-4th:~# systemctl status ModemManager.service

● ModemManager.service - Modem Manager
    Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; 
vendor preset: enabled)
    Active: active (running) since Tue 2019-12-10 11:29:49 CET; 4min 2s ago
  Main PID: 1000 (ModemManager)
     Tasks: 5 (limit: 4915)
    CGroup: /system.slice/ModemManager.service
            ├─1000 /usr/sbin/ModemManager --filter-policy=strict
            └─1387 /usr/lib/libmbim/mbim-proxy

dic 10 11:29:55 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<warn>  couldn't load initial EPS bearer settings: 'NoDeviceSupport'
dic 10 11:29:55 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<warn>  Couldn't open ports during Modem SIM hot swap enabling: Couldn't 
get primary port
dic 10 11:29:55 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem: state changed (unknown -> disabled)
dic 10 11:29:55 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed 
(disabled -> enabling)
dic 10 11:29:55 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<warn>  Failure
dic 10 11:29:55 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration 
state changed (unknown -> searching)
dic 10 11:29:56 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed 
(enabling -> searching)
dic 10 11:29:56 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration 
state changed (searching -> registering)
dic 10 11:29:56 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration 
state changed (registering -> home)
dic 10 11:29:56 angelo-thinkpad-x1-carbon-4th ModemManager[1000]: 
<info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed 
(searching -> registered)

root at angelo-thinkpad-x1-carbon-4th:~# mmcli -L
     /org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless, 
Incorporated] Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A
root at angelo-thinkpad-x1-carbon-4th:~#

After sleep (i.e. the lid closed)

root at angelo-thinkpad-x1-carbon-4th:~# mmcli -L
No modems were found
root at angelo-thinkpad-x1-carbon-4th:~# systemctl status ModemManager.service
● ModemManager.service - Modem Manager
    Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; 
vendor preset: enabled)
    Active: active (running) since Tue 2019-12-10 11:07:59 CET; 17min ago
  Main PID: 1035 (ModemManager)
     Tasks: 3 (limit: 4915)
    CGroup: /system.slice/ModemManager.service
            └─1035 /usr/sbin/ModemManager --filter-policy=strict

dic 10 11:15:07 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0xf aborted, but message is not abortable
dic 10 11:15:08 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0x10 aborted, but message is not abortable
dic 10 11:15:09 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0x11 aborted, but message is not abortable
dic 10 11:15:10 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0x12 aborted, but message is not abortable
dic 10 11:15:11 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0x13 aborted, but message is not abortable
dic 10 11:15:12 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0x14 aborted, but message is not abortable
dic 10 11:15:13 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
transaction 0x15 aborted, but message is not abortable
dic 10 11:15:13 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
<info>  [device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2] creating 
modem with plugin 'Sierra' and '2' ports
dic 10 11:15:13 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
<warn>  Could not grab port (usbmisc/cdc-wdm0): 'Cannot add port 
'usbmisc/cdc-wdm0', unsupported'
dic 10 11:15:13 angelo-thinkpad-x1-carbon-4th ModemManager[1035]: 
<warn>  Couldn't create modem for device 
'/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2': Failed to find primary 
AT port
root at angelo-thinkpad-x1-carbon-4th:~#






Il 10/12/19 10:06, Aleksander Morgado ha scritto:
> Hey,
>
>> I'm using Ubuntu 18.04.3 lts on a Lenovo Thinkpad X1 carbon i7-6600 with modem LTE Sierra ID_MODEL=Sierra_Wireless_EM7455_Qualcomm_Snapdragon_X7_LTE-A.
>> When the laptop is power up I can use the modem, but when the laptop went to sleep and after I resume it, the modem disappear.
>> Now the laptop is resumed and the modem is not available to ModemManager 'cause this error:
>>
>> root at angelo-thinkpad-x1-carbon-4th:~# systemctl status ModemManager
>> ● ModemManager.service - Modem Manager
>>     Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)
>>     Active: inactive (dead) since Sat 2019-12-07 16:52:35 CET; 30min ago
>>    Process: 13379 ExecStart=/usr/sbin/ModemManager --filter-policy=strict (code=exited, status=0/SUCCESS)
>>   Main PID: 13379 (code=exited, status=0/SUCCESS)
>>
>> dic 07 16:52:35 angelo-thinkpad-x1-carbon-4th systemd[1]: Starting Modem Manager...
>> dic 07 16:52:35 angelo-thinkpad-x1-carbon-4th ModemManager[13379]: <info>  ModemManager (version 1.10.0) starting in system bus...
>> dic 07 16:52:35 angelo-thinkpad-x1-carbon-4th ModemManager[13379]: <warn>  Could not acquire the 'org.freedesktop.ModemManager1' service name
>> dic 07 16:52:35 angelo-thinkpad-x1-carbon-4th ModemManager[13379]: <info>  ModemManager is shut down
>> dic 07 16:52:35 angelo-thinkpad-x1-carbon-4th systemd[1]: Started Modem Manager.
>>
> That error above is weird, were you running ModemManager manually
> yourself at some point? It doesn't make sense that the systemd started
> service ends up failing like that unless there was another
> ModemManager process around.
>
> The issue with not being available after suspend may be a timing
> issue, I would definitely try with a newer ModemManager version (e.g.
> 1.12) if possible. I maintain a PPA for Ubuntu 18.04 here, but I
> didn't upgrade the MM there to 1.12 yet. Anyway, that PPA also
> contains newer libqmi/libmbim, so I would definitely try using that
> PPA and see what happens:
> https://launchpad.net/~aleksander-m/+archive/ubuntu/modemmanager-bionic
>
> Will try to upgrade MM in the PPA soon, but cannot promise.
>



More information about the ModemManager-devel mailing list