usb scanner configuration: udev
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}="hp scanjet 7400c", SYMLINK="as/Scanjet"
into /etc/udev/rules.d/09-tom.rules. However, if I unplug the scanner and plug it back in, the log indicates
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 Lev Prnt Port Cnt Dev#= 10 Spd MxCh= 0 D: Ver= 1.00 Cls (>ifc ) Sub Prot MxPS= 8 #Cfgs= 1 P: Vendorf0 ProdID01 Rev= 0.01 S: Manufacturer=hp S: Product=hp scanjet 7400c S: SerialNumber‡ tem 7400c C:* #Ifs= 1 Cfg#= 1 Atr@ MxPwr= 2mA I: If#= 0 Alt= 0 #EPs= 3 Cls (>ifc ) Sub Prot Driver=(none) E: Ad(O) Atr(Bulk) MxPS= 8 Ivl=0ms E: Ad‚(I) Atr(Int.) MxPS= 8 Ivlms E: Adƒ(I) Atr(Bulk) MxPS= 64 Ivl=0ms
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 9 lines · Thomas Frayne
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.
usb scanners do not have a /dev entry, as they use libusb to access the device directly through usbfs in userspace. That is why no udev hotplug event happens. I do not know what program created that /dev link, but it wasn't udev.
I suggest bringing this up on the SANE mailing lists, as there's nothing we can do here.
Good luck,
greg k-h
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel