2

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 https://wiki.archlinux.org/index.php/Libinput. 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"
EndSection

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.

Micha
  • 123

3 Answers3

3

Besides the xorg.conf option in blunden's answer above,

Option "TappingButtonMap" "lmr"

you can also manually set it as

xinput set-prop $ID "libinput Tapping Button Mapping Enabled" 0, 1

for "lmr" or 1, 0, where $ID is the device id. Found the man pages of libinput, link.

1

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.

http://manpages.ubuntu.com/manpages/zesty/man4/libinput.4.html

blunden
  • 126
0

libinput in xenial and yakkety 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

You can also install a newer version of libinput that does support ButtonMapping. See THIS ANSWER for how-to.

Pilot6
  • 92,041