← Back to team overview

desktop-packages team mailing list archive

[Bug 1431179] Re: usb_modeswitch@.service fails

 

Still not working with Huawei E3372:

Jul 30 16:35:11 m-api2 kernel: [ 1472.901499] usb 3-3: new high-speed USB device number 4 using ehci-pci
Jul 30 16:35:11 m-api2 kernel: [ 1473.034553] usb 3-3: New USB device found, idVendor=12d1, idProduct=1f01
Jul 30 16:35:11 m-api2 kernel: [ 1473.034564] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 30 16:35:11 m-api2 kernel: [ 1473.034569] usb 3-3: Product: HUAWEI_MOBILE
Jul 30 16:35:11 m-api2 kernel: [ 1473.034573] usb 3-3: Manufacturer: HUAWEI_MOBILE
Jul 30 16:35:11 m-api2 kernel: [ 1473.034577] usb 3-3: SerialNumber: 0123456789ABCDEF
Jul 30 16:35:11 m-api2 kernel: [ 1473.035513] usb-storage 3-3:1.0: USB Mass Storage device detected
Jul 30 16:35:11 m-api2 kernel: [ 1473.038949] scsi host8: usb-storage 3-3:1.0
Jul 30 16:35:11 m-api2 systemd[1]: Starting USB_ModeSwitch...
Jul 30 16:35:11 m-api2 systemd[1]: usb_modeswitch@3-3-3-3:1.0.service: main process exited, code=exited, status=1/FAILURE
Jul 30 16:35:11 m-api2 systemd[1]: Failed to start USB_ModeSwitch.
Jul 30 16:35:11 m-api2 systemd[1]: Unit usb_modeswitch@3-3-3-3:1.0.service entered failed state.
Jul 30 16:35:11 m-api2 systemd[1]: usb_modeswitch@3-3-3-3:1.0.service failed.
Jul 30 16:35:12 m-api2 kernel: [ 1474.037905] scsi 8:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jul 30 16:35:12 m-api2 kernel: [ 1474.038365] scsi 8:0:0:1: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Jul 30 16:35:12 m-api2 kernel: [ 1474.044459] sr 8:0:0:0: [sr0] scsi-1 drive
Jul 30 16:35:12 m-api2 kernel: [ 1474.045757] sr 8:0:0:0: Attached scsi CD-ROM sr0
Jul 30 16:35:12 m-api2 kernel: [ 1474.045987] sr 8:0:0:0: Attached scsi generic sg1 type 5
Jul 30 16:35:12 m-api2 kernel: [ 1474.046975] sd 8:0:0:1: Attached scsi generic sg2 type 0
Jul 30 16:35:12 m-api2 kernel: [ 1474.053341] sd 8:0:0:1: [sdb] Attached SCSI removable disk
Jul 30 16:35:12 m-api2 systemd-udevd[258]: error: /dev/sdb: No medium found
Jul 30 16:35:12 m-api2 kernel: [ 1474.763724] sr 8:0:0:0: [sr0] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jul 30 16:35:12 m-api2 kernel: [ 1474.763746] sr 8:0:0:0: [sr0] Sense Key : Medium Error [current]
Jul 30 16:35:12 m-api2 kernel: [ 1474.763757] sr 8:0:0:0: [sr0] Add. Sense: Unrecovered read error
Jul 30 16:35:12 m-api2 kernel: [ 1474.763765] sr 8:0:0:0: [sr0] CDB: 
Jul 30 16:35:12 m-api2 kernel: [ 1474.763772] Read(10): 28 00 00 00 0f fe 00 00 02 00
Jul 30 16:35:12 m-api2 kernel: [ 1474.763798] blk_update_request: critical medium error, dev sr0, sector 16376
Jul 30 16:35:12 m-api2 kernel: [ 1474.774706] sr 8:0:0:0: [sr0] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jul 30 16:35:12 m-api2 kernel: [ 1474.774721] sr 8:0:0:0: [sr0] Sense Key : Medium Error [current]
Jul 30 16:35:12 m-api2 kernel: [ 1474.774727] sr 8:0:0:0: [sr0] Add. Sense: Unrecovered read error
Jul 30 16:35:12 m-api2 kernel: [ 1474.774730] sr 8:0:0:0: [sr0] CDB: 
Jul 30 16:35:12 m-api2 kernel: [ 1474.774735] Read(10): 28 00 00 00 0f fe 00 00 02 00
Jul 30 16:35:12 m-api2 kernel: [ 1474.774749] blk_update_request: critical medium error, dev sr0, sector 16376
Jul 30 16:35:12 m-api2 kernel: [ 1474.774838] Buffer I/O error on dev sr0, logical block 2047, async page read
Jul 30 16:35:13 m-api2 kernel: [ 1474.857014] sr 8:0:0:0: [sr0] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jul 30 16:35:13 m-api2 kernel: [ 1474.857036] sr 8:0:0:0: [sr0] Sense Key : Medium Error [current]
Jul 30 16:35:13 m-api2 kernel: [ 1474.857047] sr 8:0:0:0: [sr0] Add. Sense: Unrecovered read error
Jul 30 16:35:13 m-api2 kernel: [ 1474.857054] sr 8:0:0:0: [sr0] CDB: 
Jul 30 16:35:13 m-api2 kernel: [ 1474.857062] Read(10): 28 00 00 00 0f fc 00 00 02 00
Jul 30 16:35:13 m-api2 kernel: [ 1474.857089] blk_update_request: critical medium error, dev sr0, sector 16368
Jul 30 16:35:13 m-api2 kernel: [ 1474.858249] sr 8:0:0:0: [sr0] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jul 30 16:35:13 m-api2 kernel: [ 1474.858260] sr 8:0:0:0: [sr0] Sense Key : Medium Error [current]
Jul 30 16:35:13 m-api2 kernel: [ 1474.858269] sr 8:0:0:0: [sr0] Add. Sense: Unrecovered read error
Jul 30 16:35:13 m-api2 kernel: [ 1474.858276] sr 8:0:0:0: [sr0] CDB: 
Jul 30 16:35:13 m-api2 kernel: [ 1474.858280] Read(10): 28 00 00 00 0f fc 00 00 02 00
Jul 30 16:35:13 m-api2 kernel: [ 1474.858303] blk_update_request: critical medium error, dev sr0, sector 16368
Jul 30 16:35:13 m-api2 kernel: [ 1474.858447] Buffer I/O error on dev sr0, logical block 2046, async page read


But manually calling usb_modeswitch works:

root@m-api2:~# usb_modeswitch -v 0x12d1 -p 0x1f01 -J
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 004 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
     Product: HUAWEI_MOBILE
  Serial No.: 0123456789ABCDEF
-------------------------
Using standard Huawei switching message
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 Device seems to have vanished right after sending. Good.
 Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

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

Title:
  usb_modeswitch@.service fails

Status in usb-modeswitch package in Ubuntu:
  Fix Released

Bug description:
  I lack the technical knowledge to know if this is a bug in udev,
  systemd or another component.

  After the switch to systemd, my 4G Huawei USB modem  no longer
  functions as a modem unless I run usb_modeswitch to flip its state
  from USB mass storage. The command I issue and its output is below,
  which also show the Vendor and Product ID.

  Strangely, it does not do this every time. Yesterday when I updated
  using apt-get dist-upgrade upon reboot the modem worked as expected.
  But from a cold boot this morning it did not.

  $ sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -J
  [sudo] password for damon: 
  Look for default devices ...
     product ID matched
   Found devices in default mode (1)
  Access device 003 on bus 003
  Current configuration number is 1
  Use interface number 0
  Use endpoints 0x01 (out) and 0x81 (in)

  USB description data (for identification)
  -------------------------
  Manufacturer: HUAWEI Technology
       Product: HUAWEI Mobile
    Serial No.: FFFFFFFFFFFFFFFF
  -------------------------
  Using standard Huawei switching message
  Looking for active driver ...
   OK, driver detached
  Set up interface 0
  Use endpoint 0x01 for message sending ...
  Trying to send message 1 to endpoint 0x01 ...
   OK, message successfully sent
  Reset response endpoint 0x81
   Could not reset endpoint (probably harmless): -99
  Reset message endpoint 0x01
   Could not reset endpoint (probably harmless): -99
   Device is gone, skip any further commands
  -> Run lsusb to note any changes. Bye!

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: udev 219-4ubuntu5
  ProcVersionSignature: Ubuntu 3.19.0-8.8-generic 3.19.1
  Uname: Linux 3.19.0-8-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.16.2-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  CustomUdevRuleFiles: 60-ssd-scheduler.rules
  Date: Thu Mar 12 11:37:06 2015
  InstallationDate: Installed on 2015-02-05 (34 days ago)
  InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150205)
  MachineType: LENOVO 427637U
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-8-generic root=UUID=eb18ef51-a2d0-4372-8eb9-ae009a05d4f6 ro quiet splash
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/26/2013
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 8BET62WW (1.42 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 427637U
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Available
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: dmi:bvnLENOVO:bvr8BET62WW(1.42):bd07/26/2013:svnLENOVO:pn427637U:pvrThinkPadW520:rvnLENOVO:rn427637U:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 427637U
  dmi.product.version: ThinkPad W520
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1431179/+subscriptions