M HYPE SPLASH
// general

How do I change the mouse acceleration curve?

By John Campbell

How do I tweak the precise mathematical curve used for the mouse acceleration in Ubuntu?

1

2 Answers

That depends on what mouse profile you're using.

This blog describes a new mouse acceleration method added to Debian Squeeze (should also be in Maverick since Squeeze used xorg-server 1.7.7 and Maverick used 1.9.0). You can read the developer documentation here.

If you look at the source, you can derive the curve based on which Profile you're using. In the patch for AccelerationProfile, you can see the function SetAccelerationProfile which selects your profile. If you look at each of those profiles, you can see how the function is defined.

So to tweak it, you modify whatever inputs your selected profile takes. Presumably these are set in xorg.conf (which, fyi, doesn't exist by default).

To really customize it, you can write your own function and compile your own xorg-server : D

4

Okay, I think I found the answer...

Something like this should do the trick:

xinput set-prop "SynPS/2 Synaptics TouchPad" \ "Synaptics Edge Motion Speed" 2000, 5000
xinput set-prop "SynPS/2 Synaptics TouchPad" \ "Device Accel Constant Deceleration" 4
synclient MinSpeed=1.00 MaxSpeed=3.00 AccelFactor=0.025

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy