How to Completely Disable the Touchpad on an Ubuntu Linux Laptop

If you use an external USB mouse or a Bluetooth mouse with your Ubuntu Linux laptop, the built-in trackpad often becomes a nuisance. Accidental palm brushes against the touchpad while typing can cause the cursor to jump across the screen, highlight text, or click away from the active window.

While some laptops include a physical hardware button or a function key (like Fn+F7) to disable the touchpad, many modern devices lack this feature. If your laptop doesn’t have a hardware switch, you can completely disable the touchpad directly from the Ubuntu operating system settings.

How to Turn Off the Touchpad via System Settings

The easiest way to disable the touchpad on modern versions of Ubuntu (which use the GNOME desktop environment) is through the standard settings menu.

  1. Click on the system tray in the top right corner of your screen (where the battery and Wi-Fi icons are located).
  2. Click on the Settings (gear icon) to open the main control panel.
  3. In the left-hand sidebar, scroll down and click on Mouse & Touchpad.
  4. Under the “Touchpad” section, look for the main toggle switch labeled Touchpad.
  5. Click the switch to turn it to the Off position.

Your trackpad will immediately stop responding to touch input. To re-enable it later, simply plug your mouse back in, navigate to this menu, and toggle the switch back on.

How to Disable the Touchpad via Terminal (xinput)

If the graphical settings menu does not work for your specific hardware, or if you are using a different desktop environment (like XFCE or KDE), you can use the command line.

  1. Open your terminal (Ctrl+Alt+T).
  2. Run the following command to list all input devices: xinput list
  3. Look under the “Virtual core pointer” section and find your touchpad (it might be named “SynPS/2 Synaptics TouchPad” or “ELAN Touchpad”). Note the id number next to it (e.g., id=14).
  4. To disable the device, run the following command (replace 14 with your actual ID):

xinput disable 14

To turn it back on, run the command again, replacing “disable” with “enable”:

xinput enable 14

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.