From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Frayne Date: Mon, 10 Jan 2005 16:27:14 +0000 Subject: usb scanner configuration: udev Message-Id: <1105374433.5028.313.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org My problem looks similar to the one described in the the No Hotplug Events = thread. I am running on an up to date Fedora Core 3 system, and have installed sane-backends 1.0.15-1.4 and xsane 0.92-13 via synaptic. Over the last 18 months, I have periodically tried to get my HP 7450C scanner working under SANE, but was never completely successful. This time I succeeded. Now I find that /dev/scanner-usb-:proc:bus:usb:002:010 is a link to /proc/bus/usb/002/010, but the device name changes when I reboot. I would like to use udev to create a constant device name /dev/usb/scanner0 for this device. I put entry SYSFS{product}=3D"hp scanjet 7400c", SYMLINK=3D"as/Scanjet" into /etc/udev/rules.d/09-tom.rules. However, if I unplug the scanner and plug it back in, the log indicates=20 Jan 2 23:34:23 PCasus kernel: usb 2-1.1: USB disconnect, address 10 Jan 2 23:34:26 PCasus kernel: usb 2-1.1: new full speed USB device using address 11 It has no udev log entry. Before the device address changed /proc/bus/usb/devices contained: T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=3D 10 Spd=12 MxCh=3D 0 D: Ver=3D 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=3D 8 #Cfgs=3D 1 P: Vendor=03f0 ProdID=0801 Rev=3D 0.01 S: Manufacturer=3Dhp S: Product=3Dhp scanjet 7400c S: SerialNumber=87 tem 7400c =20 C:* #Ifs=3D 1 Cfg#=3D 1 Atr@ MxPwr=3D 2mA I: If#=3D 0 Alt=3D 0 #EPs=3D 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=3D(none) E: Ad=01(O) Atr=02(Bulk) MxPS=3D 8 Ivl=3D0ms E: Ad=82(I) Atr=03(Int.) MxPS=3D 8 Ivl=10ms E: Ad=83(I) Atr=02(Bulk) MxPS=3D 64 Ivl=3D0ms What is going wrong with udev? cat /proc/sys/kernel/hotplug returns /sbin/hotplug ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ 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