1 |
>>>>> "Sebastian" == Sebastian Gibb <sebastiangibb@××××××××.de> writes: |
2 |
|
3 |
Sebastian> now I use evdev: |
4 |
|
5 |
Sebastian> Section "InputDevice" |
6 |
Sebastian> Identifier "touchstick" |
7 |
Sebastian> #Driver "mouse" |
8 |
Sebastian> Driver "evdev" |
9 |
Sebastian> Option "Protocol" "auto" |
10 |
Sebastian> Option "Device" "/dev/input/mouse1" |
11 |
Sebastian> EndSection |
12 |
|
13 |
Sebastian> but it doesn't work. |
14 |
|
15 |
/dev/input/mouse1 is not an evdev device. |
16 |
|
17 |
Try this: |
18 |
|
19 |
Section "InputDevice" |
20 |
Identifier "evMouse" |
21 |
Driver "evdev" |
22 |
Option "evBits" "+1-2" |
23 |
Option "keyBits" "~272-287" |
24 |
Option "relBits" "~0-2 ~6 ~8" |
25 |
Option "Pass" "3" |
26 |
EndSection |
27 |
|
28 |
and then add: |
29 |
|
30 |
InputDevice "evMouse" "CorePointer" |
31 |
|
32 |
to the ServerLayout section. |
33 |
|
34 |
Or, since evdev does not support emulating the middle mouse button by |
35 |
pressing the left and right simultaneously, I'd suggest what I use: |
36 |
|
37 |
Section "InputDevice" |
38 |
Identifier "evKeyboard" |
39 |
Driver "evdev" |
40 |
Option "evBits" "+1" |
41 |
Option "keyBits" "~1-255 ~352-511" |
42 |
Option "Pass" "3" |
43 |
Option "AutoRepeat" "500 30" |
44 |
# ... plus any XkbOptions ... |
45 |
EndSection |
46 |
|
47 |
Section "InputDevice" |
48 |
Driver "mouse" |
49 |
Identifier "Mice" |
50 |
Option "Device" "/dev/input/mice" |
51 |
Option "InputFashion" "Mouse" |
52 |
Option "Name" "AutoDetected" |
53 |
Option "Protocol" "imps/2" |
54 |
Option "Vendor" "AutoDetected" |
55 |
Option "Emulate3Buttons" "on" |
56 |
Option "ZAxisMapping" "4 5" |
57 |
EndSection |
58 |
|
59 |
Section "ServerLayout" |
60 |
Identifier "Layout[all]" |
61 |
InputDevice "evKeyboard" "CoreKeyboard" |
62 |
InputDevice "Mice" "CorePointer" |
63 |
# ... etc ... |
64 |
Screen "Screen[0]" |
65 |
EndSection |
66 |
|
67 |
|
68 |
With /dev/input/mice the kernel does the hard work multiplexing the pad, |
69 |
stick and any external USB or PS/2 mice and the server handles emulating |
70 |
the middle button. In short, everything just works. |
71 |
|
72 |
I do recommend dvdev for keyboards, though. |
73 |
|
74 |
-JimC |
75 |
-- |
76 |
James Cloos <cloos@×××××××.com> OpenPGP: 1024D/ED7DAEA6 |
77 |
-- |
78 |
gentoo-laptop@g.o mailing list |