hotplugging with current modutils and usbdcvs
I suspect this is the problem where "usbutils" hasn't yet been updated to understand what modutils 2.4.1 is writing out ...
If you update that, you might want to figure out where to install "usbmodules": /usr/local/sbin was where it landed on my system, but that's not one of the normal places to find things run by sysadmin scripts.
- Dave
----- Original Message -----
From: Norbert Preining <[email protected]>
To: David Brownell <[email protected]>; <[email protected]>; <[email protected]>
Sent: Monday, January 08, 2001 2:53 PM
Subject: Re: [linux-usb-devel] Re: hotplugging with current modutils and usbdcvs
Quoted 5 lines · Norbert Preining
Quoted 3 lines
I didn't have the time to debug the script, but it looks like if the usbmodules program is installed but does not take the --mapfile parameter the hotplug process does not work at all.
Quoted 8 lines
Additional information: With usbmodules from the cvs usbutils package (supports --mapfile) invoking usbmodules --device .... always gives me the empty string. Should it be like this?
--
ciao
norb
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 3 lines
Without usbmodules program the hotplugging didn't work at all for scanner (epson perfection 1200u, did work before), nor mouse/joystick nor usb-storage.
Curious, it most certainly worked for a mouse I tested it against.
Was that a combined mouse/joystick ... or a real mouse? Did you install both modutils 2.4.1 and Keith's patch? And then rebuild and reinstall your kernel, and reinstall all the kernel modules?
Rule of thumb for this version: if a HID device doesn't hotplug, it's going to need an entry in /etc/hotplug/usb.handmap ... that will be true until someone starts to teach the "input" subsystem how to hotplug. (The previous version needed that for usb-storage devices too ... but the ABI change made it easier for that driver to hotplug, so usb-storage should mostly hotplug.)
I've not looked at it, but one way to start "input" hotplugging might be to find out where "hid.c" sees devices' HID descriptors, and issue call_usermodehelper() with information describing the device type.
An /etc/hotplug/input.agent script should be able to figure out whether it's a mouse, keyboard, joystick, UPS, tablet, etc and modprobe accordingly.
- Dave
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · David Brownell
I suspect this is the problem where "usbutils" hasn't yet been updated to understand what modutils 2.4.1 is writing out ...
If you update that, you might want to figure out where to install "usbmodules":
/usr/local/sbinwas where it landed on my system, but that's not one of the normal places to find things run by sysadmin scripts.
Where do I get an up-to-date usbmodules? I've never had such a utility and don't find it in the hotplug tar file you posted.
Thanks!
Miles
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 12 lines · Miles Lane
Quoted 8 lines · David Brownell
I suspect this is the problem where "usbutils" hasn't yet been updated to understand what modutils 2.4.1 is writing out ...
If you update that, you might want to figure out where to install "usbmodules":
/usr/local/sbinwas where it landed on my system, but that's not one of the normal places to find things run by sysadmin scripts.
Quoted 3 lines
Where do I get an up-to-date usbmodules? I've never had such a utility and don't find it in the hotplug tar file you posted.
After a bit of hunting around, I found that usbmodules comes from usbutils. I went to the usbutils home page:
http://libusb.sourceforge.net/
But, the newest version of the package posted there is:
usbutils-0.7.tar.gz 03-Nov-2000 17:51
I doubt this is what I need for testing.
Pointers to the right stuff?
Miles
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Miles Lane
usbutils-0.7.tar.gz 03-Nov-2000 17:51I doubt this is what I need for testing.
Pointers to the right stuff?
Take the cvs version!
Signature · 13 lines
ciao norb +-------------------------------------------------------------------+ | Norbert Preining http://www.logic.at/people/preining | | University of Technology Vienna, Austria [email protected] | | DSA: 0x09C5B094 (RSA: 0xCF1FA165) mail subject: get [DSA|RSA]-key | +-------------------------------------------------------------------+ _______________________________________________ Linux-hotplug-devel mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Norbert Preining
Quoted 5 lines · Miles Lane
usbutils-0.7.tar.gz 03-Nov-2000 17:51I doubt this is what I need for testing.
Pointers to the right stuff?
Take the cvs version!
The only CVS tree I can find referenced in any way from the homepage that mentioned usbutils is for libusb. I downloaded the CVS version and built libusb, but I see no sign of usbutils or usbmodules. Do I just need the CVS version of libusb and the latest released version of usbutils?
Thanks,
Miles
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Miles Lane
The only CVS tree I can find referenced in any way from the homepage that mentioned usbutils is for libusb.
Take a look at http://usb.cs.tum.edu/download.html
Signature · 13 lines
ciao norb +-------------------------------------------------------------------+ | Norbert Preining http://www.logic.at/people/preining | | University of Technology Vienna, Austria [email protected] | | DSA: 0x09C5B094 (RSA: 0xCF1FA165) mail subject: get [DSA|RSA]-key | +-------------------------------------------------------------------+ _______________________________________________ Linux-hotplug-devel mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Norbert Preining
Quoted 5 lines · Miles Lane
usbutils-0.7.tar.gz 03-Nov-2000 17:51I doubt this is what I need for testing.
Pointers to the right stuff?
Take the cvs version!
Here's the command I used to download the libusb CVS source. When I downloaded a released tarfile of usbutils, I found that libusb seems to be contained within usbutils, but I see no CVS module for usbutils. Hmm. Rats.
Here's what I tried:
cvs -z3 -d:pserver:[email protected]:/cvsroot/libusb co libusb
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · Norbert Preining
Quoted 2 lines · Miles Lane
The only CVS tree I can find referenced in any way from the homepage that mentioned usbutils is for libusb.
Take a look at http://usb.cs.tum.edu/download.html
Thanks Norbert. I've got it now.
Miles
_______________________________________________
Linux-hotplug-devel mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel