Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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