[Bug 740354] New: Huawei 3G usb modem E173 does not switch mode automatically
https://bugzilla.novell.com/show_bug.cgi?id=740354 https://bugzilla.novell.com/show_bug.cgi?id=740354#c0 Summary: Huawei 3G usb modem E173 does not switch mode automatically Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: luizluca@tre-sc.gov.br QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Hello, When I plug the Huawei 3G usb modem E173, it does not change to "modem mode" using usb_modeswitch command. I still see the "storage id" in lsusb $ $ lsusb | grep 12d1 Bus 001 Device 010: ID 12d1:1c0b Huawei Technologies Co., Ltd. The modem mode is "12d1:1c05" According to udev, it should run usb_modeswitch: $ grep -n 1c0b /lib/udev/rules.d/40-usb_modeswitch.rules 344:ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c0b", RUN+="usb_modeswitch '%b/%k'" I switched udev to debug mode: # udevadm control --log-priority=debug I found that it really runned usb_modeswitch: Jan 9 18:22:04 linux udevd[15592]: RUN 'usb_modeswitch '%b/%k'' /lib/udev/rules.d/40-usb_modeswitch.rules:344 (...) Jan 9 18:22:05 tresc020239 udevd[15592]: 'usb_modeswitch '/1-7:1.0'' [15619] exit with return code 0 But nothing happened! I still get the same usbid in lsusb and no modem is detected. However, it I run it manually, it works: # /lib/udev/usb_modeswitch '/1-7:1.0' usbid changes and network manager detects it. $ lsusb | grep 12d1 Bus 001 Device 015: ID 12d1:1c05 Huawei Technologies Co., Ltd. Alternatively, I can run usb_modeswitch directly sudo usb_modeswitch -c /usr/share/usb_modeswitch/12d1\:1c0b Maybe it is just some missing env variable or udev undo the switch afterwards. Reproducible: Always Steps to Reproduce: 1. Plug the modem Actual Results: 2. No modem is detected Expected Results: 2. when udev called usb_modeswitch, it should switch mode -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c1
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c2
Oliver Neukum
$ lsusb | grep 12d1 Bus 001 Device 015: ID 12d1:1c05 Huawei Technologies Co., Ltd.
Alternatively, I can run usb_modeswitch directly
sudo usb_modeswitch -c /usr/share/usb_modeswitch/12d1\:1c0b
Maybe it is just some missing env variable or udev undo the switch afterwards.
If udev undid the change you'd see udev logging that. This looks at first glance unfortunately like a timing issue. In /lib/udev/rules.d/40-usb_modeswitch.rules please replace ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c0b", RUN+="usb_modeswitch '%b/%k'" with ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c0b", RUN+="sleep 10 ; usb_modeswitch '%b/%k'" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c3
Luiz Angelo Daros de Luca
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c4
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c5
Luiz Angelo Daros de Luca
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c6
Erich Klose
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c7
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c8
--- Comment #8 from Erich Klose
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c9
mMrtin Caj
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c10
--- Comment #10 from Stefan Dirsch
Which "existing -w option" are you talking about?
There is no option like this in /lib/udev/usb_modeswitch.
It's mentioned in the manual page -w --release-delay NUM After issuing all bulk messages, wait for NUM milliseconds before releasing the interface. Required for some modems on older systems (especially after an EJECT message) but *not* in "usb_modeswitch --help" output. Also it's missing in the header of the manual page. So there is another bug. So the idea whould be to use usb_modeswitch -w 10000 '%b/%k in the udev rule. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c11
--- Comment #11 from Stefan Dirsch
I plugged the usb-stick during booting. After I read the logfile.There it was written that he look for /lib/udev/modem-modeswitch.So I made a test.
It was in 11.3 or like this when I've to look for /etc/udev/rules.d/55-umts.rules to start it running.
Seems you have two udev rules for the same device on your system. And the wrong/ outdated one wins. Is /etc/ude/rules.d/55-umts.rules still part of a package? Which one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c12
--- Comment #12 from Stefan Dirsch
I had the same trouble with this modem on the OpenSuse 12.1.
It looks like time trouble and after two days testing and searching on the web I found very easy fix /workaround.
Just add the one line into the config file for the modem. echo WaitBefore=3 >>/usr/share/usb_modemswitch/12d1\:1c00
After 3 seconds the moddem will appeared in the NetworkManager - if you are using it.
Possible, but there is no usb_modeswitch.d/12d1:1c00 file available for patching, but we can use usb_modeswitch"s "-w" option here. I guess WaitBefore is specified in seconds. Then this would be 3000 ms. Gerhard, could take care of these two changes, i.e. another udev rule for 12d1:1c00 device and the change in usb_modeswitch.d/1c0b? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c13
--- Comment #13 from Gerhard Schlotter
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c14
Gerhard Schlotter
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c15
--- Comment #15 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=740354
https://bugzilla.novell.com/show_bug.cgi?id=740354#c16
--- Comment #16 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com