QUECTEL 4G SIM, Invalid Transition Error on ThinkPad X1 Carbon Gen 12 with Ubuntu 24.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Logs :
```
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
2024-04-
```
Description:
I am experiencing a problem with ModemManager on my ThinkPad X1 Carbon Gen 12 running Ubuntu 24.04. The issue occurs when attempting to establish a mobile broadband connection. The modem enters an enable sequence but fails with an "Invalid transition" error, leading to a failure in enabling the modem and thus preventing the connection.
Steps to Reproduce:
Start or restart Ubuntu 24.04 on a ThinkPad X1 Carbon Gen 12.
Attempt to connect to a mobile broadband network using the default Network Manager GUI.
Observe the failure in the connection process "/var/log/syslog".
Expected Result:
The modem successfully transitions through its enable sequence, allowing the mobile broadband connection to be established without errors.
Actual Result:
The modem fails to enable, logging an "Invalid transition" error. This results in the modem being stuck in a disabled state, and the connection process is halted. The specific error messages from the ModemManager log are as follows:
ModemManager initiates the simple connect process, moving through states to enable the modem.
The modem state changes from disabled to enabling.
Shortly after, warnings of "Busy" are logged, followed by "couldn't enable interface: 'Invalid transition'" and "failed enabling modem: Invalid transition."
Eventually, the modem transitions back to the disabled state, and NetworkManager logs indicate a fallback to a disconnected state due to a 'user-requested' action.
System Information:
Device: ThinkPad X1 Carbon Gen 12
lsb_release -rd
No LSB modules are available.
Description: Ubuntu Noble Numbat (development branch)
Release: 24.04
Solution for the community :) :
After further investigation and testing, I have found a workaround that successfully resolves the issue with ModemManager not being able to enable the modem, which was preventing the establishment of mobile broadband connections.
Solution Description:
The solution involves two main steps:
- Creating Symbolic Links for FCC Unlock Settings: This step ensures that ModemManager has the necessary permissions and configurations to manage the modem's FCC lock state.
- Directly Setting the Radio State to 'On' Using mbimcli: This command directly interacts with the modem to enable its radio, bypassing the limitations encountered with the Network Manager command-line interface (CLI) or graphical user interface (GUI).
Steps to Apply the Solution:
Create symbolic links for FCC unlock settings by running the following command in the terminal:
bash
sudo ln -sft /etc/ModemManag
Enable the modem's radio state to 'on' using mbimcli by executing:
bash
sudo mbimcli -p -d /dev/wwan0mbim0 --quectel-
Note: These actions were not achievable through the Network Manager CLI interface or its GUI, indicating a limitation in the existing tools for managing specific modem states and configurations.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: network-manager 1.46.0-1ubuntu2
ProcVersionSign
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CRDA: N/A
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 11 11:04:31 2024
InstallationDate: Installed on 2024-04-07 (4 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240407.2)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
nmcli-nm:
RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
running 1.46.0 connected started full enabled enabled disabled enabled enabled