* Jakub Wilk <jw...@debian.org>, 2014-06-11, 18:05:

Package: usb-modeswitch
Version: 2.2.0+repack0-1

After I upgraded usb-modeswitch (2.1.1+repack0-1 => 2.2.0+repack0-1) and
usb-modeswitch-data (20140327-1 => 20140529-1), my Huawei E3131s-2 is no longer switched on boot:

$ lsusb | grep -w Huawei
Bus 001 Device 002: ID 12d1:14fe Huawei Technologies Co., Ltd.

I had to physically plug out the device, and then plug it in again to make the switching happen:

$ lsusb | grep -w Huawei
Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 
LTE/UMTS/GSM Modem/Networkcard

More information:

1) I replaced /lib/udev/usb_modeswitch with a wrapper (attached) that logs basic information to /run. With the old version a few calls to the script are logged (also attached), but with the new version nothing is logged. So apparently /lib/udev/usb_modeswitch doesn't get run at all.

2) If I boot with the device unplugged, then the first time I plug it (when the machine if fully booted) the switch doesn't happen either.

3) Instead of physically re-plugging the device, this command makes the switch happen too:
# udevadm trigger --action=add -subsystem-match=usb

--
Jakub Wilk
#!/bin/sh
log=/run/usb-modeswitch.$(date -Iminutes)
(
    flock 1
    echo "[$(date --rfc-3339=ns)] $0 $@"
    export
) >> "$log"
exec /lib/udev/usb_modeswitch.distrib "$@"
[2014-06-17 17:57:04.456307440+02:00] /lib/udev/usb_modeswitch 1-3/1-3
export ACTION='add'
export BUSNUM='001'
export DEVNAME='/dev/bus/usb/001/002'
export DEVNUM='002'
export DEVPATH='/devices/pci0000:00/0000:00:02.1/usb1/1-3'
export DEVTYPE='usb_device'
export ID_BUS='usb'
export ID_MODEL='HUAWEI_Mobile'
export ID_MODEL_ENC='HUAWEI\x20Mobile'
export ID_MODEL_ID='14fe'
export ID_REVISION='0102'
export ID_SERIAL='HUAWEI_HUAWEI_Mobile'
export ID_USB_INTERFACES=':080650:'
export ID_VENDOR='HUAWEI'
export ID_VENDOR_ENC='HUAWEI'
export ID_VENDOR_FROM_DATABASE='Huawei Technologies Co., Ltd.'
export ID_VENDOR_ID='12d1'
export MAJOR='189'
export MINOR='1'
export PRODUCT='12d1/14fe/102'
export PWD='/'
export SEQNUM='1196'
export SUBSYSTEM='usb'
export TYPE='0/0/0'
export USEC_INITIALIZED='65196'
[2014-06-17 17:57:10.985138120+02:00] /lib/udev/usb_modeswitch --symlink-name 
/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0 12d1 1506
export ACTION='add'
export DEVNAME='/dev/ttyUSB0'
export 
DEVPATH='/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0'
export MAJOR='188'
export MINOR='0'
export PWD='/'
export SEQNUM='1339'
export SUBSYSTEM='tty'
export USEC_INITIALIZED='258267'
[2014-06-17 17:57:10.992601920+02:00] /lib/udev/usb_modeswitch --symlink-name 
/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB1/tty/ttyUSB1 12d1 1506
export ACTION='add'
export DEVNAME='/dev/ttyUSB1'
export 
DEVPATH='/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB1/tty/ttyUSB1'
export MAJOR='188'
export MINOR='1'
export PWD='/'
export SEQNUM='1341'
export SUBSYSTEM='tty'
export USEC_INITIALIZED='258349'
[2014-06-17 17:57:10.995739560+02:00] /lib/udev/usb_modeswitch --symlink-name 
/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.3/ttyUSB2/tty/ttyUSB2 12d1 1506
export ACTION='add'
export DEVNAME='/dev/ttyUSB2'
export 
DEVPATH='/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.3/ttyUSB2/tty/ttyUSB2'
export MAJOR='188'
export MINOR='2'
export PWD='/'
export SEQNUM='1343'
export SUBSYSTEM='tty'
export USEC_INITIALIZED='258454'

Reply via email to