Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 16 Dec 2017, 10:31

I have usb modem Huawei E3372h-607, the usb mode switch doesn't work when I plugged in the device on a laptop with Antergos Linux OS (Arch Linux). It's recognized as usb mass storage instead of network modem.

Usb mode switch version: 2.5.1-1

lsusb | grep Modem output:

Code: Select all

Bus 002 Device 006: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
I can manually switch it to modem mode with command:

Code: Select all

sudo usb_modeswitch -v 12d1 -p 14fe -J
Then the lsusb output gives:

Code: Select all

Bus 002 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
I checked there is already config file for id 12d1:14fe in /usr/share/usb_modeswitch/12d1:14fe, with contents:

Code: Select all

# Huawei E352 (T-Mobile NL), E173s (Variant)
TargetVendor=0x12d1
TargetProductList="1506,150f,151d,1c1e"
HuaweiNewMode=1
So logically the mode switch should work as the target id is correct (12d1:1506), but it didn't work for my case.

I also have enabled logging in /etc/usb_modeswitch.conf, but I don't see any usb mode switch log files created in /var/log.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by Josh » 17 Dec 2017, 15:33

Hmm - can you check if there is a "rules" file for usb_modeswitch in /lib/udev/rules.d ?

In the original source, the name is "40-usb_modeswitch.rules"; the actual name does not matter except for the parsing order which is defined by the number in the name.

If the file is present, check if the version is current (should say "20170205" or "20170806"). If all looks well, try to monitor the udev actions when inserting the modem. Run the following terminal command, then plug the modem.

Code: Select all

# udevadm monitor

epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 18 Dec 2017, 06:15

Yes, the file exists, the version is 20170805.

The result of udevadm monitor:

Code: Select all

KERNEL[178.348790] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1 (usb)
KERNEL[178.387709] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0 (usb)
UDEV  [178.913794] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1 (usb)
KERNEL[178.952465] add      /module/usb_storage (module)
KERNEL[178.952603] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3 (scsi)
KERNEL[178.952624] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/scsi_host/host3 (scsi_host)
KERNEL[178.952644] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [178.953492] add      /module/usb_storage (module)
UDEV  [178.953644] add      /bus/usb/drivers/usb-storage (drivers)
KERNEL[178.953944] add      /module/uas (module)
KERNEL[178.953978] add      /bus/usb/drivers/uas (drivers)
UDEV  [178.954080] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0 (usb)
UDEV  [178.954474] add      /module/uas (module)
UDEV  [178.954493] add      /bus/usb/drivers/uas (drivers)
UDEV  [178.955235] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3 (scsi)
UDEV  [178.955543] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/scsi_host/host3 (scsi_host)
KERNEL[179.987978] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0 (scsi)
KERNEL[179.988068] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0 (scsi)
KERNEL[179.988117] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/scsi_device/3:0:0:0 (scsi_device)
KERNEL[179.988311] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[179.988459] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/bsg/3:0:0:0 (bsg)
KERNEL[179.988582] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1 (scsi)
KERNEL[179.988792] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/scsi_disk/3:0:0:1 (scsi_disk)
KERNEL[179.988857] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/scsi_device/3:0:0:1 (scsi_device)
KERNEL[179.988917] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/scsi_generic/sg3 (scsi_generic)
KERNEL[179.989047] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/bsg/3:0:0:1 (bsg)
UDEV  [179.991570] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0 (scsi)
UDEV  [179.997092] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1 (scsi)
KERNEL[180.000725] add      /devices/virtual/bdi/8:32 (bdi)
UDEV  [180.000800] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/scsi_disk/3:0:0:1 (scsi_disk)
KERNEL[180.000848] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/block/sdc (block)
KERNEL[180.000886] add      /module/cdrom (module)
UDEV  [180.001671] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/scsi_device/3:0:0:1 (scsi_device)
KERNEL[180.002047] add      /module/sr_mod (module)
UDEV  [180.002261] add      /module/cdrom (module)
UDEV  [180.002458] add      /module/sr_mod (module)
UDEV  [180.002481] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/scsi_generic/sg3 (scsi_generic)
UDEV  [180.002834] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/bsg/3:0:0:1 (bsg)
UDEV  [180.002867] add      /devices/virtual/bdi/8:32 (bdi)
KERNEL[180.007882] change   /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/block/sdc (block)
KERNEL[180.008662] add      /devices/virtual/bdi/11:0 (bdi)
KERNEL[180.008734] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
KERNEL[180.008803] add      /bus/scsi/drivers/sr (drivers)
UDEV  [180.008901] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0 (scsi)
UDEV  [180.009018] add      /devices/virtual/bdi/11:0 (bdi)
UDEV  [180.009151] add      /bus/scsi/drivers/sr (drivers)
KERNEL[180.010226] change   /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
UDEV  [180.010285] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/scsi_device/3:0:0:0 (scsi_device)
UDEV  [180.010329] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/bsg/3:0:0:0 (bsg)
UDEV  [180.010814] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV  [180.016600] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/block/sdc (block)
UDEV  [180.022912] change   /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:1/block/sdc (block)
UDEV  [180.026617] add      /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
UDEV  [180.080895] change   /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
KERNEL[182.240981] change   /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
UDEV  [182.406721] change   /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
KERNEL[182.525119] add      /module/isofs (module)
KERNEL[182.525150] add      /kernel/slab/isofs_inode_cache (slab)
UDEV  [182.525986] add      /module/isofs (module)
UDEV  [182.526010] add      /kernel/slab/isofs_inode_cache (slab)
KERNEL[182.529523] add      /module/nls_utf8 (module)
UDEV  [182.530744] add      /module/nls_utf8 (module)

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by Josh » 18 Dec 2017, 19:37

