libinput: How to map different Tappings to Buttons, TappingButtonMap has no effect

by Micha   Last Updated February 23, 2017 19:02 PM

My touchdpad has two buttons (not tapping) and I used to configure two-finger tapping as middle click with synclient.

Now, with ubuntu-gnome 16.10, libinput is the way to go and I tried to achieve the same without success until now.

I tried the approaches mentioned in I have a file /etc/X11/xorg.conf.d/30-touchpad.conf with

Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
    MatchIsTouchpad "on"
    Option "Tapping" "on"
    Option "TappingButtonMap" "lmr"

which does not have effect. I can use

Option "ButtonMapping" "1 3 2 4 5 6 7 8 9 10 11"

Then two-finger-tap works for middle click, but the real right button will be a middle-click, too. I also tried a set of scripts and gnome configurations without success until now. Is there any solution with libinput, or do I have to switch back to synclient?

Any help appreciated.

Answers 2

libinput does not have the TappingButtonMap option.

You can use ButtonMapping, but as you noticed the physical buttons will be remapped too.

You can always revert to synaptics by

sudo apt remove xserver-xorg-input-libinput
February 10, 2017 14:47 PM

As you have already discovered, the option you want is TappingButtonMap.

Option "TappingButtonMap" "lmr"

The issue is seemingly that Ubuntu 16.10 ships with version 0.19.0 of xserver-xorg-input-libinput. The property you (and I) want was added in a later version. Version 0.23.0-1 that ships in the development version of 17.04 supports it according to the documentation.

February 23, 2017 18:40 PM

Related Questions

Kubuntu, problem to touchpad

Updated December 12, 2017 16:02 PM

Ubuntu 18 tapping problem

Updated September 01, 2018 12:02 PM