[Pkg-utopia-maintainers] Bug#755236: /usr/sbin/NetworkManager: Huawei 3G initial state is locked in modemmaNager 1.2.0. networkmanager 0.9.10 fails to enable it
Pauli
suokkos at gmail.com
Sat Jul 19 00:26:36 UTC 2014
Package: network-manager
Version: 0.9.10.0-1
Severity: normal
File: /usr/sbin/NetworkManager
Dear Maintainer,
Huawei 3G modem (used in mbim mode) requires a pin before usage. Modemmanager
notices the issue from 'PinRequired' and sets the device state to the
locked state. At this point NetworkManager knows about the 3G modem and
locked state. But for some reason it decides not to send pin to
modemmanager when I request NetworkManager to connect to 3G network.
The modem has been connecting without problems with earlier versions of
modemmanager and NetworkManager but then it was always in the older ncm
mode. But the ncm modem has also became problematic with the latest
iteration because mbim mode is now default and there is also some
unlocking issues in manually set ncm mode.
There exists simple workaround with mbimcli because it allows mannual
control of the modem. It is simple to enter the pin from command line
and then restart modemmamager to make it notice that modem has been
unloked. (without modemmamager restart connection request fails from
NetworkManager exactly same way as with locked modem)
I have no idea so far if this issue has been addressed in a newer
version already.
But when I last tested same modem in Ubuntu 14.04 system it worked
without unlocking issues. But I don't know what version or setting
differences there is.
-- workaround
mbimcli -d /dev/cdc-wdm0 --enter-pin=0000
systemctl restart ModemManager
-- lsusb
Bus 002 Device 010: ID 12d1:151a Huawei Technologies Co., Ltd.
-- Log after inserting the device
ModemManager[30532]: [/dev/cdc-wdm0] Queried max control message size: 1024
ModemManager[30532]: <info> Creating modem with plugin 'Huawei' and '2' ports
ModemManager[30532]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5' successfully created
ModemManager[30532]: [/dev/cdc-wdm0] Queried max control message size: 1024
ModemManager[30532]: <info> Modem: state changed (unknown -> locked)
ModemManager[30532]: <warn> couldn't load Operator identifier: 'PinRequired'
ModemManager[30532]: <warn> couldn't load Operator name: 'PinRequired'
NetworkManager[2960]: <warn> (cdc-wdm0): failed to look up interface index
NetworkManager[2960]: <warn> (cdc-wdm0) cannot enable/disable modem: locked
NetworkManager[2960]: <info> (cdc-wdm0): new Broadband device (driver: 'cdc_mbim' ifindex: 0)
NetworkManager[2960]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/13
NetworkManager[2960]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
NetworkManager[2960]: <info> (cdc-wdm0): preparing device
NetworkManager[2960]: <info> (cdc-wdm0): modem state 'locked'
NetworkManager[2960]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
NetworkManager[2960]: <warn> Failed to activate 'Dna dna internet': Connection 'Dna dna internet' is not available on the device cdc-wdm0 at this time.
-- After manual unlock with mbimcli and modemmamager restart
systemd[1]: Stopping Modem Manager...
ModemManager[30532]: <info> Caught signal, shutting down...
NetworkManager[2960]: <info> (cdc-wdm0): device state change: disconnected -> unmanaged (reason 'removed') [30 10 36]
ModemManager[30532]: <info> ModemManager is shut down
NetworkManager[2960]: <info> ModemManager disappeared from bus
systemd[1]: Starting Modem Manager...
ModemManager[31483]: <info> ModemManager (version 1.2.0) starting...
NetworkManager[2960]: <info> ModemManager disappeared from bus
systemd[1]: Started Modem Manager.
NetworkManager[2960]: <info> ModemManager available in the bus
ModemManager[31483]: <warn> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0': not supported by any plugin
ModemManager[31483]: <warn> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.2/0000:04:00.0': not supported by any plugin
ModemManager[31483]: [/dev/cdc-wdm0] Queried max control message size: 1024
ModemManager[31483]: [/dev/cdc-wdm0] No transaction matched in received message
ModemManager[31483]: <info> Creating modem with plugin 'Huawei' and '2' ports
ModemManager[31483]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5' successfully created
ModemManager[31483]: [/dev/cdc-wdm0] Queried max control message size: 1024
ModemManager[31483]: <info> Modem: state changed (unknown -> disabled)
NetworkManager[2960]: <warn> (cdc-wdm0): failed to look up interface index
NetworkManager[2960]: <info> (cdc-wdm0): modem state changed, 'disabled' --> 'enabling' (reason: user preference)
NetworkManager[2960]: <info> (cdc-wdm0): new Broadband device (driver: 'cdc_mbim' ifindex: 0)
NetworkManager[2960]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/14
NetworkManager[2960]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
ModemManager[31483]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabled -> enabling)
NetworkManager[2960]: <info> (cdc-wdm0): preparing device
NetworkManager[2960]: <info> (cdc-wdm0): modem state 'enabling'
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages network-manager depends on:
ii adduser 3.113+nmu3
ii dbus 1.8.6-1
ii init-system-helpers 1.19
ii isc-dhcp-client 4.3.0+dfsg-1
ii libc6 2.19-7
ii libdbus-1-3 1.8.6-1
ii libdbus-glib-1-2 0.102-1
ii libgcrypt11 1.5.3-4
ii libglib2.0-0 2.40.0-3
ii libgnutls-deb0-28 3.2.15-3
ii libgudev-1.0-0 208-6
ii libmm-glib0 1.2.0-1
ii libndp0 1.3-1
ii libnewt0.52 0.52.17-1
ii libnl-3-200 3.2.24-2
ii libnl-genl-3-200 3.2.24-2
ii libnl-route-3-200 3.2.24-2
ii libnm-glib4 0.9.10.0-1
ii libnm-util2 0.9.10.0-1
ii libpam-systemd 208-6
ii libpolkit-gobject-1-0 0.112-2
ii libreadline6 6.3-6
ii libsoup2.4-1 2.46.0-2
ii libsystemd-daemon0 208-6
ii libsystemd-login0 208-6
ii libuuid1 2.20.1-5.8
ii lsb-base 4.1+Debian13
ii policykit-1 0.105-6
ii udev 208-6
ii wpasupplicant 1.1-1
Versions of packages network-manager recommends:
ii crda 1.1.2-1
ii dnsmasq-base 2.71-1
ii iptables 1.4.21-2
ii modemmanager 1.2.0-1
ii ppp 2.4.6-2
Versions of packages network-manager suggests:
ii avahi-autoipd 0.6.31-4
-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
no-auto-default=1C:75:08:38:6F:C7,
[ifupdown]
managed=false
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list