Ubuntu – How to disable the touchpad while typing


It's impossible to write this way, text gets deleted, windows change, random tabs open. I've tried every solution I came across but none actually solve it (some don't even work)

I've tried installing touchpad indicator, I've tried adding a syndaemon option from startup application, I tried the same but from the terminal, nothing works.

I Just want to disable the touchpad completely while typing, no scrolling, no moving the cursor, nothing.

Best Answer

I suggest installing libinput it has much better "disable while typing" and "palm detection" algorithms.


sudo apt install xserver-xorg-input-libinput

and restart the GUI session, or reboot.

If you need "tap to click", you can add

Option "Tapping" "true"

to the touchpad section of /usr/share/X11/xorg.conf.d/90-libinput.conf.

All options can be found on the manual page.

If you are using Ubuntu 16.04 with the -hwe-16.94 stack, you will need to install xserver-xorg-input-libinput-hwe-16.04 package instead of xserver-xorg-input-libinput.

You can check which HWE stack is installed by checking if xserver-xorg or xserver-xorg-hwe-16.04 package is installed.