14

I just installed Kubuntu on my Dell XPS 15 9570. Everything is working fine, except for tap to click on the touchpad.

I can activate the option in the settings but this has no effect.

4 Answers4

25

After some additional searching I found the solution to my problem here

I had to add Option "Tapping" "True" to the entry MatchIsTouchpad in the file /usr/share/X11/xorg.conf.d/40-libinput.conf. The exact name of the file might be different for other people.

In the end, the relevant section will look like something like this:

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        Option "Tapping" "True"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

You need to be root to edit the file and reboot your system after the changes!

hytromo
  • 4,904
4

You can hit ALT+F2 and search for "Touchpad" under "System settings".

When you get to it, you'll need to set "Tap-to-click" option.

Additionally, you may want to set "Invert scroll direction (Natural scrolling)", which changes how your two finger scrolling works.

For both these options, you can hit "Apply" and see immediately if it suits you. Enjoy!

  • That did not work in my case (Dell XPS 9700 with 4k sensor screen), the tap-to-click setting was enabled, but editing libinput config as specified at another answer did the trick. I guess the issue is that "Touchpad" under "System settings" may be referencing the wrong touchpad device (sensor screen) instead of hardware touchpad beneath keyboard – Dmitriusan Dec 28 '23 at 14:23
1

IMHO Symlinking the 40-libinput.conf is a better approach. See the Arch Linux libinput wiki.

It works great for me on my Dell Inspiron 7390 with Arch Linux Gnome and Kubuntu 21.04 dual boot. I can also confirm that tap to click works on both Arch Linux gdm and Kubuntu sddm.

sudo ln -sv /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf

My modified /usr/share/X11/xorg.conf.d/40-libinput.conf touchpad section looks as follows

    Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "on" #added
        Option "NaturalScrolling" "on" #added
    EndSection
  • From what I understand that is true only if you have both libinput and synaptics driver on the system and if you were to have their configs in /usr/share/X11 the latter one takes precedence due to it having a higher number 70 assigned to it. But if you modify and symlink libput to /etc/X11 then it gets precedence over config files in /usr/share. This is only beneficial if you have both synaptic and libinput installed on the system – Sudhir Singh Khanger Oct 27 '21 at 04:29
  • After update to Kubuntu 22.04 LTS the Tap to click option in Touchpad settings was greyed out. Creating the link with your command and logout-login fixed it and all options are now available in the GUI. No need to edit any settings in the file. – Fabian Horlacher Jun 14 '22 at 11:37
0

This is a minor update, but as it touches on more than one point it's worth a post instead of a comment on a post.

As noted, editing the /usr/share/X11/xorg.conf.d/40-libinput.conf file works well. However, one does not need to reboot after. One only needs to log out and log in as this causes an X11 restart, saving time. Also, if you have other logged in users, this prevents interruption to their work.

My process worked like this:
Open and edit the file from a terminal using:
sudo vim /usr/share/X11/xorg.conf.d/40-libinput.conf
such that my file looks like this.*:

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        # added Tapping entry on Oct 22 2021 per
        #   https://askubuntu.com/questions/1179275/enable-tap-to-click-kubuntu
        Option "Tapping"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
  • Note, I've learned the hard way to always document where I've made a change and WHY I made the change, ideally with a reference to the documentation that led me to the change. In that way, I can follow up later to see if that advice has changed.
  • This does work as intented. But, at least on KDE Neon, the 'Tap-to-Click' option is still greyed out and not enabled, so people should be aware of that. – Juan M Nov 27 '21 at 21:08