[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
The Ubuntu package has been updated to remove the C rewrite and use the upstream tcl version now which should fix the issue https://launchpad.net/ubuntu/+source/usb-modeswitch/2.6.0-2ubuntu1 We are not going to add tcl as a depends in a stable update though so the C code bug is still going to need to be resolved in focal ** Changed in: usb-modeswitch (Ubuntu) Importance: Undecided => High ** Changed in: usb-modeswitch (Ubuntu) Status: Confirmed => Fix Released ** Summary changed: - usb_modeswitch does not switch modems (remain visible as mass storage) + Device validate failed when connected to an usb hub ** Summary changed: - Device validate failed when connected to an usb hub + Device validation failing when connected to an usb hub -- 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/1866926 Title: Device validation failing when connected to an usb hub Status in usb-modeswitch package in Ubuntu: Fix Released Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
I just spent a few hours trying to figure out why my Alcatel modem wasn't establishing a connection...and ran across this bug. Thank you Hanno for the workaround! I uninstalled the usb_modeswitch package and installed the one from Debian Bullseye, and my modem shows up now! After adding entries to my netplan configuration to enable DHCP, I can access the interfaces. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: Confirmed Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
The dot in the kernel name of a USB device indicates that a device is connected via a hub. In theory, this can even be cascaded, leading to names like "2-1.2.1.3.4" So the hardware difference is that the ports in the Toshiba are not 'primary' but exposed through an internal hub as opposed to the Dell. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: Confirmed Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: usb-modeswitch (Ubuntu) Status: New => Confirmed -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: Confirmed Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
To further clarify the impact of different hardware on bug occurrence: The difference in Mariusz' hardware (Dell vs. Toshiba) leads to different kernel names ("3-4" on Dell vs. "2-1.2" on Toshiba). So "device validation" only happened on his Toshiba (thereby updating iface to the wrong value of 8), but not on Dell. Similarly, I had a problem on RPi 3 (kernel_name = "1-1.3") but no problem on an x86_64 VM (kernel_name = "1-1"). My hardware and VM both ran on Ubuntu 20.04 LTS. This is the commit that fixed a segfault in the C dispatcher but introduced the problem for Mariusz and me: https://git.launchpad.net/ubuntu/+source/usb- modeswitch/commit/?id=4ef455d6d34fa465945db2b18f5dcabc604a9888 -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
I am likely experiencing the same issue, yet on other hardware: Ubuntu 20.04 with a ZTE MF100 modem but only on Raspberry Pi. The good news: I have triaged the issue. The bug is in "usb_modeswitch_dispatcher.c", a C rewrite of the upstream Tcl script. The C dispatcher receives the modem's kernel_name. If it contains the characters dot ('.') and dash ('-') but no colon (':'), the device is marked for some extended "interface validation" (see lines 343ff of "usb_modeswitch_dispatcher.c"). A bit further down at lines 388ff, the "iface" is initialized to 0, but the interface validation updates it to 8. The value 8 stems from an atoi() invocation on the contents of "bInterfaceClass". For this updated iface value, the C dispatcher tries to find the corresponding (sub) interface directory and this fails because my modem does not have 8 sub devices. Until here, 18.04 and 20.04 behavior is identical. However, the following new code was introduced in 20.04 right after the directory lookup attempt is made: --8<-- if (ifdir == NULL) { modeswitch_log(" No access to interface %d. Exit\n", iface); return 1; } --8<-- This is causing the early exit for Mariusz and me. If I remove this code, the rest of the C dispatcher works fine (even with a wrong iface value of 8 - this is the same behavior as it was on 18.04). In a scenario where no interface validation takes place (e.g. because of a colon in the kernel_name or the absence of a dot - such as Ubuntu 20.04 on x86_64 VM), the iface value of 0 remains unchanged and the interface directory is looked up successfully. I have tried to match the C dispatcher code with the upstream Tcl script. The Tcl script initializes iface to 0 and eventually updates it to "1.0" when doing the interface validation branch. Another thing that I noticed is that the C dispatcher erroneously uses atoi() on the contents of bInterfaceClass. The content is a hexadecimal string such as "00", "08" or "ff" while atoi() expects a decimal string. If bInterfaceClass contains "ff", atoi() would return 0. I have solved this problem by replacing "usb_modeswitch_dispatcher" with the upstream Tcl script, pointing its interpreter to jimsh and installing jimsh. I think it would be a wise choice to ditch the C dispatcher, use the upstream Tcl script and make the package depend on jimsh. Reasons: - The C dispatcher does not implement the same functionality as the Tcl script in 2.5.2. - Implementing changes from the Tcl script in 2.6.0 would be even more painful. - The usb_modeswitch author provides flavors that eliminate the Tcl dependency. - I fail to see how the "binary size" argument still applies in 2020 to machines that are capable of running Ubuntu. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
Please note that on a Dell laptop everything works as expected. The difference most probably is caused by hardware in the laptop. Two different modems do not work with Toshiba and both of them work with Dell. The same up-to-date "focal fossa" system. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
Without being familiar with the Ubuntu flavour of usb_modeswitch - can this be a permission issue? Does the usb_modeswitch wrapper and program run in the proper user / group context? It needs to be able to read attributes in the "sys" tree. If the permissions are not correct, that would explain why the manual run with "sudo" works as expected. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
Make the comment on Kubuntu irrelevant. I have launched Kubuntu Live CD daily and the same behavior can be observed. The laptop is Toshiba Satellite L755. Let me know if I can provide any further useful information. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
On Kubuntu @ Dell with the same modem: cat /var/log/usb_modeswitch.log USB_ModeSwitch log from Thu Mar 12 20:09:49 2020 Use global config file: /etc/usb_modeswitch.conf Adjust delay for USB storage devices ... Error: could not access delay_use attribute: No such file or directory Raw args from udev: 3-4 Bus ID for device not given by udev. Trying to determine it from kernel name (3-4) ... Use top device dir /sys/bus/usb/devices/3-4 USB dir exists: /sys/bus/usb/devices/3-4 SCSI dir exists: /sys/bus/usb/devices/3-4 Warning: SCSI attribute "vendor" not readable. Warning: SCSI attribute "model" not readable. Warning: SCSI attribute "rev" not readable. Use interface /sys/bus/usb/devices/3-4/3-4:1.0 USB values from sysfs: idVendor 2001 idProduct a706 manufacturer D-Link,Inc product D-Link DWM-156 serial536591500189710 bNumConfigurations3 bConfigurationValue 1 devnum3 busnum3 Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz Searching entries named: /usr/share/usb_modeswitch/2001:a706* Searching overriding entries named: /etc/usb_modeswitch.d/2001:a706* SCSI attributes not needed, move on. Extract config 2001:a706 from collection /usr/share/usb_modeswitch/configPack.tar.gz config: TargetVendor set to 2001 config: TargetProduct set to 7d01 Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1 ! matched, now switching Device may have an MBIM configuration, check driver ... no MBIM driver found, switch to legacy modem mode Unbinding driver Command to be run: /usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg -b 3 -g 3 -v 2001 -p a706 2>&1 Verbose debug output of usb_modeswitch and libusb follows (Note that some USB errors are expected in the process) Read config file: /run/usb_modeswitch/current_cfg * usb_modeswitch: handle USB devices with multiple modes * Version 2.5.2 (C) Josua Dietze 2017 * Based on libusb1/libusbx ! PLEASE REPORT NEW CONFIGURATIONS ! DefaultVendor= 0x2001 DefaultProduct= 0xa706 TargetVendor= 0x2001 TargetProduct= 0x7d01 StandardEject=1 Success check enabled, max. wait time 20 seconds System integration mode enabled Use given bus/device number: 003/003 ... Look for default devices ... bus/device number matched found USB ID 2001:a706 vendor ID matched product ID matched Found devices in default mode (1) Get the current device configuration ... Current configuration number is 1 Use interface number 0 with class 8 Use endpoints 0x01 (out) and 0x81 (in) USB description data (for identification) - Manufacturer: D-Link,Inc Product: D-Link DWM-156 Serial No.: 536591500189710 - Sending standard EJECT sequence Looking for active drivers ... 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 Read the response to message 1 (CSW) ... Response successfully read (13 bytes), status 0 Trying to send message 2 to endpoint 0x01 ... OK, message successfully sent Read the response to message 2 (CSW) ... Response successfully read (13 bytes), status 0 Trying to send message 3 to endpoint 0x01 ... OK, message successfully sent Read the response to message 3 (CSW) ... Device seems to have vanished after reading. Good. Device is gone, skip any further commands ok:busdev (end of usb_modeswitch output) Check success of mode switch for max. 20 seconds ... Read attributes ... USB dir exists: /sys/bus/usb/devices/3-4 Warning: USB attribute "serial" not readable. All attributes matched Mode switching was successful, found 2001:7d01 (D-Link,Inc: D-Link DWM-156)Now check for bound driver ... no driver has bound to interface 0 yet Device not in "bind_list" yet, bind it now Module loader is /sbin/modprobe Module is active already Try to add ID to driver "option" ID added to driver; check for new devices in /dev driver binding failed Check for AVOID_RESET_QUIRK kernel attribute AVOID_RESET_QUIRK activated All done, exit mariusz:~> lsusb Bus 002 Device 004: ID 0cf3:e004 Qualcomm Atheros Communications Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 0c45:648b Microdia Integrated Webcam Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 004: ID 2001:7d01 D-Link Corp. D-Link DWM-156 Bus 003 Device 002: ID 24ae:2003 RAPOO RAPOO 5G Wireless Device Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -- You received
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
Yes. I mistyped the attribute name. Exact log is: $ cat /var/log/usb_modeswitch.log USB_ModeSwitch log from Thu Mar 12 19:25:36 2020 Use global config file: /etc/usb_modeswitch.conf Raw args from udev: 2-1.2 Bus ID for device not given by udev. Trying to determine it from kernel name (2-1.2) ... Use top device dir /sys/bus/usb/devices/2-1.2 USB dir exists: /sys/bus/usb/devices/2-1.2 SCSI dir exists: /sys/bus/usb/devices/2-1.2 Warning: SCSI attribute "vendor" not readable. Warning: SCSI attribute "model" not readable. Warning: SCSI attribute "rev" not readable. Check class of first interface ... Device is in install mode. No access to interface 8. Exit After that the lsusb is: Bus 002 Device 004: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller Bus 002 Device 016: ID 2001:a706 D-Link Corp. Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 04f2:b289 Chicony Electronics Co., Ltd Bus 001 Device 003: ID 24ae:2003 Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub The udevadm monitor reads: $ udevadm monitor monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[2853.694871] add /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2 (usb) KERNEL[2853.695241] add /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) KERNEL[2853.701296] add /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/host6 (scsi) KERNEL[2853.701409] add /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/host6/scsi_host/host6 (scsi_host) KERNEL[2853.701545] bind /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) KERNEL[2853.701645] bind /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2 (usb) UDEV [2853.730704] add /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2 (usb) KERNEL[2853.733186] add /kernel/slab/:A-256/cgroup/filp(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733231] add /kernel/slab/dentry/cgroup/dentry(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733253] add /kernel/slab/:A-128/cgroup/pid(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733272] add /kernel/slab/inode_cache/cgroup/inode_cache(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733292] add /kernel/slab/sock_inode_cache/cgroup/sock_inode_cache(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733310] add /kernel/slab/:A-0001024/cgroup/PING(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733326] add /kernel/slab/skbuff_head_cache/cgroup/skbuff_head_cache(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733343] add /kernel/slab/kmalloc-512/cgroup/kmalloc-512(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733361] add /kernel/slab/:A-192/cgroup/cred_jar(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733384] add /kernel/slab/kmalloc-64/cgroup/kmalloc-64(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733412] add /kernel/slab/mm_struct/cgroup/mm_struct(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733438] add /kernel/slab/:A-208/cgroup/vm_area_struct(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733464] add /kernel/slab/:A-064/cgroup/anon_vma_chain(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733485] add /kernel/slab/anon_vma/cgroup/anon_vma(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733504] add /kernel/slab/:a-104/cgroup/buffer_head(1373:usb_modeswitch@2-1.2.service) (cgroup) KERNEL[2853.733522] add /kernel/slab/kmalloc-4k/cgroup/kmalloc-4k(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.738662] add /kernel/slab/dentry/cgroup/dentry(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.741004] add /kernel/slab/mm_struct/cgroup/mm_struct(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.744815] add /kernel/slab/kmalloc-4k/cgroup/kmalloc-4k(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.746987] add /devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) UDEV [2853.749264] add /kernel/slab/inode_cache/cgroup/inode_cache(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.749617] add /kernel/slab/:A-0001024/cgroup/PING(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.750878] add /kernel/slab/anon_vma/cgroup/anon_vma(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.751821] add /kernel/slab/kmalloc-512/cgroup/kmalloc-512(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.753065] add /kernel/slab/:A-128/cgroup/pid(1373:usb_modeswitch@2-1.2.service) (cgroup) UDEV [2853.753411] add
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
** Tags added: focal -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
There is no SCSI attribute named ref but there is one named rev. This is likely to be a typo from ubuntu rewrite of the original usb_modeswitch_dispatcher.tcl which reads the rev attribute. -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1866926] Re: usb_modeswitch does not switch modems (remain visible as mass storage)
** Package changed: ubuntu => usb-modeswitch (Ubuntu) -- 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/1866926 Title: usb_modeswitch does not switch modems (remain visible as mass storage) Status in usb-modeswitch package in Ubuntu: New Bug description: After upgrading to Ubuntu focal fossa development branch the usb_modeswitch does not seem to work any more on a Toshiba laptop. Two modems I have D-Link DWM-156 and Huawei E3372 show up as drives and stay like that until I use "Eject" in Gnome or explicitly use usb_modeswitch from the terminal. I have a strong feeling that it may either be related to Gnome or hardware. On another Dell laptop with Kubuntu focal fossa development, both modems connect automatically. /var/log/usb_modeswitch.log ends with: Warning: SCSI attribute "ref" not readable. Check class of first interface ... Device is in istall mode. No access to interface 8. Exit Up until and including the "ref" not readable is exactly the same as on Kubuntu @ Dell. Yet on Kubuntu I get plenty of successful config logs after that and on Ubuntu @ Toshiba I don't. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp