This site is now 100% read-only, and retired.

Setting mouse speed under X.

Posted by Steve on Sat 2 Oct 2004 at 17:15

For some reason on some of the machines I look after there are wildly different mouse setups. On some machines moving the mouse will result in a painfully small, slow, movement of the pointer. On others there will be a blur of activity as the mouse streaks across the screen!

The way to set the mouse speed, without having to modify your mouse module (if used) or XFree86/X.org configuration is to use the xset command which is contained in the xbase-clients package.

This command can be used to set the speed and acceleration properties of your mouse as follows: xset m speed accel.

These values can be either integers '1', '2', '3', etc, or fractions '1/3', '3/4', etc.

Experimentation may be in order but I find that using '2' gives a good movement:

skx@lappy:~$ xset m 2 2

 

 


Re: Setting mouse speed under X.
Posted by hardik (61.95.xx.xx) on Tue 30 Aug 2005 at 09:58
Excellant man, I would like to encourage to write more and more this type of tips and trick. Again excellant.....

With Cheers,
Hardik Dalwadi.

[ Parent ]

Re: Setting mouse speed under X.
Posted by Steve (82.41.xx.xx) on Tue 30 Aug 2005 at 10:01
[ View Weblogs ]

I write as much as I can, and hope that others will fill in the gaps...

Steve
-- Steve.org.uk

[ Parent ]

Re: Setting mouse speed under X.
Posted by hardik (61.95.xx.xx) on Tue 30 Aug 2005 at 10:13
Ya, Why not i am ready to fill gaps, Infects i have written some articles, But i want prepare him accurately to to post on this site, i will try my best.....Browsing of this site is my daily routine from last 3 days.....

With Cheers,
Hardik Dalwadi.

[ Parent ]

Re: Setting mouse speed under X.
Posted by Anonymous (201.133.xx.xx) on Fri 3 Feb 2006 at 16:44
Nice trick, this was incredibly helpful to me, thanks man!!

[ Parent ]

Re: Setting mouse speed under X.
Posted by Anonymous (129.13.xx.xx) on Sun 9 Dec 2007 at 13:51

Hi there! Thanks for the post so I could find out about xset. In my version (Debian package: 1:7.2.ds2-2), however, the parameters are slightly different. Quoting the man page xset(1):

m: The m option controls the mouse parameters. The parameters for the mouse are `acceleration' and `threshold'. The acceleration can be specified as an integer, or as a simple fraction. The mouse, or whatever pointer the machine is connected to, will go `acceleration' times as fast when it travels more than `threshold' pixels in a short time. This way, the mouse can be used for precise alignment when it is moved slowly, yet it can be set to travel across the screen in a flick of the wrist when desired. One or both parameters for the m option can be omitted, but if only one is given, it will be interpreted as the acceleration. If no parameters or the flag 'default' is used, the system defaults will be set.

So, the correct syntax, for some xset versions at least, is xset m <acceleration> <threshold>

[ Parent ]