Set Touchpad Configuration in Linux
Table of Contents
Intro
when using linux we sometimes don’t find the computer working system properly, we are required to be do it yourself.
therefore we must really understand how computers actually work, and are required to independently solve existing problems. One of the first problems that I felt when I first tried Linux was the problem of not working tap on the laptop touchpad, I will try to solve this problem in detail so that it is easy for you to understand.
Required
install required: libinput
Step by Step
-
first make sure the configuration file is in
/etc/x11/xorg.conf.d
. if it doesn’t exist we create a symlink from/usr/share/x11/xorg.conf.d/40-libinput.conf
to the/etc/x11/xorg.conf.d
directory by typing:sudo ln -s /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf
-
quoted from stack overflow here is an example of my config:
Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event7" Driver "libinput" Option "Tapping" "on" Option "ClickMethod" "clickfinger" Option "TappingDrag" "on" Option "ScrollMethod" "twofinger" Option "DisableWhileTyping" "on" Option "TappingButtonMap" "lmr" EndSection
copy and then edit if necessary. visit libinput for a detailed description.
be careful when editing config file in the root folder
- Reboot