📜 ⬆️ ⬇️

Separate speed of the mouse and touchpad in Linux.

Hello, I am a happy laptop user [asked not to advertise the brand] . In general, a wonderful machine, and one of the most Linux-compatible. In America, they are sold with pre-installed ubuntas, so there is absolutely no problem with iron. Everything works absolutely.

But I got a little trouble. Most of the time I use a mouse connected to usb, and I use the touchpad only when it is not possible to attach a rodent. And being a little gamer-pontovoy, my mouse has a resolution of 1600dpi. In other words: it is supersensitive.
Of course, this is not a particular problem, since it is solved by reducing the sensitivity of the mouse pointer in the settings of the operating system. But, after that, trouble begins, since it becomes almost impossible to use a touchpad with such settings (you have to run your finger five times to drag the cursor from one corner of the screen to another.)
Actually, I had a task to separate the sensitivity settings for an external mouse and touchpad.


')
Long-term googling and scrolling of the forums did not give a solution, although the guishy configurators of the touchpad, although they exist, do not provide such options. Rescued me as a result of reading the driver documentation.

So, everything is solved really very simply.
Open the good old /etc/X11/xorg.conf

If the touchpad driver is installed and configured, there should be an Input Device section that looks like this:

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "SHMConfig" "true"
Option "HorizEdgeScroll" "0"
Option "MinSpeed" "0.7"
Option "MaxSpeed" "1.2"
Option "AccelFactor" "0"
EndSection


It is the last three lines, which most likely do not have your config and are responsible for the sensitivity of the touchpad:
MinSpeed - while slowly moving your finger over the surface.
MaxSpeed - respectively, when fast.
AccelFactor - the degree of acceleration of the cursor.

When adding these lines, the speed of moving the cursor using the touchpad (at least in my case) no longer depends on the general settings of the system, and is configured exclusively from here. The speed of movement of the mouse - in the old manner.

Additional information on other interesting touchpad parameters can be found here . Including about "hot corners" and imitation of the right click (will be useful for MacBook users)

Thank you for your attention, I hope my note will be useful to you.

Source: https://habr.com/ru/post/27584/


All Articles