HOW TO LOWER MOUSE SENSITIVITY IN UBUNTU 12.04 OR IN ANY XSERVER DESKTOP

Im using Unity, and also XFCE (mostly XFCE as this laptop is under powered). I have a wireless HP mouse thats simply too sensitive, lowering the sensitivity settings via the Desktop Mouse Settings, does some good for lowering the speed; but simply not enough. This is where xinput comes in.

NOTE: this applies to anything that uses xinput, so any X11 window/desktop manager can benefit from this if your have a too-fast mouse

Steps

If dont have xinput (I noticed ubuntu had it but debian didnt):

apt-get install xinput

Open up a terminal like Xterm

Find your device id for me its 14, which is my HP wireless mouse.

NOTE: lots of the commands can have — prior or you can omit. The xinput –help shows that you dont need the –, but it works with and without

We need to change the value of “Device Accel Constant Deceleration” constant. By default for me its 1. Raising the value will make your mouse slower.

For me the sweet spot was 1.9, for others its 2.5. It depends on your preference and your mouse. The second you change the value, the change takes over.

SYNTAX: xinput set-prop <dev num> <property id or full name> <new value>

Also from list-props output we see that “Device Accel Constant Deceleration” has the ID of 261. So we can just change the value with id of the property.

This is how you would set it to 1.9 with the id:

NOTE: try numbers above 1 but below 3, above 3 might be too much. You can also try 1.9

To confirm your changes

Script to Automate Mouse Speed Setting

Here is a simple script to do the above (Read the comments to see how to use it):

NOTE: the below steps show you in detail how to make the script run at user login so that everyone gets the good speed – you can also just manually run it instead – also you can set it up (With extra research on your own part)  to just make the script run for certain users (Just google, “xdg autostart start up scripts“).

NOTE TO MANUALLY RUN THE SCRIPT: First make sure you set the MOUSENAME variable in the script as described in all of the comments. Then do the following /etc/slow-mouse/slow-mouse.sh 2 , then try other numbers too besides 2 (note you can use decimal numbers like 1.5 or 1.9 etc…)

Put the script in a location where everyone everyone can access it:

Here is the /etc/slow-mouse/slow-mouse.sh script
Here is the /etc/slow-mouse/slow-mouse.desktop script (That is symlinked tp /etc/xdk/autostart/slow-mouse.desktop):

One thought on “LOWER MOUSE SENSITIVITY IN UBUNTU 12.04 OR IN ANY XSERVER DESKTOP

Leave a Reply

Your email address will not be published. Required fields are marked *