[KLUG Members] USB Hotplug
Buist Justin
members@kalamazoolinux.org
Wed, 15 May 2002 22:22:54 -0400
I did a bit of hacking on a USB NIC module once and found that the vendor and product code's are actually stored in struct's within the kernel drivers. I would imagine a quick C hack on the driver's existing source code to make it realize that it handles yet another vendor/product match would solve the problem not only for you but for a whole slew of people. Total number of lines changed in source would be somewhere around 4-16 at the most. For a C novice even it's quite palatable.
For the record I never did get the driver working. Turns out the ADSL modem I was working on is actually similar to a WinModem -- uses a dsp to handle all the processing in OS land rather than build it into hardware.
Without looking at the driver's source I would think this would work -- then again the driver may account for that particular vendor/product match already and it's simply a matter of the USB system itself not being able to properly probe for those values. If the latter case is true I would have absolutely no idea how to fix things the Right Way as I don't really know how USB works at the hardware level.
I hope this helps. If not, well -- maybe I'll actually rip open the soruce and see what comes to mind.
Justin Buist
> -----Original Message-----
> From: Adam Williams [mailto:awilliam@whitemice.org]
> Sent: Wednesday, May 15, 2002 9:28 PM
> To: members@kalamazoolinux.org
> Subject: [KLUG Members] USB Hotplug
>
>
> I pruchased an Epson 1250 perfection USB scanner (not supported by
> sane) but if I "modprobe scanner vendor=0x04bf
> product=0x010f" and then
> run xsane it works great! (The Epson 1250 is actually a LM 983x USB
> chip and a plustek scanner).
>
> But I have to load the scanner module manually, and set the
> permissions
> on /dev/usb/scanner0, which is a pain.
>
> If I just plug it in I get a "no drivers for USB product
> 4bf/10f/100" in
> /var/log/messages, which (I assume) means that hotplug can't match it
> up to anything. I've tried adding line(s) to
> /etc/hotplug/usb.distmap,
> etc... and can't get it to happen automagically.
>
> Any tips would be greatly appreciated.
>
>
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>
>