3.2Configuring X
Dman, of
If you want mouse in console and X:
•gpm reads from the mouse device itself. With a PS/2 mouse this is /dev/psaux. With a USB mouse (and devfs, I haven’t used USB without devfs) it is /dev/input/mice. gpm needs to be told the correct protocol to use. For many modern mice (including mine) the protocol is ’imps2’.
•gpm needs to repeat with protocol ’raw’. It repeats through a named pipe, named /etc/gpmdata.
•X needs to read from /etc/gpmdata and use the same protocol that gpm is using. In the case of my mice that protocol is ”IMPS/2”.
If you want mouse in X only:
•X reads from the mouse device itself. With a PS/2 mouse this is /dev/psaux. With a USB mouse (and devfs, I haven’t used USB without devfs) it is /dev/input/mice. X needs to be told the correct protocol to use. For many modern mice (including mine) the protocol is ’IMPS/2’.
Thanks, Dman!
I also needed to edit
I added:
Section "InputDevice" |
|
|
Identifier | "Logitech Mouse" |
|
Driver | "mouse" |
|
Option | "SendCoreEvents" | "true" |
Option | "Device" | "/dev/input/mice" |
Option | "Protocol" | "ImPS/2" |
Option | "Emulate3Buttons" | "true" |
Option | "ZAxisMapping" | "4 5" |
EndSection |
|
|
and the “Logitech” line in the following section:
Section "ServerLayout" |
|
Identifier | "Default Layout" |
Screen | "Default Screen" |
InputDevice | "Generic Keyboard" |
3
4
10