From: Glenn Ramsey <glenn@componic.com>
To: linux-hotplug@vger.kernel.org
Subject: help with configuring hotplug
Date: Thu, 17 May 2001 23:29:45 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-99014219703245@msgid-missing> (raw)
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\x01 Lev\0 Prnt\0 Port\0 Cnt\0 Dev#= 1 Spd\x12 MxCh= 2
P: Vendor\000 ProdID\000 Rev= 0.00
S: Product=USB UHCI-alt Root Hub
S: SerialNumberä00
I: If#= 0 Alt= 0 #EPs= 1 Cls (hub ) Sub\0 Prot\0 Driver=hub
T: Bus\x01 Lev\x01 Prnt\x01 Port\x01 Cnt\x01 Dev#= 17 Spd\x12 MxCh= 0
P: Vendor\x05da 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
--
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
reply other threads:[~2001-05-17 23:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-99014219703245@msgid-missing \
--to=glenn@componic.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.