synaptics is the open source input driver for Synaptics and ALPS touchpads.
Activate the following kernel options:
Device Drivers ---> Input device support ---> <*> Event interface [*] Mice ---> <*> PS/2 mouse
Additional drivers may be necessary under the Mice menu to support the touchpad. e.g. "Synaptics PS/2 mouse protocol extension". The touchpad may also be USB, not PS/2. When in doubt, select multiple drivers and check what the kernel uses later with lspci -k.
After setting the INPUT_DEVICES variable remember to update the system using the following command so the changes take effect:
emerge --ask --changed-use --deep @world
The driver has a lot options for tuning. See theman page for more information.
Referring to xorg.conf there should have a /etc/X11/xorg.conf.d directory on the system. If there is none create one:
Configure file /etc/X11/xorg.conf.d/50-synaptics.conf as in the example below:
Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" Option "VertEdgeScroll" "on" Option "CircularScrolling" "on" Option "VertScrollDelta" "-111" Option "HorizScrollDelta" "-111" Option "TapButton1" "1" EndSection
Configuration at runtime
Enable the above option to be able to configure the driver also at runtime. Changes at runtime will be lost with the next start of the X server. Add changes to the above config file to persist desired settings.
Configure the driver with the program synclient. Some examples:
List all parameters:
Cut the right side of the touch area to expand the vertical scroll area:
Finding the right edge parameter:
synclient -m 50
Disable the mouse click function:
Finally, dump the handpicked configuration to the 99-synaptics file pasting output of the following command inside the
synclient -l | sed -e '1d' -e 's/^ \+/Option\t"/g' -e 's/ \+= /"\t"/g' -e 's/$/"/g'
emerge --ask kde-misc/synaptiks
Touchpad is not recognized
If the touchpad does not show in either lsusb nor lspci, that might be due to the PS/2 controller and how it is handled by the kernel. One indication is if dmesg returns sometings along the lines of:
dmesg | grep i8042
i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
That AUX port is where the touchpad is connected. Try adding the following to the kernel command line, e.g. in /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="... i8042.noloop i8042.nomux i8042.nopnp i8042.reset ..."
Now, update your grub.cfg:
grub-mkconfig -o /boot/grub/grub.cfg
If, after rebooting with these parameters, a generic
Logitech PS/2 mouse input device is detected, the appropriate PS/2 extension driver may be necessary in the Kernel config:
Device Drivers ---> Input device support ---> <*> Event interface [*] Mice ---> <*> PS/2 mouse [ /*] Elantech PS/2 protocol extension [ /*] Sentelic Finger Sensing Pad PS/2 protocol extension [ /*] eGalax TouchKit PS/2 protocol extension
After rebooting, the touchpad should be recognized correctly.
- libinput — an input device driver for Wayland compositors and X.org window system.
- Xorg/Using the numeric keyboard keys as mouse — XOrg comes with built-in mouse emulation using the keyboards numeric keypad.