My EM05-G modem, on a fresh installed of debian 12, keeps disconnecting randomly.
Once “sudo systemctl restart ModemManager.service”, the modem continues working again for a minute or two before failing again. The restart can be repeated many times.
“sudo systemctl status ModemManager.service” shows the following messages when the modem gets disconnected:
Feb 29 10:01:20 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 10:01:50 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 10:02:20 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 10:02:50 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 10:03:20 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 10:03:50 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Please suggest how to troubleshoot or to overcome the issue.
*** Info
-
Machine: Lenovo ThinkPad L14 Gen4
-
OS: Debian 12.5
-
FCC unlock: Install lenovo-wwan-dpr on Linux | Snap Store
sudo snap install lenovo-wwan-dpr -
$ mmcli -m 0
General | path: /org/freedesktop/ModemManager1/Modem/0
| device id: de7d1975a882e7b188988d2228b14bb3ec5834a8Hardware | manufacturer: Quectel
| model: Quectel EM05-G
| firmware revision: EM05GFAR07A07M1G
| h/w revision: QUECTEL Mobile Broadband Modul
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 016176008923377System | device: /sys/devices/pci0000:00/0000:00:08.1/0000:07:00.4/usb3/3-4
| drivers: option, cdc_mbim
| plugin: quectel
| primary port: cdc-wdm0
| ports: cdc-wdm0 (mbim), ttyUSB0 (at), wwan0 (net)Status | lock: sim-pin2
| unlock retries: sim-pin2 (3)
| state: connected
| power state: on
| access tech: lte
| signal quality: 58% (cached)Modes | supported: allowed: 3g, 4g; preferred: none
| current: allowed: 3g, 4g; preferred: noneIP | supported: ipv4, ipv6, ipv4v6
3GPP | imei: 016176008923377
| enabled locks: fixed-dialing
| operator id: 52003
| operator name: XXX
| registration: home
| packet service state: attached3GPP EPS | ue mode of operation: csps-2
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/0
| sim slot paths: slot 1: /org/freedesktop/ModemManager1/SIM/0 (active)
| slot 2: /org/freedesktop/ModemManager1/SIM/1Bearer | paths: /org/freedesktop/ModemManager1/Bearer/0
-
$ dmesg
…
[ 7.768837] usb 3-3.2: Found UVC 1.50 device Integrated RGB Camera (30c9:0050)
[ 7.773297] usbcore: registered new interface driver cdc_wdm
[ 7.773888] MCE: In-kernel MCE decoding enabled.
[ 7.778389] intel_rapl_common: Found RAPL domain package
[ 7.778392] intel_rapl_common: Found RAPL domain core
[ 7.803441] cdc_mbim 3-4:1.0: cdc-wdm0: USB WDM device
[ 7.803610] cdc_mbim 3-4:1.0 wwan0: register ‘cdc_mbim’ at usb-0000:07:00.4-4, CDC MBIM, 1a:95:00:45:30:fb
[ 7.803660] usbcore: registered new interface driver cdc_mbim
[ 7.806362] input: Integrated RGB Camera: Integrat as /devices/pci0000:00/0000:00:08.1/0000:07:00.4/usb3/3-3/3-3.2/3-3.2:1.0/input/input12
[ 7.856825] ACPI: button: Power Button [PWRB]
[ 7.856915] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input9
[ 7.857013] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input15
… -
$ lsusb -v
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x1d6b Linux Foundation
idProduct 0x0003 3.0 root hub
bcdDevice 6.01
iManufacturer 3 Linux 6.1.0-18-amd64 xhci-hcd
iProduct 2 xHCI Host Controller
iSerial 1 0000:07:00.4
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x001f
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
bMaxBurst 0
Bus 003 Device 003: ID 2c7c:030a Quectel Wireless Solutions Co., Ltd. Quectel EM05-G
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x2c7c Quectel Wireless Solutions Co., Ltd.
idProduct 0x030a
bcdDevice 2.00
iManufacturer 1 Quectel
iProduct 2 Quectel EM05-G
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0090
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 2 Communications
bFunctionSubClass 14
bFunctionProtocol 0
iFunction 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 14
bInterfaceProtocol 0
iInterface 6
CDC Header:
bcdCDC 1.10
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC MBIM:
bcdMBIMVersion 1.00
wMaxControlMessage 4096
bNumberFilters 32
bMaxFilterSize 128
wMaxSegmentSize 2048
bmNetworkCapabilities 0x20
8-byte ntb input size
CDC MBIM Extended:
bcdMBIMExtendedVersion 1.00
bMaxOutstandingCommandMessages 64
wMTU 1500
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 9
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 2
iInterface 7
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 2
iInterface 7
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
- $ sudo journalctl | grep -i modem
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect started…
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect state (3/10): enable
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] state changed (disabled → enabling)
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect started…
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect state (4/10): wait to get fully enabled
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] Failure
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] Failure
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] couldn’t enable interface: ‘Invalid transition’
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] state changed (enabling → disabled)
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect started…
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect state (3/10): enable
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] state changed (disabled → enabling)
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect started…
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect state (4/10): wait to get fully enabled
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] Failure
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] Failure
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] couldn’t enable interface: ‘Invalid transition’
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] state changed (enabling → disabled)
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect started…
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect state (3/10): enable
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] state changed (disabled → enabling)
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect started…
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] simple connect state (4/10): wait to get fully enabled
Feb 29 09:37:47 xxx ModemManager[947]: [modem0] power state updated: on
Feb 29 09:37:48 xxx ModemManager[947]: [modem0] state changed (enabling → enabled)
Feb 29 09:37:48 xxx ModemManager[947]: [modem0] simple connect state (5/10): wait after enabled
Feb 29 09:37:48 xxx ModemManager[947]: [modem0] 3GPP registration state changed (unknown → idle)
Feb 29 09:37:48 xxx ModemManager[947]: [modem0] couldn’t load operator code: Current operator MCC/MNC is still unknown
Feb 29 09:37:48 xxx ModemManager[947]: [modem0] couldn’t load operator name: Current operator name is still unknown
Feb 29 09:37:48 xxx ModemManager[947]: [modem0] simple connect state (6/10): register
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] 3GPP registration state changed (idle → registering)
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] 3GPP registration state changed (registering → home)
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] state changed (enabled → registered)
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] simple connect state (7/10): wait to get packet service state attached
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] simple connect state (8/10): bearer
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] simple connect state (9/10): connect
Feb 29 09:37:49 xxx ModemManager[947]: [modem0] state changed (registered → connecting)
Feb 29 09:37:50 xxx ModemManager[947]: [modem0/bearer0] reloading stats is supported by the device
Feb 29 09:37:50 xxx ModemManager[947]: [modem0] state changed (connecting → connected)
Feb 29 09:37:50 xxx ModemManager[947]: [modem0] simple connect state (10/10): all done
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2717] modem-broadband[cdc-wdm0]: IPv4 static configuration:
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2717] modem-broadband[cdc-wdm0]: address 10.160.22.242/30 brd* 10.160.22.243 lft forever pref forever lifetime 14-0[0,0] src wwan
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2717] modem-broadband[cdc-wdm0]: gateway 10.160.22.241
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2717] modem-broadband[cdc-wdm0]: DNS 115.178.58.10
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2717] modem-broadband[cdc-wdm0]: DNS 115.178.58.26
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2717] modem-broadband[cdc-wdm0]: MTU 1500
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2718] modem-broadband[cdc-wdm0]: IPv6 base configuration:
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2718] modem-broadband[cdc-wdm0]: address 2001:44c8:42c3:6e82:642b:14bc:8304:7334/64 lft forever pref forever lifetime 14-0[0,0] src unknown (slaac disabled)
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2718] modem-broadband[cdc-wdm0]: gateway 2001:44c8:42c3:6e82:2513:7ff4:d14e:9b6c
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2718] modem-broadband[cdc-wdm0]: DNS 2405:9800:a:1::10
Feb 29 09:37:50 xxx NetworkManager[936]: [1709174270.2718] modem-broadband[cdc-wdm0]: DNS 2405:9800:a:2::26
Feb 29 09:37:57 xxx ModemManager[947]: [modem0] couldn’t load network timezone from the current network
Feb 29 09:38:20 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 09:38:50 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 09:38:52 xxx sudo[3364]: papa : TTY=pts/0 ; PWD=/home/papa ; USER=root ; COMMAND=/usr/bin/systemctl status ModemManager.service
Feb 29 09:39:20 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 09:39:50 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure
Feb 29 09:40:20 xxx ModemManager[947]: [modem0/bearer0] reloading stats failed: Failure