Ubuntu – Where to configure synaptics touchpad to use inverted two finger scrolling

synaptics

I want to configure my synaptics touchpad to user inverted scrolling with two fingers.

Where to configure synaptics for this in Ubuntu 12.04?

Best Answer

  • It is relatively straightforward to do this, but it may not work for all touchpads, although it worked for my Synaptics Touchpad on my old laptop. I began experimenting with mine and using xinput, etc, and did mostly the same as this useful article here.

    Firstly, run xinput to list all your devices, and note the id of your touchpad.

    ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
    

    Now to get your button map for the device number found:

    xinput get-button-map 11
    

    which should return something like this:

    1 2 3 4 5 6 7 8 9 10 11 12 
    

    Now, just reversing 4 and 5 should invert the 2 finger scrolling (at least it does on my system). In the following command, just remember to use your device hardware id (not my example 11) and leave spaces between the numbers after the device number:

    xinput set-button-map 11 1 2 3 5 4 6 7 8 9 10 11 12
    

    Now with xinput get-button-map 11 the button map should be

    1 2 3 5 4 6 7 8 9 10 11 12 
    

    Now, check it in your web browser. This of course only sets it temporarily, so it is probably easiest to add it as a startup item rather than messing with xorg. Just create a new startup item and add the whole of the above xinput set-button-map command in it. It is critical that there are spaces between the numbers after your device number, and of course use the actual device name of your hardware, not my example.

    Again, see the article and Ubuntu forums for more information and discussion- you can probably experiment and invert a lot of the other functions of the touchpad as well; you can reset your experimentation (which is temporary anyway, unless you put a command in startup) by just simply placing the numbers in order again:

    xinput set-button-map 11 1 2 3 4 5 6 7 8 9 10 11 12