This tutorial shows how to disable the touchpad in Ubuntu with GNOME, XFCE, MATE, and any other desktop environments.
Most desktops today have an option to “disable touch while typing”. But if you always have your computer with a mouse connected and rarely use the touchpad, then it can be a good choice to disable the touchpad to avoid mis-operation.
Option 1: Disable Touchpad using System Settings
For GNOME, simply open Settings, then navigate to Mouse & Keyboard in left.
For XFCE, simply search for and launch “Mouse and Touchpad” from start menu.
MATE desktop users can search and launch the “Mouse” utility.
And KDE Plasma users may search and launch “Touchpad” from start menu.
Option 2: Single Command to Disable Touchpad (Xorg only)
If your desktop does not provide such toggle option to disable/enable touchpad, then you may run the commands below instead.
Option 3: Use udev rule to disable touchpad globally / permanently