1 |
On 12/27/2010 06:03 AM, walt wrote: |
2 |
> ... |
3 |
> My new (post-hal) mouse config: |
4 |
> |
5 |
> Section "InputClass" <----- note the new word "Class", not "Device" |
6 |
> Identifier "trackball" <----- can be anything you want |
7 |
> MatchProduct "ImExPS" <-----*new*. Matches the product name! |
8 |
|
9 |
Clarification about that MatchProduct keyword: |
10 |
|
11 |
Hal and udev differ slightly in the way they identify hardware devices |
12 |
(is anyone surprised?). |
13 |
|
14 |
When I run 'lshal' to display all my hardware, I see this about the mouse: |
15 |
|
16 |
info.product = 'ImExPS/2 Logitech Explorer Mouse' |
17 |
|
18 |
Now for the confusion. When I run 'udevadm info --export-db" I see: |
19 |
|
20 |
E: PRODUCT=11/2/6/6d |
21 |
E: NAME="ImExPS/2 Logitech Explorer Mouse" |
22 |
|
23 |
Note that MatchProduct in the xorg.conf file really wants the udev NAME, |
24 |
*not* the udev PRODUCT. |
25 |
|
26 |
I suppose the MatchProduct keyword was selected back in the day when |
27 |
hal was still the boss instead of a has-been. "MatchName" would be much |
28 |
less confusing than "MatchProduct". But don't hold your breath waiting |
29 |
for it to change. |