Ubuntu 20.04 Elantech touchpad not working

I've recently installed Ubuntu 20.04 on my laptop only to find the touchpad didn't work, it is recognized in xinput and is turned on in settings. Which drivers can I install to make it work? (HP Pavilion 15 Gaming, Nvidia GeForce GTX 1050, AMD Ryzen 5)

Output of Xinput :

⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=15   [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Keyboard Mouse Consumer Control id=11   [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Keyboard Mouse          id=18   [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 Camera: HP Tru           id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ HP Wireless hotkeys                       id=16   [slave  keyboard (3)]
    ↳ HP WMI hotkeys                            id=17   [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse          id=9    [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse System Control   id=10   [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse Consumer Control id=12   [slave  keyboard (3)]




ssg-004@ssg-004-HP-Pavilion-Gaming-Laptop-15-ec0xxx:~$ xinput list-props 15
Device 'ETPS/2 Elantech Touchpad':
    Device Enabled (148):   1
    Coordinate Transformation Matrix (150): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (303): 1
    libinput Tapping Enabled Default (304): 0
    libinput Tapping Drag Enabled (305):    1
    libinput Tapping Drag Enabled Default (306):    1
    libinput Tapping Drag Lock Enabled (307):   0
    libinput Tapping Drag Lock Enabled Default (308):   0
    libinput Tapping Button Mapping Enabled (309):  1, 0
    libinput Tapping Button Mapping Default (310):  1, 0
    libinput Natural Scrolling Enabled (285):   1
    libinput Natural Scrolling Enabled Default (286):   0
    libinput Disable While Typing Enabled (311):    1
    libinput Disable While Typing Enabled Default (312):    1
    libinput Scroll Methods Available (287):    1, 1, 0
    libinput Scroll Method Enabled (288):   0, 1, 0
    libinput Scroll Method Enabled Default (289):   1, 0, 0
    libinput Click Methods Available (313): 1, 1
    libinput Click Method Enabled (314):    1, 0
    libinput Click Method Enabled Default (315):    1, 0
    libinput Middle Emulation Enabled (292):    0
    libinput Middle Emulation Enabled Default (293):    0
    libinput Accel Speed (294): 0.000000
    libinput Accel Speed Default (295): 0.000000
    libinput Left Handed Enabled (299): 0
    libinput Left Handed Enabled Default (300): 0
    libinput Send Events Modes Available (270): 1, 1
    libinput Send Events Mode Enabled (271):    0, 0
    libinput Send Events Mode Enabled Default (272):    0, 0
    Device Node (273):  "/dev/input/event10"
    Device Product ID (274):    2, 14
    libinput Drag Lock Buttons (301):   <no items>
    libinput Horizontal Scroll Enabled (302):   1







Had the same issue on my HP Pavillion running Ubuntu 20.04. I spent two days looking for a solution.

The first thing that worked for me was editing the grub file: /etc/default/grub

GRUB_CMDLINE_LIN UX_DEFAULT="quiet splash psmouse.proto=bare"
GRUB_CMDLINE_LINUX="i8042.reset i8042.nomux i8042.nopnp i8042.noloop"

The link below has the full procedure: https://medium.com/@barcelos.ds/how-to-fix-touchpad-mouse-not-working-in-linux-operating-systems-b328bb43b4c5

After making those changes I could not use two-finger scrolling. To get that working I had to update the Linux kernel to version 5.10

The link below is what I followed to update the kernel: http://ubuntuhandbook.org/index.php/2020/12/install-linux-kernel-5-10-ubuntu-linux-mint/

Hope this helps:


This is a kind of a bug in Ubuntu 20.04 where xorg-synaptics is in use when it shouldn't be.

This can be fixed by

sudo apt remove xserver-xorg-input-synaptics

The touchpad should start working with libinput after a logoff or reboot.