Difference between revisions of "Mouse acceleration"

From ArchWiki
Jump to: navigation, search
m (moved How to set mouse speed in X to How to set mouse acceleration in X: "Speed" is too ambiguous -- it could mean sensitivity or acceleration. This article is about acceleration, so title had been change to reflect that.)
Line 2: Line 2:
 
[[Category:FAQs (English)]]
 
[[Category:FAQs (English)]]
  
====Q: How do I set the mouse speed under X windows?====
+
==Q: How do I set the mouse speed under X windows?==
 
<b>A: </b>If you want to set your mouse speed in X, you have to use the '''xset''' command. Your mouse speed is controlled by acceleration and threshold levels. The command synopsis is <code>xset m acceleration threshold</code>.
 
<b>A: </b>If you want to set your mouse speed in X, you have to use the '''xset''' command. Your mouse speed is controlled by acceleration and threshold levels. The command synopsis is <code>xset m acceleration threshold</code>.
  
Line 10: Line 10:
 
</pre>
 
</pre>
 
<br>
 
<br>
''Acceleration'' defines how many times faster the cursor will move than the default speed, when the cursor moves more than ''threshold'' pixels in a short time. ''Acceleration'' can be a fraction, so if you want to slow down the mouse you can use 1/2, and if 3 is slightly too fast, but 2 is too slow, you can use 5/2. You effectively disable the threshold by setting it to 1, that way the cursor will always move the same speed. To get the default settings back, type <code>xset m default</code>. You can add the xset command to your ~/.xinitrc to get the desired mouse speed every time X starts.
+
''Acceleration'' defines how many times faster the cursor will move than the default speed, when the cursor moves more than ''threshold'' pixels in a short time. ''Acceleration'' can be a fraction, so if you want to slow down the mouse you can use 1/2, and if 3 is slightly too fast, but 2 is too slow, you can use 5/2. You effectively disable the threshold by setting it to 1, that way the cursor will always move the same speed. To get the default settings back, type <code>xset m default</code>.  
 +
 
 +
===Disabling mouse acceleration===
 +
Mouse acceleration can be disabled using:
 +
xset m 0 0
 +
 
 +
==Making changes permanent==
 +
You can add the xset command to your ~/.xinitrc to get the desired mouse speed every time X starts.
  
 
For more info see <code>man xset</code>.
 
For more info see <code>man xset</code>.

Revision as of 19:40, 27 February 2009


Q: How do I set the mouse speed under X windows?

A: If you want to set your mouse speed in X, you have to use the xset command. Your mouse speed is controlled by acceleration and threshold levels. The command synopsis is xset m acceleration threshold.

For example:

xset m 4 1


Acceleration defines how many times faster the cursor will move than the default speed, when the cursor moves more than threshold pixels in a short time. Acceleration can be a fraction, so if you want to slow down the mouse you can use 1/2, and if 3 is slightly too fast, but 2 is too slow, you can use 5/2. You effectively disable the threshold by setting it to 1, that way the cursor will always move the same speed. To get the default settings back, type xset m default.

Disabling mouse acceleration

Mouse acceleration can be disabled using:

xset m 0 0

Making changes permanent

You can add the xset command to your ~/.xinitrc to get the desired mouse speed every time X starts.

For more info see man xset.