linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Frayne <tomf@sjpc.org>
To: linux-hotplug@vger.kernel.org
Subject: usb scanner configuration: udev
Date: Mon, 10 Jan 2005 16:27:14 +0000	[thread overview]
Message-ID: <1105374433.5028.313.camel@localhost.localdomain> (raw)

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

             reply	other threads:[~2005-01-10 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-10 16:27 Thomas Frayne [this message]
2005-01-10 16:50 ` usb scanner configuration: udev Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1105374433.5028.313.camel@localhost.localdomain \
    --to=tomf@sjpc.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).