WWAN on the P14s: getting the data connection working
The eSIM post ended with the modem enabled and a CMLink profile installed, but no working data connection. I have since got data working. I also spent an hour chasing an old FCC-lock failure because I was reading logs from the wrong boot.
The connection works
The missing piece was the APN. I had tried cmlink, cmi-connect, and cmnet
for the China Mobile profile. The working value was 3gnet:
nmcli connection add type gsm ifname "*" con-name 5g apn 3gnet
nmcli connection up 5g
That registers as roaming on CHINA MOBILE (CMLink) over LTE and brings up a bearer:
state: registered
power state: on
access tech: lte
registration: roaming
IP4.ADDRESS[1]: 10.179.108.239/27
IP4.GATEWAY: 10.179.108.240
IP4.DNS[1]: 223.119.47.220
Round trip to 223.5.5.5 is about 87 ms. Signal quality sits at 22 percent,
which is not great, but it carries traffic.
It cannot make phone calls
The RM520N-GL is a data-only module. Quectel’s RM5xx series does not support VoLTE or circuit-switched voice, and ModemManager’s voice interface cannot provide calling support for it.
Even if the firmware had voice, there is no audio path. The M.2 card exposes no PCM route into the laptop's sound system, so there is no wire to carry a microphone or a speaker. A voice-capable module in this slot would still need that plumbing to exist.
Calls over this connection need to use a VoIP application.
The warning that is not the problem
ModemManager logs this during startup:
[modem0] Cannot power-up: sotware radio switch is OFF
[modem0] couldn't enable interface: 'Invalid transition'
[modem0] failed enabling modem: Invalid transition
The typo in “sotware” comes from upstream and makes the message easy to search for. The message can indicate an FCC lock, so I initially treated it as the cause.
On this machine, the FCC unlock link was already installed. Nine seconds after the warning, the same boot’s log showed:
[modem0] power state updated: on
[modem0] 3GPP registration state changed (registering -> roaming)
[modem0] state changed (enabled -> registered)
The modem needs a moment after the MHI device appears before it accepts a power-up. ModemManager tries too early, warns, retries, and succeeds. Seeing that warning once per boot is normal. Seeing it repeat forever is the real failure.
Read the right boot
journalctl -u ModemManager -n 60 shows the last 60 lines for the unit across
the journal, without limiting them to the current boot. If the service has been
quiet, that output can include entries from days earlier. I mistook failures
from a previous boot for the current state and wrote a script to create an FCC-
unlock symlink that already existed.
Pass -b:
journalctl -u ModemManager -b
journalctl --list-boots
--list-boots shows the boot time ranges, which I can compare with the
timestamps in the log.
Checking ls -l /etc/ModemManager/fcc-unlock.d/ first would also have shown
that the unlock was already configured.
Off by default
I leave the modem registered but disable automatic activation of the data connection. It comes up when I request it:
nmcli connection modify 5g connection.autoconnect no
Wi-Fi keeps the default route at metric 600. When the modem is up it adds a second default at metric 700, so it sits behind Wi-Fi and only carries traffic when Wi-Fi is gone.
A small helper
ModemManager can assign a different index after restarting. The helper looks up
that index instead of assuming mmcli -m 0 will always refer to the card:
#!/bin/bash
set -uo pipefail
CONN="5g"
PCI_ID="1eac:1007"
AVAIL="/usr/share/ModemManager/fcc-unlock.available.d/${PCI_ID}"
DEST_DIR="/etc/ModemManager/fcc-unlock.d"
modem_index() {
mmcli -L 2>/dev/null | grep -oP '/Modem/\K[0-9]+' | head -1
}
case "${1:-status}" in
up)
nmcli connection up "$CONN" && ip route show default
;;
down)
nmcli connection down "$CONN"
;;
status)
idx=$(modem_index)
[[ -z "$idx" ]] && { echo "No modem found."; exit 1; }
mmcli -m "$idx" | grep -E \
'state:|power state:|access tech:|signal quality:|operator name:|registration:'
nmcli -f NAME,DEVICE,STATE connection show --active | grep -E "NAME|$CONN" \
|| echo "$CONN is down"
;;
unlock)
[[ $EUID -ne 0 ]] && { echo "Run as root."; exit 1; }
mkdir -p "$DEST_DIR"
ln -sf "$AVAIL" "${DEST_DIR}/${PCI_ID}"
systemctl restart ModemManager
;;
esac
unlock is there for the case where the radio really is stuck. Note the PCI
ID: this card sits behind the MHI bus as 1eac:1007, not the USB ID 2c7c:0801
that the Quectel documentation quotes. ModemManager matches on the PCI ID, so
the symlink in /etc/ModemManager/fcc-unlock.d/ must be named 1eac:1007.
Still open
The SIM reports lock: sim-pin2 with fixed-dialing in its enabled locks.
FDN does not block data, and data works, so I have left it alone. It is worth
remembering if an APN change ever fails for no visible reason.