Created
February 14, 2018 06:11
-
-
Save Juul/3f64871f244a178c85308b0e78f0b55b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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