Monday, May 9, 2011

Mouse acceleration too high in Ubuntu 10.04

One day my mouse was moving waaay too fast - no idea what caused it. Changing mouse settings in System > Preferences > Mouse did not slow it down enough, so I had to find a different method.

Open the terminal and type:
xinput --list --short

Find the name of your device. Mine was Areson USB Device.

Set the constant deceleration (a value to 2 worked best for me):
xinput --set-prop "Areson USB Device" "Device Accel Constant Deceleration" 2

To run this command at startup, create a script (mouseAccel.sh):
#!/bin/sh
xinput --set-prop "Areson USB Device" "Device Accel Constant Deceleration" 2


Set permissions to make it executable:
$ chmod +x mouseAccel.sh

Add it to System -> Preferences -> Startup Applications

No comments:

Post a Comment