debian vs cent os | fb script download | php automatic ad rotator | datetime now php | How to edit date in php | vk


Fix Mouse Sensitivity in Ubuntu 16.04

Fix Mouse Sensitivity in Ubuntu 16.04

Image source: Pixabay free images

After installation of Ubuntu Desktop 16.04, a nasty surprise awaits you. Mouse is very sensitive (practically unusable) in most systems with wireless mouse. Probably, this will not happen in systems with old wired mouse. Trying to fix mouse sensitivity, using System Settings → Mouse and Touchpad, you will see that it is not possible:

(click the thumb for full image)

Fortunately, there is an easy way to fix it, using xset (user preference utility for X).

Using man xset you will find the settings for mouse:

The m option controls the mouse parameters; it may be abbreviated to 'm'. Of course, it applies to most pointing devices, not just mice. The parameters for the pointing device are `acceleration' and `threshold'. The acceleration can be specified as an integer, or as a simple fraction. Threshold is just an integer. The setting is applied to all connected pointing devices. xin‐ put(1) should be used if you need device-specific settings.

Open a terminal and give:

xset m 1/2 8

You can experiment with these values. Thus, your system might be more suited to:

xset m 1/2 4

To reset default values:

xset m default

That's it! The mouse is working perfectly now.

Make this change permanent

Of course, you want to make this change permanent (otherwise, you have to make it in every login). So, with your favorite editor (nano in my case), create the file:

nano ~/.config/autostart/mouse.desktop

with the following contents

[Desktop Entry]
Name=Decrease mouse sensitivity
Exec=xset m 1/2 8
Comment[en_US]=Use xset to set mouse params
Comment=Use xset to set mouse params

That's it.

To test your changes, logoff and in next login use the Dash to select Startup Apllications. You will see something like this:

(click the thumb for full image)

and if you press Edit

(click the thumb for full image)

If you prefer, you may use Startup Applications interface to create the above startup preference without using command line.

Related Posts

You may also be interested in

Sign-up for our free email newsletter. Get updates when new tutorials and tips are published. You can unsubscribe anytime with a click.

Your comments are welcomed!

This site actively encourages commenting on any post. Comments are not pre-moderated, but this community does not tolerate direct or indirect attacks, name-calling or insults. Please, read terms of use and Comment Policy at privacy policy.

Package Management and System Update in Ubuntu Desktop Easily Compress and/or Encrypt Files in Linux Using 7z (p7zip) Archiver