2010-04-18

udev -> xorg.conf.d snippet

More changes.
To support the Trackpoint keyboard with the newer xorg (1:7.5+5) in Debian, the solution is to create a file named /etc/X11/xorg.conf.d/20-thinkpad.conf with the follwing contents:

Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TrackPoint"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
#Option "YAxisMapping" "4 5"
EndSection

For Ubuntu, try putting the file into /usr/lib/X11/xorg.conf.d/ instead if the putting it into the /etc/X11/Xorg.conf.d/ directory does not work.

If having that file causes other input devices to die, also add /etc/X11/xorg.conf.d/99-allinput.conf with the following:
Section "InputClass"
Identifier "allinput"
Driver "evdev"
EndSection

(A 3rd conf file for synaptics configuration is left as an exercise for the reader.)