5

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

1
  • 1
    This is geeky :) Apr 3, 2011 at 10:31

2 Answers 2

2

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
  • Aww I'm not nerdy enough to start recompiling pieces of the OS. D: +1 Thanks though... I'll probably accept this if there's no simpler solution. :)
    – user541686
    Apr 6, 2011 at 0:14
  • Minor tweaking should only require changes to the xorg config file, but to figure out the actual curve you'll need to figure out the code. Unless someone else already wanted the same thing.
    – idbrii
    Apr 6, 2011 at 0:30
  • I'd imagine I'm not the first person to want to do this, but I haven't found the settings anywhere... :\
    – user541686
    Apr 6, 2011 at 0:31
  • 1
    For twiddling with the values, this is probably a more friendly guide: x.org/wiki/Development/Documentation/… Keep in mind that you probably need to create the xorg.conf file.
    – idbrii
    Apr 6, 2011 at 0:40
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .