From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bertrik Sikken Date: Fri, 04 Jun 2004 17:07:46 +0000 Subject: Re: Run script when USB scanner unplugged Message-Id: <40C0AC62.3030904@zonnet.nl> List-Id: References: <40BE3850.8070106@comcast.net> In-Reply-To: <40BE3850.8070106@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Ian Pilcher wrote: > Hard to believe that I've already stumped the entire hotplug development > community. Since I don't see this in the archives, I'm resending it. > Sorry if it turns out to be a dupe. > > Harald Hoyer wrote: > > Install the FC2 udev rpm... read the manpage and add a *.rule file to > > /etc/udev/rules.d . Also add your scanner to > > /etc/security/console.perms (man 5 console.perms). > > > OK, I've installed the udev RPM and added the following line to > /etc/udev/rules.d/50-udev.rules: > > BUS="usb", SYSFS{idVendor}="04b8", SYSFS{idProduct}="0110", > NAME="usb/epson_scanner" > > Here is the output of lsusb: > > Bus 002 Device 001: ID 0000:0000 > Bus 001 Device 003: ID 04e8:323a Samsung Electronics Co., Ltd > Bus 001 Device 002: ID 04b8:0110 Seiko Epson Corp. Perfection 1650 > Bus 001 Device 001: ID 0000:0000 > > This seems like it should work, but the /udev/usb/epson_scanner node > never gets created. (/udev/usb/lp0 is created.) What could I be doing > wrong? FC2 uses a linux 2.6 kernel right? Kernel 2.6 no longer has the scanner kernel module, so there's no longer a device node associated with it (or am I overlooking something here?). Communication with an USB scanner under kernel 2.6 is done with libusb instead (using the files in /proc/bus/usb). Bertrik ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ 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