On Fri, Feb 08, 2002 at 03:04:03PM +0000, Niall O Broin mentioned:
> > To see is it every calling the hotplug program. And it doesn't. So, it
> > looks like hotplug ain't working at all!
>> I looked into hotplug a little, unintentionally, when I was trying to get my
> Visor to sync on USB to Linux. My problem was related to using the uhci
> module instead of usb-uhci so that might be one place to look. However, from
> what I remember of the hotplug stuff you need to register a device class
> with the hotplug subsystem so that when it sees a "Canon A20" appearing it
> knows what to do. This is what you do in 'doze or on MacOS when you install
> a driver for a USB device. Of course you install the driver software but
> you also in some way register the device class/type to be recognised when
> its plugged in - hence the admonitions on USB installation instructions to
> install the software BEFORE plugging in the device. Ferret round in the
> hotplug directories - sorry not to be more specific but I can't remember
> where I read this - I think it was in a script in the hotplug directories.
bartender [0] lsmod|grep usb
usb-storage 105912 0 (autoclean)
scsi_mod 82008 2 (autoclean) [usb-storage sd_mod]
usbmouse 1760 0 (unused)
input 3360 0 [mousedev hid usbmouse]
usb-uhci 21284 0 (unused)
usbcore 49920 1 [usb-storage hid usbmouse usb-uhci]
Well, it looks like it's there. I have sorta set it up;
[root at bartender hotplug]# cat /etc/hotplug/usermap
usbcam 0x0000 0x04a9 0x304e 0x0001 0x0000
0x00 0x00 0x00 0x00 0x00
0x00 0x00000000
Where the USB ID of my camera is 04A9/304E. usbcam is a script in
/etc/hotplug/usb/usbcam that's supposed to be run when it's plugged in.
All good & proper. But, /sbin/hotplug isn't run by the kernel, when it's
supposed to be. Which is the kernel side bit that starts it all off. And
that ain't happening.
Kate
--
_______________________________________
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!