-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 21 Sep 2002 02:03, dries wrote: > Hello there, > > Kernel 2.4.18 (Suse 8.0) > > I've recently got a Dymo Labelwriter 320, it is not recognized correctly by > the kernel due to the fact that it reports '0' configurations. The message > 'not enough configurations' shows up in /var/log/messages. Fairly ugly.
> What i've done is the following, in 'drivers/usb/usb.c' I changed the code > framgent that detects a number of '0' configurations such that it fakes 1 > configuration (that must be a relatively save value). > Now the Dymo shows up in usbview and lsusb. Have you tried doing two or more? It'll probably crash, but at least you'd know :-) > then i manually load the printer module and the labelwriter is attached to > /dev/usblp0 . You could use hotplug for this. But whatever works for you. > Here is the code part i changed > > search for 'not enough configurations' in 'drivers/usb/usb.c' > > if (dev->descriptor.bNumConfigurations < 1) > { > // > // No configurations at all, that seems a bit odd, just > fake // one config. > // > warn("djp : not enough configurations"); > warn("Faking 1 configuration"); > > dev->descriptor.bNumConfigurations=1; > // supress the error return to continue with one config : return > -EINVAL; } If you plan to have something like this added, can you special case it (some kind of blacklist table), rather than covering the problem for all devices. I'm thinking of a future kernel bug that manages to stuff up the reading. Also, this might not be safe on all devices. > Are there other devices that could benifit from this (more or less illegal > (a device should have at least 1 config)) adaption ? If the manufacturer did it on this device, they probably did it on others. - -- http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9is+/W6pHgIdAuOMRAmS2AJ9BHcSFom+LSJoNSXd+HI7HlctMYACggxZS smBYnTS3BmvjeGh9JPNcQno= =U5cx -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel