Gentoo Archives: gentoo-user

From: Mike Diehl <mdiehl@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Need to identify USB device by port
Date: Fri, 06 Apr 2007 01:53:30
Message-Id: 200704051946.46357.mdiehl@diehlnet.com
In Reply to: Re: [gentoo-user] Need to identify USB device by port by ds
1 Well, I changed my rule per your advice:
2
3 BUS=="usb", SYMLINK+="mouse1", SYSFS{manufacturer}=="Logitech",
4 OPTIONS+="last_rule", PHYSDEVPATH=="*:00:02.0/usb2/2-10"
5
6 And it STILL doesn't work. I've googled and read everything I can find. It
7 looks like my PHYSDEVPATH isn't correct. I've got one rule for each of my
8 two mice and it seems like the first one always matches, eventhough I've used
9 different PHYSDEVPATH's...
10
11 Any ideas are much appreciated.
12
13 Mike.
14
15 On Thursday 05 April 2007 10:06, ds wrote:
16 > On 4/4/07, Mike Diehl <mdiehl@××××××××.com> wrote:
17 > > My first try was a udev rule like: (each on one line.)
18 > >
19 > > BUS=="usb" SYMLINK="mouse_1" SYSFS{manufacturer}=="Logitech"
20 > > PHYSDEVPATH=="*:00:02.0/usb2/2-9" OPTIONS+="last_rule"
21 > >
22 > > BUS=="usb" SYMLINK="mouse_2" SYSFS{manufacturer}=="Logitech"
23 > > PHYSDEVPATH=="*:00:02.0/usb2/2-10" OPTIONS+="last_rule"
24 >
25 > I just happened to have read a webpage on writing udev rules yesterday:
26 > http://www.reactivated.net/writing_udev_rules.html
27 > First, it looks like the udev rules are supposed to be separated by
28 > comma, and second the symlink assignment key should use the += syntax.
29 > I think your first rule should look like this:
30 >
31 > BUS=="usb", SYMLINK+="mouse_1", SYSFS{manufacturer}=="Logitech",
32 > PHYSDEVPATH=="*:00:02.0/usb2/2-9", OPTIONS+="last_rule"
33 >
34 > Other than this, I cannot verify the accuracy of any of your values.
35 > When I get home I will see what my logitech mouse looks like in sysfs
36 >
37 > Hope this helps,
38 > --
39 > ds
40
41 --
42 Mike Diehl
43 --
44 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Need to identify USB device by port Walter Dnes <waltdnes@××××××××.org>