Page 1 of 1

Mandriva doesn't see Huawei E173u-2 as a modem automatically

Posted: 14 Apr 2012, 18:15
by Maciej
Hello!

I have Mandriva 2010.0 Official for i586
Kernel: 2.6.31.14-desktop-1mnb
packages:
usb_modeswitch-1.1.0-2mdv2010.0
usbutils-0.86-1mdv2010.0
tcl-8.6-0.b1.2mdv2010.0
comgt-0.32-8mdv2010.0

After plug-in the modem in logs system:

Code: Select all

Apr 14 18:43:35 Dlink klogd: usb 2-5: new high speed USB device using ehci_hcd and address 15
Apr 14 18:43:35 Dlink klogd: usb 2-5: New USB device found, idVendor=12d1, idProduct=1446
Apr 14 18:43:35 Dlink klogd: usb 2-5: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Apr 14 18:43:35 Dlink klogd: usb 2-5: Product: HUAWEI Mobile
Apr 14 18:43:35 Dlink klogd: usb 2-5: Manufacturer: HUAWEI Technology
Apr 14 18:43:35 Dlink klogd: usb 2-5: configuration #1 chosen from 1 choice
Apr 14 18:43:35 Dlink klogd: scsi30 : SCSI emulation for USB Mass Storage devices
Apr 14 18:43:35 Dlink klogd: scsi31 : SCSI emulation for USB Mass Storage devices
Apr 14 18:43:38 Dlink usb-modeswitch: switching 12d1:1446 (HUAWEI Technology: HUAWEI Mobile)
Apr 14 18:43:40 Dlink klogd: scsi 31:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Apr 14 18:43:40 Dlink klogd: sd 31:0:0:0: Attached scsi generic sg2 type 0
Apr 14 18:43:40 Dlink klogd: sd 31:0:0:0: [sdb] Attached SCSI removable disk
after the command

Code: Select all

usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446
in logs system:

Code: Select all

Apr 14 18:53:45 Dlink klogd: usb 2-5: USB disconnect, address 18
Apr 14 18:53:49 Dlink klogd: usb 2-5: new high speed USB device using ehci_hcd and address 19
Apr 14 18:53:49 Dlink klogd: usb 2-5: New USB device found, idVendor=12d1, idProduct=140c
Apr 14 18:53:49 Dlink klogd: usb 2-5: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Apr 14 18:53:49 Dlink klogd: usb 2-5: Product: HUAWEI Mobile
Apr 14 18:53:49 Dlink klogd: usb 2-5: Manufacturer: HUAWEI Technology
Apr 14 18:53:49 Dlink klogd: usb 2-5: configuration #1 chosen from 1 choice
Apr 14 18:53:49 Dlink klogd: option 2-5:1.0: GSM modem (1-port) converter detected
Apr 14 18:53:49 Dlink klogd: usb 2-5: GSM modem (1-port) converter now attached to ttyUSB0
Apr 14 18:53:49 Dlink klogd: option 2-5:1.1: GSM modem (1-port) converter detected
Apr 14 18:53:49 Dlink klogd: usb 2-5: GSM modem (1-port) converter now attached to ttyUSB1
Apr 14 18:53:49 Dlink klogd: option 2-5:1.2: GSM modem (1-port) converter detected
Apr 14 18:53:49 Dlink klogd: usb 2-5: GSM modem (1-port) converter now attached to ttyUSB2
Apr 14 18:53:49 Dlink klogd: option 2-5:1.3: GSM modem (1-port) converter detected
Apr 14 18:53:49 Dlink klogd: usb 2-5: GSM modem (1-port) converter now attached to ttyUSB3
Apr 14 18:53:49 Dlink klogd: scsi46 : SCSI emulation for USB Mass Storage devices
Apr 14 18:53:49 Dlink klogd: scsi47 : SCSI emulation for USB Mass Storage devices
Apr 14 18:53:54 Dlink klogd: scsi 46:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Apr 14 18:53:54 Dlink klogd: scsi 47:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Apr 14 18:53:54 Dlink klogd: sd 47:0:0:0: Attached scsi generic sg2 type 0
Apr 14 18:53:54 Dlink klogd: sd 47:0:0:0: [sdb] Attached SCSI removable disk
Apr 14 18:53:54 Dlink klogd: sr1: scsi-1 drive
Apr 14 18:53:54 Dlink klogd: sr 46:0:0:0: Attached scsi generic sg3 type 5
Why Huawei does not appear automatically?

a partial solution - not smart

Posted: 15 Apr 2012, 14:29
by Maciej
I have read about half the threads and I think the main problem is that usb_modeswitch does not work automatically.
There is one solution taken from http://www.draisberghof.de/usb_modeswit ... .php?t=386
commnet out line

Code: Select all

ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"
in the file

Code: Select all

/lib/udev/rules.d/61-option-modem-modeswitch.rules
Why? Why Mandriva standard distribution has conflicting packages usb_modeswitch and udev?
Without commenting with # it will never workt.
Where is the line from and what for?

Posted: 15 Apr 2012, 20:40
by Josh
Well, you'd have to ask the Mandriva people ...

Around 2009, usb_modeswitch started to appear in the major distributions as a "contribution" package. About the same time, the udev people tried to set up something similar, but it did not work well and was pulled from the udev tree later when usb_modeswitch was established.

Nowadays, the conflicts should be gone.