* usb scanner configuration: udev
@ 2005-01-10 16:27 Thomas Frayne
2005-01-10 16:50 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Frayne @ 2005-01-10 16:27 UTC (permalink / raw)
To: linux-hotplug
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\x02 Lev\x02 Prnt\x02 Port\0 Cnt\x01 Dev#= 10 Spd\x12 MxCh= 0
D: Ver= 1.00 Cls\0(>ifc ) Sub\0 Prot\0 MxPS= 8 #Cfgs= 1
P: Vendor\x03f0 ProdID\b01 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\0(>ifc ) Sub\0 Prot\0 Driver=(none)
E: Ad\x01(O) Atr\x02(Bulk) MxPS= 8 Ivl=0ms
E: Ad‚(I) Atr\x03(Int.) MxPS= 8 Ivl\x10ms
E: Adƒ(I) Atr\x02(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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: usb scanner configuration: udev
2005-01-10 16:27 usb scanner configuration: udev Thomas Frayne
@ 2005-01-10 16:50 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-01-10 16:50 UTC (permalink / raw)
To: linux-hotplug
On Mon, Jan 10, 2005 at 08:27:14AM -0800, Thomas Frayne wrote:
> 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-10 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 16:27 usb scanner configuration: udev Thomas Frayne
2005-01-10 16:50 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).