Huawei E3131 gives error when plugged in
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
usb-modeswitch-data (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 13.04, the Huawei E3131 (correctly) switches to modem mode upon insertion (and works), but while the device is still in storage mode, Ubuntu tries to automatically mount the storage device, which then disappears upon modeswitching. The result is an error dialog with content similar to [1], which the user must ok each time the device is plugged in.
[1] https:/
The device is branded "DNA" (Finland), device IDs are 12d1:151a (storage mode), 12d1:151d (modem mode).
I was able to get rid of the error by editing the udev rules. To prevent Ubuntu from automounting the storage, it can be ejected by udev before running the modeswitch command.
I did this by copying /lib/udev/
---8<---8<---8<---
# Huawei E392u-12
ATTRS{idVendor}
---8<---8<---8<---
to
---8<---8<---8<---
# Huawei E392u-12, DNA (FI) Huawei E3131
ATTRS{idVendor}
ATTRS{idVendor}
---8<---8<---8<---
i.e. by adding the eject command (the SCSI mode "-s" is important). This gets rid of the error dialog.
It would be nice if this was fixed in the official package.
Finally, note that the storage device still reappears after the modeswitch, but this is a problem in the E3131 itself (apparently rather common in USB mobile modems). After the switch, it appears as both a modem and a storage device (where the storage contains the Windows drivers). I haven't found a workaround for this part.
affects: | udev (Ubuntu) → usb-modeswitch-data (Ubuntu) |