Skip to content

Instantly share code, notes, and snippets.

@Juul
Created February 14, 2018 06:11
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 Juul/3f64871f244a178c85308b0e78f0b55b to your computer and use it in GitHub Desktop.
Save Juul/3f64871f244a178c85308b0e78f0b55b to your computer and use it in GitHub Desktop.
#!/bin/bash
# This script is for setting TrackPoint sensitivity/speed/acceleration
# on a ThinkPad X220 to something reasonable since neither maxing out
# the UI mouse sensitivity nor maxing out /sys/devices options
# were getting the sensitivity high enough on their own.
SYSFS_PATH="/sys/devices/platform/i8042/serio1"
echo 0 > ${SYSFS_PATH}/inertia
# keep these at maximum unless lowering xinput values
# doesn't get the sensitivity low enough for you
echo 200 > ${SYSFS_PATH}/resolution
echo 200 > ${SYSFS_PATH}/rate
echo 255 > ${SYSFS_PATH}/sensitivity
echo 255 > ${SYSFS_PATH}/speed
# increase for acceleration
xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 1.4
# increase for more speed
xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Velocity Scaling" 45.0
# this one doesn't have a whole lot of effect
xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Adaptive Deceleration" 3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment