Tag: precision enhancement

Fine-tune mouse acceleration / velocity in Ubuntu

Fine-tune mouse acceleration / velocity in Ubuntu

I’ve had different unpleasant experiences with different mice on different machines running various Linux distros, always longing for the magic behind Windows’ pointer precision enhancement. I’m an Ubuntu user and the only solution I found to fit my needs involves creating a custom script and running it automatically on boot.

First, we need to get the device ID of our beloved companion (in my case it was 10):

xinput --list --short

Then, experiment with different values on the Device Accel Constant Deceleration and Device Accel Velocity Scaling properties until you get the most comfortable feel.

xinput --set-prop 10 "Device Accel Constant Deceleration" 2
xinput --set-prop 10 "Device Accel Velocity Scaling" 5

Wrap those two lines in a setmouse.sh script and put it under /usr/bin, then just run the following line to add the script to startup

sudo ln -s /usr/bin/setmouse.sh ~/.config/autostart

In case the startup thing fails, you’ll have to try a different method of running that script automatically on startup. I will elaborate all that in a different post, explaining the differences and pros and cons of each method at a later time…

Advertisements