I'm starting to feel that trying to fix the C rewrite is futile. On line 392 of usb_modeswitch_dispatcher.c, the iface variable is overwritten. Unfortunately the value being assigned is not an interface number, it is rather a USB class number. Fixing this might help with some part of this, but it also might break something else. I was also trying to map between the C rewrite and the 2.2.5 version of the tcl script (as stated in the header of the C version), but it seems that there are functional differences (for example the if_chk mode seems to trigger on different ocassions).
I'd vote for going with the Tcl version for Focal as well (I'm ignoring any existing SRU rules through). The dependency isn't a full Tcl interpreter, only a small library-based variant of it called Jim (http://jim.tcl.tk/index.html/doc/www/www/index.html). According to the package description, the library size is only 100-200 kB, which seems negligible compared to the current ISO sizes. -- 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