Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621404 - net-misc/modemmanager-1.6.4 does not support old MedionMobile Stick any more
Summary: net-misc/modemmanager-1.6.4 does not support old MedionMobile Stick any more
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-10 15:05 UTC by Mark Dominik Bürkle
Modified: 2017-06-12 21:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2017-06-10 15:05:03 UTC
ModemManager does not support my old MedionMobile (AldiTalk) UMTS stick any more. It does not recognize being asked for a SIM PIN:

Jun 10 16:05:54 lapmdb-hpl usb_modeswitch[29453]: switch device 12d1:1446 on 002/005
...
Jun 10 16:05:54 lapmdb-hpl kernel: usb 2-1.1: USB disconnect, device number 5
Jun 10 16:05:58 lapmdb-hpl kernel: usb 2-1.1: new high-speed USB device number 6 using ehci-pci
Jun 10 16:05:58 lapmdb-hpl kernel: usb 2-1.1: New USB device found, idVendor=12d1, idProduct=1436
Jun 10 16:05:58 lapmdb-hpl kernel: usb 2-1.1: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Jun 10 16:05:58 lapmdb-hpl kernel: usb 2-1.1: Product: HUAWEI Mobile
Jun 10 16:05:58 lapmdb-hpl kernel: usb 2-1.1: Manufacturer: HUAWEI Technology
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.0: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.1: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.2: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.3: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.4: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.5: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: scsi host6: usb-storage 2-1.1:1.5
Jun 10 16:05:58 lapmdb-hpl kernel: usb-storage 2-1.1:1.6: USB Mass Storage device detected
Jun 10 16:05:58 lapmdb-hpl kernel: scsi host7: usb-storage 2-1.1:1.6
Jun 10 16:05:59 lapmdb-hpl root[29472]: usb_modeswitch: switched to 12d1:1436 on 002/006
Jun 10 16:05:59 lapmdb-hpl kernel: scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jun 10 16:05:59 lapmdb-hpl kernel: scsi 7:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Jun 10 16:05:59 lapmdb-hpl kernel: sr 6:0:0:0: [sr1] scsi-1 drive
Jun 10 16:05:59 lapmdb-hpl kernel: sr 6:0:0:0: Attached scsi CD-ROM sr1
Jun 10 16:05:59 lapmdb-hpl kernel: sd 7:0:0:0: [sdb] Attached SCSI removable disk
Jun 10 16:06:00 lapmdb-hpl mtp-probe[29481]: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Jun 10 16:06:00 lapmdb-hpl mtp-probe[29481]: bus: 2, device: 6 was not an MTP device
Jun 10 16:06:00 lapmdb-hpl kernel: cdc_ether 2-1.1:1.1 wwan0: register 'cdc_ether' at usb-0000:00:1d.0-1.1, Mobile Broadband Network Device, 02:50:f3:00:00:00
Jun 10 16:06:00 lapmdb-hpl kernel: usbcore: registered new interface driver cdc_ether
Jun 10 16:06:00 lapmdb-hpl systemd-udevd[29504]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jun 10 16:06:00 lapmdb-hpl kernel: cdc_ether 2-1.1:1.1 wwp0s29u1u1i1: renamed from wwan0
Jun 10 16:06:00 lapmdb-hpl kernel: usbcore: registered new interface driver option
Jun 10 16:06:00 lapmdb-hpl kernel: usbserial: USB Serial support registered for GSM modem (1-port)
Jun 10 16:06:00 lapmdb-hpl kernel: option 2-1.1:1.0: GSM modem (1-port) converter detected
Jun 10 16:06:00 lapmdb-hpl kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB1
Jun 10 16:06:00 lapmdb-hpl kernel: option 2-1.1:1.3: GSM modem (1-port) converter detected
Jun 10 16:06:00 lapmdb-hpl kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB2
Jun 10 16:06:00 lapmdb-hpl kernel: option 2-1.1:1.4: GSM modem (1-port) converter detected
Jun 10 16:06:00 lapmdb-hpl kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB3
Jun 10 16:06:02 lapmdb-hpl ModemManager[521]: <warn>  (ttyUSB1): port attributes not fully set
Jun 10 16:06:02 lapmdb-hpl ModemManager[521]: <warn>  (ttyUSB3): port attributes not fully set
Jun 10 16:06:02 lapmdb-hpl ModemManager[521]: <warn>  (ttyUSB2): port attributes not fully set
Jun 10 16:06:05 lapmdb-hpl ModemManager[521]: <warn>  (ttyUSB3): port attributes not fully set
Jun 10 16:06:05 lapmdb-hpl ModemManager[521]: <warn>  (ttyUSB2): port attributes not fully set
...
Jun 10 16:06:15 lapmdb-hpl ModemManager[521]: <info>  Creating modem with plugin 'Huawei' and '4' ports
Jun 10 16:06:15 lapmdb-hpl ModemManager[521]: <warn>  (ttyUSB3): port attributes not fully set
Jun 10 16:06:15 lapmdb-hpl ModemManager[521]: <info>  Modem for device at '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1' successfully created
Jun 10 16:06:15 lapmdb-hpl ModemManager[521]: <warn>  couldn't load Supported IP families: 'SIM PIN required'
Jun 10 16:06:16 lapmdb-hpl ModemManager[521]: <info>  Modem: state changed (unknown -> locked)
Jun 10 16:06:16 lapmdb-hpl ModemManager[521]: <warn>  couldn't load SIM identifier: 'Invalid ICCID length (unexpected F position)'
Jun 10 16:06:16 lapmdb-hpl ModemManager[521]: <warn>  couldn't load IMSI: 'SIM PIN required'
Jun 10 16:06:16 lapmdb-hpl ModemManager[521]: <warn>  couldn't load Operator identifier: 'Cannot load Operator ID without IMSI'
Jun 10 16:06:16 lapmdb-hpl ModemManager[521]: <warn>  couldn't load list of Own Numbers: 'Failed to parse NV MDN command result: -17'
Jun 10 16:06:16 lapmdb-hpl NetworkManager[535]: <warn>  [1497103576.5117] (ttyUSB3): cannot enable/disable modem: locked
Jun 10 16:06:16 lapmdb-hpl NetworkManager[535]: <info>  [1497103576.5140] manager: (ttyUSB3): new Broadband device (/org/freedesktop/NetworkManager/Devices/4)
Jun 10 16:06:16 lapmdb-hpl NetworkManager[535]: <info>  [1497103576.5153] device (ttyUSB3): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jun 10 16:06:16 lapmdb-hpl NetworkManager[535]: <info>  [1497103576.5165] device (ttyUSB3): modem state 'locked'
Jun 10 16:06:16 lapmdb-hpl NetworkManager[535]: <info>  [1497103576.5181] device (ttyUSB3): state change: unavailable -> disconnected (reason 'none') [20 30 0]
Jun 10 16:06:16 lapmdb-hpl gnome-shell[621]: nma_mobile_providers_database_lookup_cdma_sid: assertion 'sid > 0' failed


I can "manually" enter the SIM PIN by using minicom and then use the device by issuing
systemctl restart ModemManager
systemctl restart NetworkManager
nmcli con up uuid ... (uuid of 30day-flatrate and pay-per-use)
(ip r del default dev eno1; ping web.de => 350+ms)

but I think this is not what a typical Linux user would do to get its networking started...

Please have a look at this. It formerly worked like a charm (might have been changed a long time ago, maybe even a year).

Thanks,
mdb


lapmdb-hpl ~ #>> emerge --info modemmanager networkmanager net-dialup/ppp
Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.11.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.11.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-2430M_CPU_@_2.40GHz-with-gentoo-2.3
KiB Mem:     8113308 total,   2688024 free
KiB Swap:   10483708 total,  10483708 free
Timestamp of repository gentoo: Mon, 05 Jun 2017 21:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=6 --with-bdeps=y --keep-going=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/opt/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdinstall cdparanoia cdr cgi cli colord cracklib crypt cryptsetup css cups cxx dbus dedicated dga dri dts dvd dvdr eds egl emboss encode evo exif fam fastcgi firefox flac fortran gdbm gif glamor gles2 glut gnome gnome-keyring gnome-online-accounts gnutls gpm gsm gstreamer gtk gzip hddtemp iconv idn introspection ipv6 jack java java6 javascript jpeg jpeg2k kerberos lame lash lcms ldap libav libnotify libsecret lm_sensors mad matroska mbox mikmod mime mmap mms mng mod modules mp3 mp4 mpeg mplayer multilib musepack nautilus ncurses nls nptl nsplugin ogg openal openexr opengl openmp pam pango pcre pdf perl php png policykit posix ppds pulseaudio qt3support qt4 quicktime raw rdesktop readline recode samba sasl savedconfig sdl seccomp session sharedmem simplexml smp sound spell ssl startup-notification subversion svg symlink syslog systemd sysvipc tcl tcmalloc tcpd theora tiff tokenizer tracker truetype udev udisks unicode upower usb vcd videos vim-syntax vnc vorbis wavpack wayland wifi win32codecs wmf wxwidgets x264 xattr xcb xcomposite xinerama xml xosd xsl xulrunner xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de en fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 pypy1_9 jython2_5" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel radeon amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/modemmanager-1.6.4::gentoo was built with the following:
USE="introspection mbim policykit qmi systemd -vala" ABI_X86="64"


net-misc/networkmanager-1.4.4-r1::gentoo was built with the following:
USE="bluetooth dhclient gnutls introspection modemmanager ncurses ppp systemd wext wifi -audit -connection-sharing (-consolekit) -json -nss -ofono -resolvconf (-selinux) -teamd -test -vala" ABI_X86="32 64 -x32"


net-dialup/ppp-2.4.7-r3::gentoo was built with the following:
USE="gtk ipv6 pam -activefilter -atm -dhcp -eap-tls (-libressl) -radius" ABI_X86="64"
Comment 1 Jonas Stein gentoo-dev 2017-06-10 15:43:46 UTC
It is sad to read that you have problems with the software. The situation seems to be a bit more complicate and requires some analysis. I can not see a problem in the ebuild. Perhaps it changes upstream, or in the kernel module.
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3]. If upstream provides a support channel ask there first.
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an error in the ebuild.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/
Comment 2 Mark Dominik Bürkle 2017-06-10 15:49:16 UTC
I just checked the home page of ModemManager.

There seems to be a newer version (1.6.6, since 4 weeks) available.

Can You make a new ebuild for that version to try it?

Thanks,
mdb
Comment 3 Mark Dominik Bürkle 2017-06-10 17:16:18 UTC
Notice:

git clone git://anongit.freedesktop.org/ModemManager/ModemManager
cd ModemManager
git diff 1.6.2 1.6.4
=> src/mm-broadband-modem-qmi.c +1740, +1792 (don't understand that from the diff, yet, but it might be a possible source of the misbehaviour)

From "git log 1.6.2":
commit 8c905383b7f8f59e7b78c054ace828096a7fe6ba
Author: Aleksander Morgado <aleksander@aleksander.es>
Date:   Sat Jan 30 16:25:20 2016 -0800

    broadband-modem-qmi: locked states also indicate readiness of the SIM card
    
    When the card application is flagged as needing PIN or PUK, then the card can be
    considered as being ready.
Comment 4 Mark Dominik Bürkle 2017-06-10 18:27:55 UTC
(In reply to Mark Dominik Bürkle from comment #2)
> I just checked the home page of ModemManager.
> 
> There seems to be a newer version (1.6.6, since 4 weeks) available.
> 
> Can You make a new ebuild for that version to try it?

1.6.6 does not compile, see bug#621414.
Comment 5 Mark Dominik Bürkle 2017-06-10 21:10:09 UTC
Notice: ModemManager uses the Huawei plugin.

Formerly, as far as I remember, the option plugin was used.

Checking ModemManager/plugins/huawei/...
Comment 6 Mark Dominik Bürkle 2017-06-11 23:10:30 UTC
Notice:

git-head version of ModemManager (as of about 2017-06-10) has the same issues with my MedionMobile UMTS stick.

Don't have time to further investigate these days, have a new job...
Comment 7 Mark Dominik Bürkle 2017-06-12 21:00:41 UTC
I was wrong,

ModemManager does support my Huawei E173 UMTS USB-stick, have seen that it correctly announces the Modem/Broadband device to NetworkManager.

What didn't work is USE-flag dependent: nm-applet has IUSE="... modemmanager ...", it should be "... +modemmanager ..." as it is in NetworkManager's IUSE.

My nm-applet was built without "USE=modemmanager"... :-(

Sorry for the trouble I made. :-(