Strange as this sounds I went to try the solution above on a different
computer with the same Ubuntu version (16.04) and didn't work - device
appeared as mass storage. The line that worked was this one:

ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f01",
RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -J"

which bypasses the udev modeswitch wrapper and has the parameters
hardcoded. [1]

There is a related bug on the Debian bug tracker:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754348

[1]
http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=2562

** Bug watch added: Debian Bug tracker #754348
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754348

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to usb-modeswitch-data in Ubuntu.
https://bugs.launchpad.net/bugs/1707810

Title:
  regression on udev rules for HUAWEI mobile broadband?

Status in linux package in Ubuntu:
  Incomplete
Status in usb-modeswitch-data package in Ubuntu:
  New

Bug description:
  I found several bug reports about mobile broadband USB sticks not
  working on Ubuntu 16.04. It seems that all the low level support is in
  place but the udev rules are incomplete, in what could be a regression
  from previous versions.

  ----------------------- 16.04 -------------------------

  
  ATTRS{idVendor}=="12d1", ATTRS{manufacturer}!="Android", 
ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch 
'%b/%k'"
  ATTR{idVendor}=="12d1", ATTR{idProduct}=="1573", RUN+="usb_modeswitch '%b/%k'"

  
  ----------------------- 12.04 -------------------------

  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1009", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="101e", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1030", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1031", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1414", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1449", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14ad", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14b5", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14b7", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14c1", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14c4", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14c5", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14d1", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14fe", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1505", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1520", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1521", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1523", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1553", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1557", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c0b", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1d50", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1da1", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="usb_modeswitch 
'%b/%k'"
  ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="380b", RUN+="usb_modeswitch 
'%b/%k'"

  For example the HUAWEI device with vendor:product pair 12d1:1f01 (see
  #1527914 ) worked fine (plug and play) on Ubuntu 12.04 but appears as
  as mass storage device on Ubuntu 16.04.

  The missing rule is simply:

  ATTRS{idVendor}=="12d1", ATTR{idProduct}=="1f01", RUN+="usb_modeswitch
  '%b/%k'"

  References: #1431179 #1527914 #1514231

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1707810/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to