help with configuring hotplug
Hi,
I have been trying to get the hotplug stuff to work with usb but have run up against a problem. It seems that the /sbin/hotplug script is not being called by the kernel when a device is plugged.
What I want to happen is for the hotplug scripts to set the permissions on the /proc/bus/usb/???/??? for my device, a scanner. I have set up the required files as described in the README file and it works if I invoke /sbin/hotplug manually.
I have an i386 Debian woody/sid system using kernel 2.4.3 I have configured the hotplug option in the kernel.
I installed the hotplug scripts version of 20010424 from the sid deb package and
the latest usbutils rpm package from the link on the linux-hotplug website.
Can anyone advise me on how to find out what is happening and how to fix it?
Also if I turn on debugging in the scripts where does the output go?
Here's the output from some relevant commands and log files...
# cat /proc/sys/kernel/hotplug /sbin/hotplug
# /etc/init.d/hotplug status USB Status for kernel: Linux 2.4.3 i586
USB up; bus count is 1
T: Bus Lev Prnt Port Cnt Dev#= 1 Spd MxCh= 2 P: Vendor 00 ProdID 00 Rev= 0.00 S: Product=USB UHCI-alt Root Hub S: SerialNumberä00 I: If#= 0 Alt= 0 #EPs= 1 Cls (hub ) Sub Prot Driver=hub T: Bus Lev Prnt Port Cnt Dev#= 17 Spd MxCh= 0 P: Vendorda ProdID@ca Rev= 0.00 I: If#= 0 Alt= 0 #EPs= 1 Clsÿ(vend.) Subÿ Protÿ
Driver=(none)
USB Drivers Loaded:
usbdevfs
hub
khubd/hotplug thread:
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY
TIME CMD
040 S 0 230 1 0 69 0 - 0 ? ?
00:00:00 khubd
Module Size Used by
nls_cp437 4352 0 (autoclean) nfs 46080 0 (autoclean) lockd 37376 0 (autoclean) [nfs] sunrpc 58192 0 (autoclean) [nfs lockd] sb 2064 1 (autoclean) sb_lib 33488 0 (autoclean) [sb] uart401 6288 0 (autoclean) [sb_lib] sound 55952 1 (autoclean) [sb_lib uart401] soundcore 3888 4 (autoclean) [sb_lib sound] parport_pc 10384 1 (autoclean) lp 4976 0 (autoclean) parport 14816 1 (autoclean) [parport_pc lp] uhci 18448 0 (unused) usbcore 46000 1 [uhci] autofs4 9408 1 (autoclean) ne 6336 1 (autoclean) 8390 6080 0 (autoclean) [ne] serial 41984 1 (autoclean) vfat 10320 0 fat 30016 0 [vfat]
When I plug and unplug the device I see the following message in the logs and on the console:
May 18 11:06:05 goata kernel: hub.c: USB new device connect on bus1/2, assi device number 16 May 18 11:06:05 goata kernel: usb.c: USB device 16 (vend/prod 0x5da/0x40ca) ot claimed by any active driver. May 18 11:07:32 goata kernel: uhci.c: root-hub INT complete: port1: 480 por 8a data: 4 May 18 11:07:32 goata kernel: uhci.c: suspend_hc May 18 11:07:32 goata kernel: usb.c: USB disconnect on device 16 May 18 11:07:32 goata kernel: uhci.c: root-hub INT complete: port1: 480 por 88 data: 4 May 18 11:07:37 goata kernel: uhci.c: wakeup_hc May 18 11:07:37 goata kernel: uhci.c: root-hub INT complete: port1: 480 por 93 data: 4 May 18 11:07:37 goata kernel: hub.c: USB new device connect on bus1/2, assi device number 17 May 18 11:07:37 goata kernel: usb.c: USB device 17 (vend/prod
0x5da/0x40ca)
ot claimed by any active driver.
Thanks in advance
g
Signature · 7 lines
Glenn Ramsey [email protected] _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel