Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339877 - net-misc/modemmanager-0.4 breaks 3G connections that worked with 0.3
Summary: net-misc/modemmanager-0.4 breaks 3G connections that worked with 0.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 21:39 UTC by Hannes Erven
Modified: 2011-01-06 17:11 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 Hannes Erven 2010-10-05 21:39:36 UTC
After a major "emerge --update world" my 3G/UMTS connection with NetworkManager on a Huawei E220 device stopped working.

The logs showed this error message (kernel gentoo-2.6.31-r10) when trying to connect:

[NetworkManager] <WARN>  stage1_prepare_done(): GSM modem connection failed: (32) Invalid allowed mode 256_


After some reading I decided to upgrade the kernel to vanilla 2.6.35-3 and then got this error message:

[kernel] option: option_instat_callback: error -108


By comparing my versions to that of an Ubuntu where the E220 was working I found only one difference, modemmanager-0.4 on Gentoo vs. 0.3 on Ubuntu.

After downgrading mm to 0.3 the 3G connection worked again.


It seems that this issue has already been brought up on the networkmanager-list but without a resolution:

http://www.mail-archive.com/networkmanager-list@gnome.org/msg16513.html
http://www.mail-archive.com/networkmanager-list@gnome.org/msg16286.html

There are many more reports on that "-108" issue.


The version bump was asked for in Bug#326605 . I haven't been able to locate any issue tracking for modemmanager, and I know this isn't really a Gentoo Bug since obviously there is some problem with modemmanager.
Would blocking 0.4 in the meantime save Gentoo users some hassle?

Thank you for your support.


Reproducible: Always




System uname: Linux-2.6.35.3-i686-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-1.12.13
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-05 21:48:56 UTC
You sure it's not related to bug 322761? Is usb_modeswitch installed?

Please provide also output of `emerge --info`.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-10-05 21:51:26 UTC
btw,

http://bugs.gentoo.org/show_bug.cgi?id=326605#c2 looks pretty weird just to avoid TCL, as udev upstream says usb_modeswitch is *the right tool*...

<snip>
Commit on udev git: 4dd9b291354e76f34b0d6d7b5c3b28d03a624418

"modeswitch: morph into tool that only switches Mobile Action cables

Remove option modeswitching code; use usb_modeswitch already, people."
</snip>
Comment 3 Hannes Erven 2010-10-05 22:04:16 UTC
Sorry, I thought "emerge --info" was just noise in this case and left it out deliberately. See below.


I'm pretty sure this is NOT related to Bug#322761 because udev is only 151-r4 and I can reliably "toggle" from working to non-working by only changing modemmanager's version and nothing else.


usb_modeswitch is not installed (seems not yet to be stabilized?), but:
# equery belongs /lib/udev/modem-modeswitch 
[ Searching for file(s) /lib/udev/modem-modeswitch in *... ]
sys-fs/udev-151-r4 (/lib/udev/modem-modeswitch)


Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35.3 i686)
=================================================================
System uname: Linux-2.6.35.3-i686-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 23 Sep 2010 11:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL sun-bcla-java-vm skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_AT.utf8@euro"
LC_ALL="de_AT.utf8@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en en_GB en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/portage/layman/gnome /usr/portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac accessibility acl acpi alsa apache2 audiofile bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt css cups cxx dab dbm dbus device-mapper divx dri dts dvb dvd dvdr dvdread eds emboss encode exif faac fam fat ffmpeg firefox flac fortran ftp gdbm gdu gif gimp gnome gnome-keyring gphoto2 gpm gsm gstreamer gtk hal hddtemp hybrid-auth iconv id3tag imap ipw4965 irmc jack java javascript jce jpeg jpeg2k kpathsea latex lcms ldap libnotify libsamplerate libsdl libwww lm_sensors lzo mad maildir midi mikmod mmx mng modules mp2 mp3 mp4 mpa mpeg mplayer mtp mudflap musepack mysql nautilus ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pango pcmcia pcre pdf perl php png policykit postgres ppds pppd python qt3support qt4 radio raw rdesktop readline reflection reiserfs rtsp samba scanner sdl session smp sndfile spell spl sse sse2 ssl startup-notification subversion svg svga sysfs syslog tcpd teletext tetex theora tiff timidity truetype unicode usb v4l v4l2 vcd vhosts vnc vorbis wifi win32codecs wmf wxwindows x264 x86 xcb xml xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CAMERAS="olympus ptp2 canon" DVB_CARDS="dibusb-usb2 usb-dib0700" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga vesa" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-10-06 03:39:27 UTC
(In reply to comment #2)
> http://bugs.gentoo.org/show_bug.cgi?id=326605#c2 looks pretty weird just to
> avoid TCL, as udev upstream says usb_modeswitch is *the right tool*...
> 

I'd like to hear what NM upstream thinks of this, i.e., whether they want usb_modeswitch to be used as well. Also, which distros ship with usb_modeswitch by default now?
Comment 5 Hannes Erven 2010-10-06 14:14:58 UTC
Since my udev is <152 I guess usb_modeswitch cannot be the cause, can it?

Should I upgrade udev ?
Should I post to the networkmanager list ?

Please advise. Thank you!
Comment 6 Robert Piasek (RETIRED) gentoo-dev 2010-12-17 16:11:31 UTC
With more recent udev and current usb_modeswitch, it should work just done. Udev will execute usb_modeswitch whenever you plugin your modem.

Please try with current udev and usb_modeswitch and let us know.

Thanks
Comment 7 Hannes Erven 2010-12-19 23:34:25 UTC
I've tried again with
 udev-151-r4
 usb_modeswitch-1.1.4
 modemmanager-0.4

and it doesn't work. Downgrading to modemmanager-0.3 helped again this time.


The log shows:

Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) starting connection 'ONE HUI'_
Dec 20 00:20:52 [NetworkManager] <info>  (ttyUSB0): device state change: 3 -> 4 (reason 0)_
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled..._
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started..._
Dec 20 00:20:52 [NetworkManager] <info>  (ttyUSB0): device state change: 4 -> 6 (reason 0)_
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete._
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled..._
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started..._
Dec 20 00:20:52 [NetworkManager] <info>  (ttyUSB0): device state change: 6 -> 4 (reason 0)_
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete._
Dec 20 00:20:52 [NetworkManager] <WARN>  stage1_prepare_done(): GSM modem connection failed: (32) Invalid allowed mode 256_
Dec 20 00:20:52 [NetworkManager] <info>  (ttyUSB0): device state change: 4 -> 9 (reason 1)_
Dec 20 00:20:52 [NetworkManager] <info>  Marking connection 'ONE HUI' invalid._
Dec 20 00:20:52 [NetworkManager] <info>  Activation (ttyUSB0) failed._
Dec 20 00:20:52 [NetworkManager] <info>  (ttyUSB0): device state change: 9 -> 3 (reason 0)_
Dec 20 00:20:52 [NetworkManager] <info>  (ttyUSB0): deactivating device (reason: 0)._
Comment 8 Robert Piasek (RETIRED) gentoo-dev 2011-01-06 15:25:56 UTC
Is it still happening with modemmanager-0.4_p20101211?

Comment 9 Hannes Erven 2011-01-06 17:11:54 UTC
Thank you, works again with modemmanager-0.4_p20101211 .