[Bug 388109] [NEW] incorrect rule in usb_modeswitch.rules for 19d2:2000

Cleber Santz clebersantz at gmail.com
Tue Jun 16 20:23:00 UTC 2009


Public bug reported:

The rule in /etc/udev/rules/ usb_modeswitch.rules seens to be incorrect
for device 19d2:2000, the actual rule does not change to modem device.

Actual rule:
SUBSYSTEM=="usb", SYSFS{idVendor}=="19d2", SYSFS{idProduct}=="2000", RUN+="/usr/sbin/usb_modeswitch --DefaultVendor 0x19d2 --DefaultProduct 0x2000 --MessageEndpoint 0x04 --MessageContent 55534243123456780000000000000600000000000000000000000000000000"

Rule that work for me, copied from VMC (Vodafone Mobile Connector):
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", \
   ATTR{idVendor}=="19d2", ATTR{idProduct}=="2000", \
   RUN+="/usr/sbin/vmc-usb_modeswitch-eject.sh %s{idVendor} %s{idProduct}"

Content of vmc-usb_modeswitch-eject.sh :
#!/bin/sh
VID="$1"
PID="$2"
# Need to wait for the device to settle before sending the command
sleep 1
# Standard SCSI eject 
usb_modeswitch -v ${VID} -p ${PID} -M 5553424312345678000000000000061b000000020000000000000000000000 -R 1


$ apt-cache policy usb-modeswitch 
usb-modeswitch:
  Installed: 0.9.7-1
  Candidate: 0.9.7-1
  Version table:
 *** 0.9.7-1 0
        500 http://br.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

$ lsb_release 
Description:	Ubuntu karmic (development branch)
Release:	9.10

$ uname 
Linux ubuntu 2.6.30-8-generic #9-Ubuntu SMP Wed Jun 3 15:38:38 UTC 2009 x86_64 GNU/Linux

** Affects: usb-modeswitch (Ubuntu)
     Importance: Undecided
         Status: New

-- 
incorrect rule in usb_modeswitch.rules for 19d2:2000
https://bugs.launchpad.net/bugs/388109
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list