From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Brandon Metcalf" Date: Mon, 16 Jan 2006 15:18:26 +0000 Subject: hotplug not calling script Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I've just compiled Linux kernel version 2.4.32 with hotplug support, but now it seems that hotplug is not calling the script I have defined in /etc/hotplug/usb.usermap when I plug in my camera as the permissions on the device in /proc/bus/usb/ do not get changed. The one thing I did differently in compiling this kernel is there are no modules--everything I need is compiled into the kernel image. I'm not sure if this matters. /etc/hotplug/usb.usermap contains: $ cat /etc/hotplug/usb.usermap # usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info setg2 0x0000 0x04a9 0x3055 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 setg2 contains: $ cat /etc/hotplug/usb/setg2 #!/bin/sh date=$(date) echo "$0: running at $date" > /tmp/setg2.out chgrp camera $DEVICE 2>>/tmp/setg2.out chmod 660 $DEVICE 2>>/tmp/setg2.out And when I plug in my camera, this is what I get in /var/log/messages: Jan 15 21:06:06 cash kernel: hub.c: new USB device 00:1f.2-1, assigned address 3 Jan 15 21:06:06 cash kernel: usb.c: USB device 3 (vend/prod 0x4a9/0x3055) is not claimed by any active driver. Hotplug in registered correctly in my kernel as well: $ cat /proc/sys/kernel/hotplug /sbin/hotplug $ ls -l /sbin/hotplug -rwxr-xr-x 1 root root 1139 2005-04-07 11:37 /sbin/hotplug* Finally, the following message appears when I start hotplug, but I've found a couple of USENET postings indicating it can be ignored: $ sudo /etc/init.d/hotplug start Starting hotplug subsystem: pci pci [success] usb ** can't synthesize root hub events usb [success] isapnp isapnp [success] ide ide [success] input input [failed] scsi scsi [success] done. Thanks. -- Brandon ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel