Created
March 30, 2018 23:56
-
-
Save alexgleason/1f67b458c5888fadfd0262e882d2d591 to your computer and use it in GitHub Desktop.
Set Thinkpad trackpoint speed/sensitivity
This file contains 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 | |
if [ $# -ne 2 ]; then | |
echo "Usage: trackpoint <sensitivity> <speed>" | |
echo "" | |
echo "Sensitivity is the amount of pressure needed to make the cursor reach its max speed. Speed is the max speed." | |
echo "Note: Both values must be 0-250 with 250 being the most sensitive/fast." | |
exit 1 | |
fi | |
echo $1 > /sys/bus/serio/devices/serio2/sensitivity | |
echo $2 > /sys/bus/serio/devices/serio2/speed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should work for newer Thinkpad models, eg any of the ones with chicklet keys.
Save the file as
trackpoint
then do this:Then you can write
sudo trackpoint <sensitivity> <speed>
in your terminal to set the speed. Egsudo trackpoint 250 150
(my preference). Values must be between 0 and 250.Changes should be reflected immediately. Add this command to a startup script to make changes persist on reboot.