1 |
On 12/23/05, Lares Moreau <lares.moreau@×××××.com> wrote: |
2 |
> Does anyone know of a way to have my USB Mouse dynamicly loaded under |
3 |
> Xorg? |
4 |
|
5 |
If you are using a 2.6 kernel, use /dev/input/mice as your input |
6 |
device, instead of whatever you are using now. |
7 |
|
8 |
You can use that as your only input device, or like me, configure it |
9 |
as an additional input device. |
10 |
|
11 |
The relevant sections of my xorg.conf are: |
12 |
|
13 |
Section "ServerLayout" |
14 |
Identifier "Default" |
15 |
Screen 0 "LCD" 0 0 |
16 |
InputDevice "touchpad" "CorePointer" |
17 |
InputDevice "usbmouse" |
18 |
InputDevice "keyboard" "CoreKeyboard" |
19 |
EndSection |
20 |
|
21 |
Section "InputDevice" |
22 |
Identifier "touchpad" |
23 |
Driver "synaptics" |
24 |
Option "Device" "/dev/input/event1" |
25 |
Option "Protocol" "event" |
26 |
Option "SHMConfig" "On" |
27 |
Option "LeftEdge" "1400" |
28 |
Option "TopEdge" "1550" |
29 |
Option "RightEdge" "5900" |
30 |
Option "BottomEdge" "4350" |
31 |
Option "EdgeMotionUseAlways" "On" |
32 |
Option "EdgeMotionMinZ" "75" |
33 |
Option "EdgeMotionMaxZ" "90" |
34 |
Option "EdgeMotionMinSpeed" "50" |
35 |
Option "EdgeMotionMaxSpeed" "1000" |
36 |
Option "MinSpeed" "0.0" |
37 |
Option "MaxSpeed" "0.3" |
38 |
Option "AccelFactor" "0.3" |
39 |
Option "UpDownScrolling" "On" |
40 |
Option "LeftRightScrolling" "Off" |
41 |
Option "Buttons" "8" |
42 |
Option "ZAxisMapping" "4 5" |
43 |
EndSection |
44 |
|
45 |
Section "InputDevice" |
46 |
Identifier "usbmouse" |
47 |
Driver "mouse" |
48 |
Option "Protocol" "ExplorerPS/2" |
49 |
Option "Device" "/dev/input/mice" |
50 |
Option "Buttons" "8" |
51 |
Option "ZAxisMapping" "4 5" |
52 |
Option "SendCoreEvents" "On" |
53 |
EndSection |
54 |
|
55 |
The only tricky thing is that I have to make sure that my trackpad (a |
56 |
PS/2 mouse) gets setup by the kernel before the USB mouse. So I build |
57 |
PS/2 mouse support into my kernel, and load usbhid as a module. I |
58 |
also have hibernate reload the usbhid module when I do a |
59 |
suspend/stanby cycle. |
60 |
|
61 |
-Richard |
62 |
|
63 |
-- |
64 |
gentoo-user@g.o mailing list |