It looks like usb_modeswitch is never started by udev.

Instead of udevadm monitor, run the following and then insert the modem again:

Code: Select all

# journalctl -f
When I do that on my machines, I get this output - note the systemd line:

Code: Select all

...
Dec 18 18:32:57 routerbox kernel: usb 1-1.1: new high-speed USB device number 15 using ehci-pci
Dec 18 18:32:57 routerbox kernel: usb 1-1.1: New USB device found, idVendor=12d1, idProduct=14fe
Dec 18 18:32:57 routerbox kernel: usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=4
Dec 18 18:32:57 routerbox kernel: usb 1-1.1: Product: HUAWEI Mobile
Dec 18 18:32:57 routerbox kernel: usb 1-1.1: Manufacturer: HUAWEI Technology
Dec 18 18:32:57 routerbox kernel: usb 1-1.1: SerialNumber: FFFFFFFFFFFFFFFF
Dec 18 18:32:57 routerbox kernel: usb-storage 1-1.1:1.0: USB Mass Storage device detected
Dec 18 18:32:57 routerbox kernel: scsi host3: usb-storage 1-1.1:1.0
Dec 18 18:32:57 routerbox systemd[1]: Starting USB_ModeSwitch__1-1.1:1.0...
Dec 18 18:32:58 routerbox usb_modeswitch[10058]: switch device 12d1:14fe on 001/015
Dec 18 18:32:58 routerbox kernel: usb 1-1.1: USB disconnect, device number 15
Dec 18 18:32:58 routerbox kernel: usb 1-1.1: new high-speed USB device number 16 using ehci-pci
Dec 18 18:32:59 routerbox kernel: usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1506
Dec 18 18:32:59 routerbox kernel: usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Dec 18 18:32:59 routerbox kernel: usb 1-1.1: Product: HUAWEI Mobile
Dec 18 18:32:59 routerbox kernel: usb 1-1.1: Manufacturer: HUAWEI Technology
Dec 18 18:32:59 routerbox kernel: option 1-1.1:1.0: GSM modem (1-port) converter detected
Dec 18 18:32:59 routerbox kernel: usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
...

epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 18 Dec 2017, 23:15

Here is the output of journalctl:

Code: Select all

