Skip to content

Instantly share code, notes, and snippets.

@olejorgenb
Created December 24, 2016 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olejorgenb/ffaa200e2277908aa5be583af429043c to your computer and use it in GitHub Desktop.
Save olejorgenb/ffaa200e2277908aa5be583af429043c to your computer and use it in GitHub Desktop.
Thinkpad trackpoint configuration
#!/usr/bin/env zsh
#
### Thinkpad x220 config
xinput disable "SynPS/2 Synaptics TouchPad"
# Doc: https://www.x.org/wiki/Development/Documentation/PointerAcceleration/
TP="TPPS/2 IBM TrackPoint"
xinput set-prop $TP "Device Accel Profile" 2
xinput set-prop $TP "Device Accel Constant Deceleration" 0.7
xinput set-prop $TP "Device Accel Adaptive Deceleration" 2.0
xinput set-ptr-feedback $TP 0 20 10 # acceleration factor = 20/10
## More knobs (trackpoint specific) in:
# /sys/devices/platform/i8042/serio1/serio2
## and documentation:
# http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#Sysfs_Options_Reference
# ~/doc/device-manuals-and-drivers/trackpoint-thinkpad-Ykt3Eext.pdf
# http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/mouse/trackpoint.h?id=HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment