You can configure the rate at which the mouse cursor moves across the screen and the point at which the mouse cursor actually begins to accelerate. By configuring these parameters, you can use the mouse for precise positioning when it is moved slowly and you also have the flexibility to move the cursor quickly across the screen.
To configure the mouse's movement parameters, perform the following steps.
There are two parameters that control the movement of the mouse: acceleration and threshold. The acceleration parameter is a multiplier that is applied to the mouse cursor motion. If the acceleration parameter is set to ``4'', the mouse cursor moves across the screen four times faster than you move the mouse.
Setting a high acceleration is convenient for quickly moving the mouse cursor large distances on your screen. However, it can be awkward when you want to position the mouse precisely. The pointer can move too quickly and it becomes difficult to focus the mouse cursor on a small area on your screen. To overcome this problem, you can set the threshold parameter. The threshold controls the number of pixels the mouse cursor must move before the cursor motion accelerates.
For example, suppose you set an acceleration value of ``6'' and a threshold value of ``8''. The mouse is configured so that if you move the mouse cursor more than 8 pixels, the cursor can then move 6 times as fast on the screen as you actually move the physical mouse.
Use the following guidelines for deciding how to configure the mouse movement parameters:
The scomouse client is generally the preferred method for setting the mouse movement parameters:
The scomouse client stores the settings for these parameters in a file called ScoMouse, located in $HOME/.odtpref. If you examine this file after you set new values for the movement parameters, you see an entry similar to this:
scomouse -s 7 -t 10 -rThe
-sentry indicates that the acceleration of the mouse has been set to 7 and the
-tentry indicates that the threshold has been set to 10. The
-rentry indicates the mouse is configured for right-handed use.
You can also set the acceleration and threshold parameters using the xset command, with the m (mouse) option.
The scomouse client is more intuitive to use than the xset m command, and is the preferred method for configuring mouse movement behavior for multiple sessions.
To configure the mouse movement parameters with xset,
xset m acceleration_value threshold_value
acceleration_value refers to the value you want for the acceleration parameter, and threshold_value refers to the value you want for the threshold parameter. You must use positive integers to set these parameters.
If you only assign the xset m command one value,
the value is assigned to the acceleration parameter.
If you want to change the threshold parameter and leave
the acceleration parameter unchanged, enter:
xset m default threshold_value
If you want to return to the default acceleration and threshold
xset m default
The system defaults specify that the mouse uses an acceleration value of 4 and a threshold value of 2.
Once you have configured the mouse movement parameters,
you may want to verify that your changes were successfully
implemented by the X server. Enter the following command:
The q option lists the current values of all of the xset preferences. The mouse movement parameters are included in this list, as shown in the following example:
Pointer Control: acceleration: 3 / 1 threshold: 4This indicates that the mouse cursor on the screen moves three times as fast as you actually move the physical mouse (3/1), and that this occurs after the mouse pointer moves 4 pixels. The default is twice as fast (2/1).