Skip to content

Instantly share code, notes, and snippets.

@alexgleason
Created March 30, 2018 23:56
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 alexgleason/1f67b458c5888fadfd0262e882d2d591 to your computer and use it in GitHub Desktop.
Save alexgleason/1f67b458c5888fadfd0262e882d2d591 to your computer and use it in GitHub Desktop.
Set Thinkpad trackpoint speed/sensitivity
#!/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
@alexgleason
Copy link
Author

alexgleason commented Mar 30, 2018

This should work for newer Thinkpad models, eg any of the ones with chicklet keys.

Save the file as trackpoint then do this:

chmod +x trackpoint
sudo chown root:root trackpoint
mv trackpoint /usr/bin

Then you can write sudo trackpoint <sensitivity> <speed> in your terminal to set the speed. Eg sudo 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment