HP lt4120 Snapdragon X5 LTE USB modem not recognized by network-manager

Bug #1574582 reported by Marcin
72
This bug affects 12 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

USB modem not recognized by network-manager. Modem information in attached

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: network-manager 1.1.93-0ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CasperVersion: 1.376
Date: Mon Apr 25 11:14:04 2016
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
IpRoute:
 default via 10.106.36.1 dev wlp2s0 proto static metric 600
 1.1.1.1 via 10.106.36.1 dev wlp2s0 proto dhcp metric 600
 10.106.36.0/22 dev wlp2s0 proto kernel scope link src 10.106.39.123 metric 600
 169.254.0.0/16 dev wlp2s0 scope link metric 1000
LiveMediaBuild: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
 wlp2s0 wifi connected /org/freedesktop/NetworkManager/Devices/1 IQORAMS_REPAIR 3b1e13ff-f9c9-4a49-a576-465bc2713e21 /org/freedesktop/NetworkManager/ActiveConnection/1
 enxb2e41f35ffe1 ethernet disconnected /org/freedesktop/NetworkManager/Devices/2 -- -- --
 enp0s31f6 ethernet unavailable /org/freedesktop/NetworkManager/Devices/3 -- -- --
 lo loopback unmanaged /org/freedesktop/NetworkManager/Devices/0 -- -- --
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.

Revision history for this message
Marcin (marcincelebucki) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Eddie Vassallo (eddie-x) wrote :

I have the HP Elite x2 1012 with the HP lt4120 Qualcomm® Snapdragon™ X5 LTE Mobile Broadband Module and it is also not being recognised in any flavour of Ubuntu 16.04.

Revision history for this message
Paolo Pennisi (paolo-pennisi) wrote :

I have an HP EliteBook 745 G3 with the HP lt4120 Qualcomm® Snapdragon™ X5 LTE Mobile Broadband Module and it is not recognized by Xubuntu 16.04 as well.

Changed in network-manager (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Fèlix (felix-luengo) wrote :

Hi,

We have the HP EliteBook 820 G3 with the HP lt4120 Qualcomm® Snapdragon™ X5 LTE Mobile Broadband Module and it is also not being recognised in any flavour of Ubuntu 16.04.

After a clean setup, the lt4120 is recognized as a second ethernet card.

We had the same issue on another HP laptop, ProBook 640 G2, and solved for Ubuntu 14.04.4 LTS creating a '99-XXX.rules' file on '/etc/udev/rules.d/' folder. (Attached in case is useful for someone)

This solution doesn't work for the EliteBook 820 G3 and Ubuntu 16.04, neither Ubuntu 14.04:
After adding the '99-XXX.rules' file now we can see the 'Mobile broadband enable' options under the Network Manager system bar, so the card is not recognized as ethernet. But it does nothing when selecting it: always appears as "Disabled Mobile Broadband".

Revision history for this message
Petr Kutalek (petrkutalek) wrote :

Felix,

'99-XXX.rules' file used to work for me on lt4120 and HP EliteBook 840 G3 few weeks ago on 16.04LTS. Unfortunatelly, it does not work now. I have absolutely no idea what has changed. (mmcli -L finds my modem, however, I am unable to communicate with it. mmcli -L shows "unknown modem").

Are you able to initiate your modem via this commands?

sudo sh -c 'echo "1" > /sys/bus/usb/devices/usbX/X-X/bConfigurationValue' (find and use appropiate Xes for you)
sudo modprobe -b qmi_wwan
sudo sh -c 'echo "03f0 9d1d" > /sys/bus/usb/drivers/qmi_wwan'

Then mmcli -L

Petr

Revision history for this message
Alexander Borovsky (alex-borovsky) wrote :

This modem require configuration loaded in order to work. One of the options is loading Windows, waiting while it configure modem and then restart.

Other option is described here: https://abarouski.blogspot.com/2016/07/configuring-hp-lt4120-in-linux-as-i.html

This solution not yet in upstream (but I'm working on it).

Revision history for this message
debb1046 (debb1046) wrote :

In 18.04 I can get the modem working by:
sudo usb_modeswitch -v 0x03f0 -p 0x9d1d -u3

Revision history for this message
Andreas Martitsch (anma2019) wrote :
Download full text (6.1 KiB)

In 18.04 I was able to configure the modem properly using following steps:

XXX@XXX-HP-EliteBook-840-G3:~$ uname -a
Linux XXX-HP-EliteBook-840-G3 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Step 1: Check if the LTE module is properly detected by the NetworkManager

XXX@XXX-HP-EliteBook-840-G3:~$ mmcli -L
    /org/freedesktop/ModemManager1/Modem/0 [HP] HP lt4120 Snapdragon X5 LTE

XXX@XXX-HP-EliteBook-840-G3:~$ mmcli -m 0

  --------------------------
  General | dbus path: /org/freedesktop/ModemManager1/Modem/0
           | device id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  --------------------------
  Hardware | manufacturer: HP
           | model: HP lt4120 Snapdragon X5 LTE
           | revision: T77W595.F0.0.0.3.4.GC.020 1 [Jul 01 2015 06:00:00]
           | h/w revision: V055
           | supported: gsm-umts, lte
           | cdma-evdo, lte
           | lte
           | cdma-evdo, gsm-umts, lte
           | current: cdma-evdo, gsm-umts, lte
           | equipment id: XXXXXXXXXXXXXXX
  --------------------------
  System | device: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3
           | drivers: qmi_wwan
           | plugin: Generic
           | primary port: cdc-wdm0
           | ports: cdc-wdm0 (qmi), wwp0s20f0u3i1 (net)
  --------------------------
  Numbers | own: XXXXXXXXXXXXX
  --------------------------
  Status | lock: sim-pin2
           | unlock retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
           | state: connected
           | power state: on
           | access tech: lte
           | signal quality: 49% (recent)
  --------------------------
  Modes | supported: allowed: 2g; preferred: none
           | allowed: 3g; preferred: none
           | allowed: 2g, 3g; preferred: 3g
           | allowed: 2g, 3g; preferred: 2g
           | allowed: 2g, 4g; preferred: 4g
           | allowed: 2g, 4g; preferred: 2g
           | allowed: 3g, 4g; preferred: 3g
           | allowed: 3g, 4g; preferred: 4g
           | allowed: 2g, 3g, 4g; preferred: 4g
           | allowed: 2g, 3g, 4g; preferred: 3g
           | allowed: 2g, 3g, 4g; preferred: 2g
           | current: allowed: 2g, 3g, 4g; preferred: 4g
  --------------------------
  Bands | supported: egsm, dcs, pcs, g850, utran-1, utran-4, utran-5, utran-8,
           | utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7,
           | eutran-8, eutran-12, eutran-13, eutran-17, eutran-20, cdma-bc0,
           | cdma-bc1
           | current: egsm, dcs, pcs, g850, utran-1, utran-4, utran-5, utran-8,
           | utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7,
           | eutran-8, eutran-12, eutran-13, eutran-17, eutran-20, cdma-bc0,
 ...

Read more...

Revision history for this message
Robert Heel (g2f-ubuntu-com) wrote :

Does not work here, too :-(

Ubuntu 21.04 (upgraded)
HP EliteBook 840 G3

after adding udev rule I get dmesg error:
[ 1318.326793] usb 1-3: unknown number of interfaces: 5
[ 1318.333270] qmi_wwan 1-3:1.1: cdc-wdm0: USB WDM device
[ 1318.333610] qmi_wwan 1-3:1.1 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-3, WWAN/QMI device, fa:9c:a4:df:ff:eb
[ 1318.333702] qmi_wwan 1-3:1.2: bogus CDC Union: master=0, slave=0
[ 1318.334491] qmi_wwan 1-3:1.2: cdc-wdm1: USB WDM device
[ 1318.334790] qmi_wwan 1-3:1.2 wwan1: register 'qmi_wwan' at usb-0000:00:14.0-3, WWAN/QMI device, fa:9c:a4:df:ff:eb
[ 1318.334870] qmi_wwan 1-3:1.3: bogus CDC Union: master=0, slave=0
[ 1318.336461] qmi_wwan 1-3:1.3: cdc-wdm2: USB WDM device
[ 1318.336702] qmi_wwan 1-3:1.3 wwan2: register 'qmi_wwan' at usb-0000:00:14.0-3, WWAN/QMI device, fa:9c:a4:df:ff:eb
[ 1318.339062] qmi_wwan 1-3:1.4: bogus CDC Union: master=0, slave=0
[ 1318.339838] qmi_wwan 1-3:1.4: cdc-wdm3: USB WDM device
[ 1318.340172] qmi_wwan 1-3:1.4 wwan3: register 'qmi_wwan' at usb-0000:00:14.0-3, WWAN/QMI device, fa:9c:a4:df:ff:eb
[ 1318.370397] qmi_wwan 1-3:1.1 wwan0: unregister 'qmi_wwan' usb-0000:00:14.0-3, WWAN/QMI device
[ 1318.389216] qmi_wwan 1-3:1.2 wwan1: unregister 'qmi_wwan' usb-0000:00:14.0-3, WWAN/QMI device
[ 1318.413358] qmi_wwan 1-3:1.3 wwan2: unregister 'qmi_wwan' usb-0000:00:14.0-3, WWAN/QMI device
[ 1318.437003] qmi_wwan 1-3:1.4 wwan3: unregister 'qmi_wwan' usb-0000:00:14.0-3, WWAN/QMI device

Revision history for this message
Mike (michael-ubu-pan) wrote (last edit ):

This is not a NetworkManager problem. It is also reported by me in
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1950385
and it is probably kernel bug.

The workaround is to use udev script for a modem to switch it to the MBIM mode which works ok under ModemManager & NetworkManager. Reboot. Recreate connection profile for modem in Network Manager Mobile Broadband Settings for your GSM Network Provider to make it binded with new MBiM devid config.
Tested on kernels 5.8, 5,11, 5.13.

Place the attached udev script file in: /etc/udev/rules.d instead of any old one. It uses usb_modeswitch to do the "magic" correctly.

Update 2:
You can also correct the fault in qmi based old modem udev script by replacing line:
ATTR{bConfigurationValue}="1"
with
RUN+="/usr/sbin/usb_modeswitch -v 03f0 -p 9d1d --configuration 1"
and it works without qmi errors.
The direct write to attribute in udev script started to brake functionality from kernel 5.1x

Revision history for this message
Mike (michael-ubu-pan) wrote :

In the kernel 5.15.x and up the modem X5 is working in the MBIM mode, so the updated udev script attached.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.