Novatel MC950D UMTS USB stick not dealt with by udev rule

Bug #495997 reported by Christian Kirbach
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usb-modeswitch-data (Ubuntu)
Fix Released
Wishlist
Didier Raboud

Bug Description

Binary package hint: udev

Hello

please add the line

ATTRS{idVendor}=="1410", ATTRS{idProduct}=="5010", RUN+="modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

to /lib/udev/rules.d/61-option-modem-modeswitch.rules

Reason: There is no rule for the Novatel MC950D UMTS USB stick in that file,
in the default Ubuntu 9.10 AMD64 Desktop installation.

nazgul@rivendell:~$ lsusb
Bus 002 Device 003: ID 1410:4400 Novatel Wireless

When the modem is plugged in, it gets mounted as an USB mass storage drive. It contains drivers, but not for Linux.
Above rule unmounts the mass storage, and the modem acutally turns into a modem autmagically

syslog with modification:

Dec 12 21:42:09 rivendell kernel: [10428.070077] usb 4-2: new full speed USB device using ohci_hcd and address 4
Dec 12 21:42:09 rivendell kernel: [10428.282909] usb 4-2: configuration #1 chosen from 1 choice
Dec 12 21:42:09 rivendell kernel: [10428.290254] scsi8 : SCSI emulation for USB Mass Storage devices
Dec 12 21:42:14 rivendell kernel: [10433.297395] scsi 8:0:0:0: CD-ROM Novatel Mass Storage 1.00 PQ: 0 ANSI: 2
Dec 12 21:42:14 rivendell kernel: [10433.353225] sr1: scsi-1 drive
Dec 12 21:42:14 rivendell kernel: [10433.353593] sr 8:0:0:0: Attached scsi generic sg2 type 5
Dec 12 21:42:15 rivendell kernel: [10433.775122] sr: Sense Key : No Sense [current]
Dec 12 21:42:15 rivendell kernel: [10433.775130] sr: Add. Sense: No additional sense information
Dec 12 21:42:15 rivendell kernel: [10434.500181] sr: Sense Key : No Sense [current]
Dec 12 21:42:15 rivendell kernel: [10434.500189] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.665772] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.665780] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.683739] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.683747] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.701690] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.701697] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.747570] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.747577] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.765519] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.765526] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.783471] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.783478] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.829352] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.829358] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10434.935068] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10434.935075] sr: Add. Sense: No additional sense information
Dec 12 21:42:16 rivendell kernel: [10435.012837] UDF-fs: Partition marked readonly; forcing readonly mount
Dec 12 21:42:16 rivendell kernel: [10435.020746] UDF-fs INFO UDF: Mounting volume 'NVTL', timestamp 2007/10/23 17:46 (103c)
Dec 12 21:42:16 rivendell kernel: [10435.074681] sr: Sense Key : No Sense [current]
Dec 12 21:42:16 rivendell kernel: [10435.074689] sr: Add. Sense: No additional sense information
Dec 12 21:44:02 rivendell kernel: [10541.191324] usb 4-2: USB disconnect, address 4
Dec 12 21:44:10 rivendell kernel: [10548.581022] udev: starting version 147
Dec 12 21:44:20 rivendell kernel: [10558.820075] usb 4-2: new full speed USB device using ohci_hcd and address 5
Dec 12 21:44:20 rivendell kernel: [10559.012955] usb 4-2: configuration #1 chosen from 1 choice
Dec 12 21:44:20 rivendell kernel: [10559.018928] scsi9 : SCSI emulation for USB Mass Storage devices
Dec 12 21:44:22 rivendell kernel: [10560.633062] usbcore: registered new interface driver usbserial
Dec 12 21:44:22 rivendell kernel: [10560.633094] USB Serial support registered for generic
Dec 12 21:44:22 rivendell kernel: [10560.633148] usbcore: registered new interface driver usbserial_generic
Dec 12 21:44:22 rivendell kernel: [10560.633153] usbserial: USB Serial Driver core
Dec 12 21:44:22 rivendell kernel: [10560.647781] USB Serial support registered for GSM modem (1-port)
Dec 12 21:44:22 rivendell kernel: [10560.647865] option 4-2:1.0: GSM modem (1-port) converter detected
Dec 12 21:44:22 rivendell kernel: [10560.647990] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
Dec 12 21:44:22 rivendell kernel: [10560.648015] usbcore: registered new interface driver option
Dec 12 21:44:22 rivendell kernel: [10560.648020] option: v0.7.2:USB Driver for GSM modems

without the patch:

Dec 12 19:51:29 rivendell kernel: [ 3787.680102] usb 4-2: new full speed USB device using ohci_hcd and address 3
Dec 12 19:51:29 rivendell kernel: [ 3787.882942] usb 4-2: configuration #1 chosen from 1 choice
Dec 12 19:51:29 rivendell kernel: [ 3787.894850] scsi7 : SCSI emulation for USB Mass Storage devices
Dec 12 19:51:34 rivendell kernel: [ 3792.897421] scsi 7:0:0:0: CD-ROM Novatel Mass Storage 1.00 PQ: 0 ANSI: 2
Dec 12 19:51:34 rivendell kernel: [ 3792.954249] sr1: scsi-1 drive
Dec 12 19:51:34 rivendell kernel: [ 3792.954601] sr 7:0:0:0: Attached scsi generic sg2 type 5
Dec 12 19:51:34 rivendell kernel: [ 3793.335290] sr: Sense Key : No Sense [current]
Dec 12 19:51:34 rivendell kernel: [ 3793.335299] sr: Add. Sense: No additional sense information
Dec 12 19:51:34 rivendell kernel: [ 3793.444994] sr: Sense Key : No Sense [current]
Dec 12 19:51:34 rivendell kernel: [ 3793.445001] sr: Add. Sense: No additional sense information
Dec 12 19:51:34 rivendell kernel: [ 3793.455165] sr 7:0:0:0: [sr1] unaligned transfer
Dec 12 19:51:34 rivendell kernel: [ 3793.472889] sr 7:0:0:0: [sr1] unaligned transfer
Dec 12 19:52:08 rivendell kernel: [ 3826.770181] usb 4-2: USB disconnect, address 3
Dec 12 19:52:08 rivendell kernel: [ 3826.770230] sr 7:0:0:0: [sr1] Unhandled error code
Dec 12 19:52:08 rivendell kernel: [ 3826.770239] sr 7:0:0:0: [sr1] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK

Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :
summary: - No rule "option_zerocd" for Novatel MC950D UMTS USB stick
+ Novatel MC950D UMTS USB stick not dealt with by udev rule
Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :

Actually above was only half the solution, but almost there.

In fact, the zero_cd trick does not work reliably. Now, with some testing I am confident to say that
the virtual cd-rom device needs to get ejected for the GSM modem to become active.
http://www.draisberghof.de/usb_modeswitch/#hardware
also says that in fact an SCSI eject is needed.

Adding the udev rule line

# Novatel MCD950D
ATTRS{idVendor}=="1410", ATTRS{idProduct}=="5010", RUN+="/usr/bin/eject %k"

to 61-option-modem-modeswitch.rules did the trick for me.
Note that I had to put this line before the GOTO-branch for some reason,
altough the Novatel bDeviceClass and bDeviceSubClass are both zero, it is an usb device, so I have no idea why.

Attaching the 61-option-modem-modeswitch.rules that does work for me.

Changed in udev (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Martin Pitt (pitti) wrote :

modem-modeswitch is obsolete, this is taken over by usb-modeswitch now (and perhaps already fixed there).

affects: udev (Ubuntu) → usb-modeswitch (Ubuntu)
Changed in usb-modeswitch (Ubuntu):
status: Triaged → New
Revision history for this message
Didier Raboud (odyx) wrote :

Fixed in 20100110-1

Changed in usb-modeswitch (Ubuntu):
assignee: nobody → Didier Raboud (odyx)
status: New → Fix Committed
affects: usb-modeswitch (Ubuntu) → usb-modeswitch-data (Ubuntu)
Didier Raboud (odyx)
Changed in usb-modeswitch-data (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.