Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a USB mouse attached to my Ubuntu notebook. This mouse is (unfortunately) really sensitive, and so it sometimes gets hard to hit small icons with the mouse pointer. This is really a hardware issue, it's not a bug and it's not Ubuntu's/gnome's fault. Still, I would very much like to this issue through software (solving through hardware would imply buying a new mouse).

Back in Windows, if I set the sensitivity as really low it was comfortable enough. In Ubuntu, even the lowest sensitivity and acceleration available (in the System>Prerences>Mouse menu) is still frustrating. How can I decrease it below the default minimum?

I tried xset, but it seems xset only deals with acceleration and threshold, but not actual sensitivity.

share|improve this question
Where do i put these lines of code? – user430966 Jul 18 '15 at 23:58
up vote 37 down vote accepted

I have a Razer DeathAdder mouse and like in your case, the sensitivity/acceleration are too high even if I put them at the lowest level in the mouse preferences. So to solve this problem, I used the xinput command.

First, you will need your mouse ProductName and ID:

xinput list
 Razer Razer DeathAdder                     id=8    [slave  pointer  (2)]

Then you set the constant deceleration level that suits your needs with this command:

xinput set-prop 8 "Device Accel Constant Deceleration" 3
# 3 = LEVEL (factor) Higher = Slower.

To make the config persistent (and make it system wide), you will need to edit your xorg.conf (/etc/X11/xorg.conf).

Section "InputClass"
   Identifier      "Razer"                    # Whatever you want.
   MatchProduct    "Razer Razer DeathAdder"   # Product name from xinput list.
   Option          "ConstantDeceleration" "3" # The same value as xinput.

Once you reboot, you should have the same result as the xinput command.

Let me know if it helps.

share|improve this answer
Amazing! I had given it up weeks ago. Thank you so much, it does indeed help. – Malabarba Nov 9 '10 at 11:18
+1 I've had same problem with Logitech trackall, but this helped, thnx. – Ernest Mar 4 '11 at 13:51
Bah: "property 'Device Accel Constant Deceleration' doesn't exist, you need to specify its type and format – mlissner May 3 '13 at 16:12
awesome! Thanks man. – Zander Rootman Oct 20 '14 at 18:42
Still works, even for Linux Mint 17! Thanks :) – Richard-dW Jun 5 '15 at 12:19

Late reply, but I think this is worth posting:

Since we're talking about gaming mouse here. Better is to turn off the mouse acceleration entirely (useful for FPS gamers etc.). Save up some CPU cycles by not using it to calculated any mouse acceleration and likely to be more accurate readings too (depend or the mouse hardware sensor has build-in extrapolation).

xinput set-prop <mousedevice_nr> "Device Accel Profile" -1


Section "InputClass"
   Identifier      "Razer"
   MatchProduct    "Razer DeathAdder"         # Product name from xinput list.
   Option          "AccelerationProfile" "-1" # Turn mouse accel off saving CPU cycles


share|improve this answer

If you use the PS2 port the mouse movement is much slower for the same mouse resolution.

For your mouse try to use a USB to PS2 converter and put the mouse it the PS2 port.


I have found the xorg.conf working solution:

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Sensitivity" "0.2"

Where a sensitivity of 1 is the default and the 0.2 one is decreasing it five times.

share|improve this answer
That's a creative idea. I think I've got a converter back at home, so I'll try it tomorrow. – Malabarba Oct 27 '10 at 17:26
I have found a working xorg.conf solution. Edited answer. – iugamarian Feb 17 '11 at 12:48

This problem also seem to be happening when you connect your mouse via an external USB hub. xinput solves the issue even when you are using an external USB hub, but if you do not wish to play with your configuration, you can simply connect your mouse to your motherboard USB input socket as well. That should usually give you enough room to setup the right sensitivity via your usual mouse settings interface in System Settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.