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.
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.
then i manually load the printer module and the labelwriter is attached to
/dev/usblp0 .
I've written a little program to write pbm files to the labelwriter.
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;
}
Are there other devices that could benifit from this (more or less illegal (a
device should have at least 1 config)) adaption ?
If anyone is interested i can also mail you the program to print pbm files to
the dymo.
Grtz Dries
--
-------------------------------------------------------------------------------
End of message
-------------------------------------------------------------------------------
-------------------------------------------------------
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