You are not logged in.

#1 2016-04-23 01:03:13

crossroads1112
Member
Registered: 2014-01-08
Posts: 24

Enable two-finger right click in GNOME with libinput

Synaptics automatically detected my touchpad as  a clickpad and interpreted a two-finger click as a right click. Libinput does not do this, though from what I have read it does support clickpads. Is there some way I can force it to reclassify the device as a clickpad and enable this setting?

Offline

#2 2016-04-23 05:53:56

adrianx
Member
From: South Africa
Registered: 2010-03-22
Posts: 70

Re: Enable two-finger right click in GNOME with libinput

You can do it in the Tweak Tool under Keyboard and Mouse > Touchpad > Click method

Offline

#3 2016-04-23 09:24:02

Sviests
Member
From: Riga, Latvia
Registered: 2016-03-24
Posts: 42

Re: Enable two-finger right click in GNOME with libinput

That only changes the click method, not enables two-finger-click!

I am having a similar issue as the OP, although libinput recognises single, two and even three finger tapping, I cannot seem to find a way how to change the mapping. Currently, two-finger-tap is set to the right mouse button and three-finger-tap is set to middle button and I would like to swap these two mappings...

Offline

#4 2016-06-16 21:47:52

monodromy
Member
Registered: 2014-02-08
Posts: 62

Re: Enable two-finger right click in GNOME with libinput

Don't know if you're still having this problem, but I just switched over to libinput and had to figure this out. The relevant line in the 30-touchpad.conf is

Option ButtonMapping "1 3 2"

See https://wiki.archlinux.org/index.php/Li … re-mapping.

Offline

#5 2016-06-16 22:07:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Enable two-finger right click in GNOME with libinput

use xinput to get the id of your touchpad.
Then, use that id to get the properties using xinput --get-props
You can use that information and the --set-prop to change those properties.
You may also want to look at

ewaller@turing/etc/systemd/network[1] % xinput
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                          id=10   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ HP Truevision HD                          id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ HP WMI hotkeys                            id=13   [slave  keyboard (3)]
    ↳ HP Wireless hotkeys                       id=14   [slave  keyboard (3)]
ewaller@turing/etc/systemd/network % xinput --list-props 12
Device 'SynPS/2 Synaptics TouchPad':
        Device Enabled (139):   0
        Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Tapping Enabled (279): 1
        libinput Tapping Enabled Default (280): 0
        libinput Tapping Drag Enabled (281):    1
        libinput Tapping Drag Enabled Default (282):    1
        libinput Tapping Drag Lock Enabled (283):       0
        libinput Tapping Drag Lock Enabled Default (284):       0
        libinput Accel Speed (285):     0.000000
        libinput Accel Speed Default (286):     0.000000
        libinput Natural Scrolling Enabled (287):       0
        libinput Natural Scrolling Enabled Default (288):       0
        libinput Send Events Modes Available (259):     1, 1
        libinput Send Events Mode Enabled (260):        0, 0
        libinput Send Events Mode Enabled Default (261):        0, 0
        libinput Left Handed Enabled (289):     0
        libinput Left Handed Enabled Default (290):     0
        libinput Scroll Methods Available (291):        1, 1, 0
        libinput Scroll Method Enabled (292):   1, 0, 0
        libinput Scroll Method Enabled Default (293):   1, 0, 0
        libinput Click Methods Available (294): 1, 1
        libinput Click Method Enabled (295):    1, 0
        libinput Click Method Enabled Default (296):    1, 0
        libinput Disable While Typing Enabled (297):    1
        libinput Disable While Typing Enabled Default (298):    1
        Device Node (262):      "/dev/input/event8"
        Device Product ID (263):        2, 7
        libinput Drag Lock Buttons (299):       <no items>
        libinput Horizonal Scroll Enabled (264):        1
ewaller@turing/etc/systemd/network %

Finally, you may want to investigate the --get-button-map and --set-button-map switches.

Please also see man xinput and https://wiki.archlinux.org/index.php/Libinput


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB