Re-sending with the bug-report CCed. Hi Josua,
how are you on the usb-modeswitch front ? On the Debian front, I had a very interesting mail exchange with a bug reporter you might really be interested in : http://bugs.debian.org/527122 In short, the idea is to find a clear and clean answer for "out-of-the-box" working devices and a clear and clean workaround for the multiply defined DeviceVendor:DeviceProduct pairs. I summarized it as the follow improvement process: > a) Upstream ships a database of unique DV:DP:UUMID (Unique Usb-Modeswitch > IDentifier) triplets linked to a name and configuration value. Obvioulsy, > there will be no way of distinguishing between various DV:DP:*, but they are > stored in a unique way with clear names. For example for a device 0x05c6:0x1000: /usr/share/usb-modeswitch/db/0x05c6/0x1000/0x0001 This then allows future devices to get higher numbers. > b) As input, the usb-modeswitch binary only takes this DV:DP:UUMID triplet or > a complete command-line (for testing purposes). As now, but without configuration file in /etc/. usb-modeswitch would then be run either as $ usb-modeswitch 0x05c6:0x1000:0x0001 or as $ usb-modeswitch -v xxxx -p xxxx -m xxxxxxxxxxxxxxxxxxxxxxx > * With a) and b), it can work the same as actual upstream, but without > configuration file handling. > > c) A new binary (or script) (e.g. um-wrapper) is able to detect which devices > are plugged and, when launched, will prompt the user with "Do you want to > flip-flop device "DV:DP" <name from the database> device?" or "Which of the > following devices <list from the database> do you want to flip-flop?". This would be a simple bash dialog. > d) For this binary, the prompting for uniquely defined DV:DP pairs can be > opted out with a command-line option > (--no-prompt-for-unique-dvdp-pair / --quiet). … so that uniquely defined pairs don't get a prompt (see further down). > e) a /etc/udev/rules.d/usb_modeswitch.rules is shipped with only the uniquely > defined DV:DP pairs with um-wrapper --quiet in all entries => out-of-the-box > working for known devices. > > f) a /usr/share/doc/usb_modeswitch/examples/usb-modeswitch.rules is shipped > with an example for autodetection for a non-uniquely defined DV:DP pair (with > usb-modeswitch DV:DP:UUID in a udev rule), which the user can use on his own. > > g) Everything is documented in NEWS.Debian and README.Debian accordingly. This is the work remaining for me… ;) Unfortunately, I have not much time these days and only very few C-coding skills. * What do you think of the whole process / idea ? * What are your plans for future usb-modeswitch versions ? Best regards from Switerland, Didier Raboud -- Didier Raboud, proud Debian user and usb-modeswitch packager. CH-1802 Corseaux [email protected]
signature.asc
Description: This is a digitally signed message part.

