Fine-tune Synaptics Touchpad

    Synaptics produces excellent touchpads: they are responsive, have multi-touch and, most importantly, they can be long and tedious easily and simply customize to your dexterous fingers.

    Here is just one misfortune: all this charm works fine in Windows 7, while in Linux, as always, it’s just dull bits and half that do not use all their features.

    Fearless Habrauser, are you ready to fight universal injustice? Then welcome to habrakat, you will find a lot of pleasure, linux-way and millions of happy clicks on the output :)

    Essentially you need to: download the script , fix it for yourself and add it to startup. Really boring? Read on :)

    Problem


    About a year ago, having bought the beautiful Acer 3810T and having enjoyed enough after playing with Win 7, I gladly switched to Ubuntu.
    Unfortunately, there were more "iron" problems, but they were somehow resolved (see ubuntuforums ).
    However, most of all (especially compared to the smooth operation in Win 7), the touchpad work annoyed me, namely:
    1. in some cases, insufficient, and in others, excessive sensitivity
    2. Jumping cursor
    3. lack of multi-touch
    4. the inability to properly configure all this
    What to do about it? Let's see what standard programs offer, for example, in Ubuntu.

    Standard solutions


    There are 2 simplest solutions to this problem: setting up the mouse through Mouse Preferences in Gnome and the gSynaptics program. In the first case, the cat burst into tears (turn off the touchpad when typing and enable horizontal scrolling? Cool!). gSynaptcs also solves only a part of the problems (there is circular scrolling, an attempt to adjust cursor movement and sensitivity), but by the way it works quite crookedly for some reason and not all the configs are remembered. So all this is not that RT .

    However, quite lyricism and drama. Let's move on to the fun part!

    Solution


    Sweetie

    In fact, Synaptics offers the same button “make ah%? No.№0” a special package with which you can implement multi-touch in most popular distributions, but only for OEM manufacturers and maintainers. Perhaps happiness awaits us in the near future, but we do not like to wait and go our own (so far the only) path.

    I will make a reservation right away: the solution and config are considered within the framework of Ubuntu . No, not at all because " this is the best OS in the world ." I just use it :) To everyone who tests in other distributions and unsubscribes, special thanks to the whores and blackjack !

    The essence of the solution is to write a script through the standard xinput utilityeach time the system boots, it will change the settings of the Synaptics driver for the Xs the way we want it to.

    ** Solutions found in google operate on xorg.conf and HAL, which was successfully cut from Ubuntu 10.04

    Process

    1. Check if the xinput package is installed
    2. Check if the xserver-xorg-input-synaptics package is installed
    3. Create your own script with the settings or use mine
    ** I remind you that scripts usually have .sh extension in their name, begin with the line #! / bin / sh and love it when they are made executable with the chmod command
    4. Change the driver settings for yourself in the script
    5. Add the script to startup (in any convenient way)

    How do the script lines work?

    xinput --help

    An excellent console utility that allows you to change the settings of input devices on the fly.

    To see a list of all devices:
    xinput list
    Next, to see a list of parameters of a particular device and their values, you need to access it by name or id number (it is better by name when it is already known):
    xinput list-props "SynPS/2 Synaptics TouchPad"
    To change the value of a specific parameter:
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "имя параметра" #размер значени(я)й в битах# #значения через пробел#
    For example:
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 32 250
    - solves the problem “Jumping” cursor
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Circular Scrolling" 8 1
    - allows scrolling “in a circle”

    Details of each parameter on the X.org website

    In a primitive script, you can see which parameters I used. But, as you know, the taste and color ...
    Download the script
    Well, it seems everyone is happy and happy. Now you can safely draw in PhotoshopGIMP;)
    This tuning algorithm should work not only for Ubuntu and, possibly, also for other touchpads, it is necessary to try;)

    Unfortunately, I do not know how to configure such a multitouch function as scale and rotate. Maybe someone tell me? If you have something to add / fix, welcome to the comments.

    UPD: Thanks for the suggestions and wishes, we will take into account, in the future!

    UPD2: Where are you the handsome encoder on your horse-car who will make a small utility for those for whom, say Ubuntu - the OS is really for human beings?

    Also popular now: