1 |
On 10/22/06, Iain Buchanan <iaindb@××××××××××××.au> wrote: |
2 |
> because the touchpad has to be configured differently to the usb mice, |
3 |
> otherwise things like "emulate3buttons" don't always work (on the |
4 |
> touchpad). Also, I have different acceleration settings on different |
5 |
> mice, so I couldn't do that if they all used the same |
6 |
> "/dev/input/mice"... |
7 |
|
8 |
So don't use /dev/input/mice for "all" mice, just for the USB mouse |
9 |
that you plug in. Use /dev/input/eventX for the synaptics trackpad. |
10 |
Here is what I have for my two mouse entries in xorg.conf, and it |
11 |
hotplugs USB mice perfectly: |
12 |
|
13 |
Section "ServerLayout" |
14 |
Identifier "Default" |
15 |
Screen 0 "LCD" |
16 |
InputDevice "touchpad" "CorePointer" |
17 |
InputDevice "usbmouse" |
18 |
InputDevice "keyboard" "CoreKeyboard" |
19 |
EndSection |
20 |
Section "InputDevice" |
21 |
Identifier "touchpad" |
22 |
Driver "synaptics" |
23 |
Option "Device" "/dev/input/trackpad_evt" |
24 |
Option "Protocol" "event" |
25 |
Option "SHMConfig" "On" |
26 |
Option "LeftEdge" "1500" |
27 |
Option "TopEdge" "1300" |
28 |
Option "RightEdge" "5400" |
29 |
Option "BottomEdge" "4400" |
30 |
Option "EdgeMotionUseAlways" "On" |
31 |
Option "EdgeMotionMinZ" "70" |
32 |
Option "EdgeMotionMaxZ" "85" |
33 |
Option "EdgeMotionMinSpeed" "25" |
34 |
Option "EdgeMotionMaxSpeed" "700" |
35 |
Option "MinSpeed" "0.0" |
36 |
Option "MaxSpeed" "0.3" |
37 |
Option "AccelFactor" "0.3" |
38 |
Option "UpDownScrolling" "On" |
39 |
Option "LeftRightScrolling" "On" |
40 |
Option "Buttons" "8" |
41 |
Option "ZAxisMapping" "4 5" |
42 |
EndSection |
43 |
Section "InputDevice" |
44 |
Identifier "usbmouse" |
45 |
Driver "mouse" |
46 |
Option "Protocol" "ExplorerPS/2" |
47 |
Option "Device" "/dev/input/mice" |
48 |
Option "Buttons" "8" |
49 |
Option "ZAxisMapping" "4 5" |
50 |
Option "SendCoreEvents" "On" |
51 |
EndSection |
52 |
|
53 |
I use a custom udev rule to make the "trackpad_evt" device, otherwise |
54 |
my keyboard and trackpad event nodes get mixed up between event0 and |
55 |
event1: |
56 |
|
57 |
BUS=="input", KERNEL=="event*", SYSFS{phys}=="isa0060/serio1/input0", |
58 |
NAME:="input/trackpad_evt", SYMLINK="input/%k" |
59 |
|
60 |
Either this, or you have to wait for a version of X.org that truly |
61 |
supports mouse hot plugging. |
62 |
|
63 |
-Richard |
64 |
-- |
65 |
gentoo-user@g.o mailing list |