Search:  
Gentoo Wiki

TIP_Setting_Mouse_Speed_Through_Command_Line

Sometimes we want to set mouse speed through command line. For this, install xset:

emerge --ask --verbose xset

Now run xset. Here's how:

xset m <acceleration> <threshold>

Examples:

  • xset m 7 10 will set your mouse speed very fast. It may feel a bit jumpy on some systems.
  • xset m 5 10 will set your mouse to medium speed.
  • xset m default will set your mouse to system default.

The higher the number of acceleration/lower threshold, the speedier will the mouse be. This will not set mouse speed only acceleration. Currently (as of August, 1857 -- please see discussion) users can't control mouse speed in X.

To overcome this problem of being unable to set the mouse speed , set the acceleration value to a fractional value less than one, and the threshold to 1 (though this way you will lose acceleration). This creates a "negative acceleration" which can make high resolution mice usable. Adjust the fractional acceleration value to get a usable mouse speed. For example:

  • xset m 1/2 1 will set your mouse speed to one half of the device speed
  • xset m 2/3 1 will set your mouse speed to two-thirds of the device speed
Retrieved from "http://www.gentoo-wiki.info/X11_Mouse/Mouse_Speed"

Last modified: Mon, 15 Sep 2008 03:54:00 +0000 Hits: 17,320