Dec 19 04:07:26 desktop-lvm systemd[919]: Starting GNOME Terminal Server...
Dec 19 04:07:26 desktop-lvm dbus-daemon[941]: [session uid=1000 pid=941] Successfully activated service 'org.gnome.Terminal'
Dec 19 04:07:26 desktop-lvm systemd[919]: Started GNOME Terminal Server.
Dec 19 04:08:07 desktop-lvm kernel: usb 2-1: new high-speed USB device number 4 using xhci_hcd
Dec 19 04:08:07 desktop-lvm mtp-probe[2128]: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1"
Dec 19 04:08:07 desktop-lvm mtp-probe[2128]: bus: 2, device: 4 was not an MTP device
Dec 19 04:08:08 desktop-lvm colord[1103]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 19 04:08:08 desktop-lvm kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
Dec 19 04:08:08 desktop-lvm kernel: scsi host3: usb-storage 2-1:1.0
Dec 19 04:08:08 desktop-lvm kernel: usbcore: registered new interface driver usb-storage
Dec 19 04:08:08 desktop-lvm kernel: usbcore: registered new interface driver uas
Dec 19 04:08:08 desktop-lvm colord[1103]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 19 04:08:09 desktop-lvm kernel: scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Dec 19 04:08:09 desktop-lvm kernel: scsi 3:0:0:1: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Dec 19 04:08:09 desktop-lvm kernel: scsi 3:0:0:0: Attached scsi generic sg2 type 5
Dec 19 04:08:09 desktop-lvm kernel: sd 3:0:0:1: Attached scsi generic sg3 type 0
Dec 19 04:08:09 desktop-lvm colord[1103]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 19 04:08:09 desktop-lvm colord[1103]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 19 04:08:09 desktop-lvm kernel: sd 3:0:0:1: [sdc] Attached SCSI removable disk
Dec 19 04:08:09 desktop-lvm kernel: sr 3:0:0:0: [sr0] scsi-1 drive
Dec 19 04:08:09 desktop-lvm kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
Dec 19 04:08:09 desktop-lvm kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
Dec 19 04:08:09 desktop-lvm colord[1103]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fc 00 00 02 00
Dec 19 04:08:11 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145392
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fc 00 00 02 00
Dec 19 04:08:11 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145392
Dec 19 04:08:11 desktop-lvm kernel: Buffer I/O error on dev sr0, logical block 18174, async page read
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c 80 00 00 3c 00
Dec 19 04:08:11 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 143872
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c 80 00 00 02 00
Dec 19 04:08:11 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 143872
Dec 19 04:08:11 desktop-lvm kernel: Buffer I/O error on dev sr0, logical block 17984, async page read
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fa 00 00 02 00
Dec 19 04:08:11 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145384
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 19 04:08:11 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fa 00 00 02 00
Dec 19 04:08:11 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145384
Dec 19 04:08:11 desktop-lvm kernel: Buffer I/O error on dev sr0, logical block 18173, async page read
Dec 19 04:08:11 desktop-lvm kernel: ISO 9660 Extensions: Microsoft Joliet Level 1
Dec 19 04:08:11 desktop-lvm kernel: ISOFS: changing to secondary root
Dec 19 04:08:11 desktop-lvm udisksd[1119]: Mounted /dev/sr0 at /run/media/pcuser/Mobile Partner on behalf of uid 1000

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by Josh » 19 Dec 2017, 00:44

It seems like the systemd action for usb_modeswitch is not started.

Check that these components are in place, compare the content with that of the original source code package available on the usb_modeswitch page:

- usb_modeswitch@.service (should be in or under /etc/systemd/system)
- usb_modeswitch (a shell script in /lib/udev)

epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 19 Dec 2017, 08:18

- usb_modeswitch@.service (should be in or under /etc/systemd/system)
This file doesn't exist.
- usb_modeswitch (a shell script in /lib/udev)
This file exists.


So is it arch linux package script issue?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by Josh » 19 Dec 2017, 09:02

It is possible that the systemd file is in subfolders or somewhere under /lib/systemd - use the "find" command:

Code: Select all

# cd /etc/systemd
# find -name "usb_modeswitch*"
# cd /lib/systemd
# find -name "usb_modeswitch*"

epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 19 Dec 2017, 10:40

Nothing found on those folder. I had searched from "/" folder too for usb_modeswitch@.service file, no results.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by Josh » 19 Dec 2017, 20:26

Try to copy the service file from the source package to /etc/systemd/system and see if that works.

epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 20 Dec 2017, 06:17

Where can I find the file?

Looking from the package content (https://www.archlinux.org/packages/comm ... odeswitch/), it seems there is no usb_modeswitch@.service file exists.

Update:
I copied the usb_modeswitch@.service file from github page (https://github.com/trevd/usb-modeswitch) into /etc/systemd/system folder, but the usb mode switch still doesn't work.

The journalctl output shows the usb modeswitch service is started though, but no switching operation is performed:

Code: Select all

Dec 20 13:13:25 desktop-lvm kernel: usb 2-1: new high-speed USB device number 7 using xhci_hcd
Dec 20 13:13:25 desktop-lvm kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
Dec 20 13:13:25 desktop-lvm kernel: scsi host3: usb-storage 2-1:1.0
Dec 20 13:13:25 desktop-lvm mtp-probe[2224]: checking bus 2, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1"
Dec 20 13:13:25 desktop-lvm mtp-probe[2224]: bus: 2, device: 7 was not an MTP device
Dec 20 13:13:26 desktop-lvm colord[1156]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 20 13:13:26 desktop-lvm systemd[1]: Starting USB_ModeSwitch...
Dec 20 13:13:26 desktop-lvm colord[1156]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 20 13:13:26 desktop-lvm colord[1156]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 20 13:13:26 desktop-lvm systemd[1]: Started USB_ModeSwitch.
Dec 20 13:13:26 desktop-lvm kernel: scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Dec 20 13:13:26 desktop-lvm kernel: scsi 3:0:0:1: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Dec 20 13:13:26 desktop-lvm kernel: sr 3:0:0:0: [sr0] scsi-1 drive
Dec 20 13:13:26 desktop-lvm kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
Dec 20 13:13:26 desktop-lvm kernel: sr 3:0:0:0: Attached scsi generic sg2 type 5
Dec 20 13:13:26 desktop-lvm kernel: sd 3:0:0:1: Attached scsi generic sg3 type 0
Dec 20 13:13:26 desktop-lvm kernel: sd 3:0:0:1: [sdc] Attached SCSI removable disk
Dec 20 13:13:26 desktop-lvm colord[1156]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 20 13:13:26 desktop-lvm colord[1156]: lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
Dec 20 13:13:28 desktop-lvm kernel: scsi_io_completion: 2 callbacks suppressed
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fc 00 00 02 00
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: 2 callbacks suppressed
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145392
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fc 00 00 02 00
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145392
Dec 20 13:13:28 desktop-lvm kernel: Buffer I/O error on dev sr0, logical block 18174, async page read
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c 80 00 00 3c 00
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 143872
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c 80 00 00 02 00
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 143872
Dec 20 13:13:28 desktop-lvm kernel: Buffer I/O error on dev sr0, logical block 17984, async page read
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fa 00 00 02 00
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145384
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 
Dec 20 13:13:28 desktop-lvm kernel: sr 3:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fa 00 00 02 00
Dec 20 13:13:28 desktop-lvm kernel: print_req_error: critical medium error, dev sr0, sector 145384
Dec 20 13:13:28 desktop-lvm kernel: Buffer I/O error on dev sr0, logical block 18173, async page read
Dec 20 13:13:28 desktop-lvm kernel: ISO 9660 Extensions: Microsoft Joliet Level 1
Dec 20 13:13:28 desktop-lvm kernel: ISOFS: changing to secondary root

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by Josh » 20 Dec 2017, 09:10

You can find the source packages - program and data - on the usb_modeswitch documentation page.
See navigation bar at the top, go to "USB_ModeSwitch".

If I were you, I'd try to replace the package from your distribution with the original source. You might want to check the dependency on "tcl". I don't know which install variant was chosen by Arch. Have a look at the README file of the program package.

epopor
Posts: 7
Joined: 16 Dec 2017, 10:14

Re: USB mode switch doesn't work for Huawei E3372h-607

Post by epopor » 20 Dec 2017, 10:06

Ok, I uninstalled the existing usb_modeswitch and installed the usb_modeswitch from the source, now the usb mode switch is working. The interesting thing is in antergos live the usb_modeswtich is working and usb_modeswitch@.service file exists too, but it's still using old version (2.5.0-1 if I recall).

UPDATE:
Downgrading usb_modeswitch arch linux package to v2.5.0-1 also solves the issue. So I guess it's confirmed it's arch linux package issue on v2.5.1-1.

Post Reply