Trackpoint settings for Xorg

The behaviour I like is as follow:

  • A very sensitive trackpoint
  • A short press on the middle button produce a middle mouseclick
  • Moving the trackpoint while the middle button is pressed scrolls in the corresponding direction
  • A middleclick drag is performed by pressing the left and right buttons simultaneously and moving the trackpoint

This is achieved by modifying the driver parameters as follow. You may have to adapt the path. (Idealy these parameters should be configured in udev.)

    echo 255 | sudo tee /sys/devices/platform/i8042/serio1/serio2/sensitivity
    echo 180 | sudo tee /sys/devices/platform/i8042/serio1/serio2/speed

And the X11 evdev driver is configured like this:

    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Middle Button Emulation" 1

You'll have to adapt the device names. The i8042 parameters don't survive a reboot while the evdev settings have to be set for each Xorg instance. You could also translate them to Xorg's configuration file format and place them in a file in /etc/X11/xorg.conf.d/ to define them system-wide.

See also

Relevant manpages:

  • xinput(1)
  • xorg.conf(5)