From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glenn Ramsey Date: Thu, 17 May 2001 23:29:45 +0000 Subject: help with configuring hotplug Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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=20 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...=20 # 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=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=3D 1 Spd=12 MxCh=3D 2 P: Vendor=0000 ProdID=0000 Rev=3D 0.00 S: Product=3DUSB UHCI-alt Root Hub S: SerialNumber=E400 I: If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls (hub ) Sub=00 Prot=00 Driver=3Dhub T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=3D 17 Spd=12 MxCh=3D 0 P: Vendor=05da ProdID@ca Rev=3D 0.00 I: If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=FF(vend.) Sub=FF Prot=FF Driver=3D(none) USB Drivers Loaded:=20 usbdevfs hub khubd/hotplug thread:=20 F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY =20 TIME CMD 040 S 0 230 1 0 69 0 - 0 ? ? =20 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=20 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 --=20 Glenn Ramsey glenn@componic.com _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel