usb_modeswitch@.service fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
usb-modeswitch (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
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
ProcVersionSign
Uname: Linux 3.19.0-8-generic x86_64
NonfreeKernelMo
ApportVersion: 2.16.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
CustomUdevRuleF
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=
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.
dmi.board.name: 427637U
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 427637U
dmi.product.
dmi.sys.vendor: LENOVO
Related branches
summary: |
- usb_modeswitch@.service fails sometimes + usb_modeswitch@.service fails |
Changed in usb-modeswitch (Ubuntu): | |
importance: | Medium → High |
You should have some unit usb_modeswitch@ <something> .service in
systemctl --all | grep usb_modeswitch
When you have a boot where it was *not* enabled automatically, can you please get me the output of
systemctl status -l usb_modeswitch@ <something> .service
?
Note keeping for myself: /lib/udev/ rules.d/ 40-usb_ modeswitch. rules matches on the device and calls /lib/udev/ usb_modeswitch which should then run systemctl --no-block start usb_modeswitch@ $1.service.