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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s