Categories: TutorialsUbuntu

How To Disable Touch Screen on Ubuntu 22.04

This guide outlines the steps to disable your Ubuntu device’s touchscreen, ideal for resolving issues or enabling mouse-and-keyboard preference.

Find Your Touchscreen ID

Start by opening a terminal (Ctrl+Alt+T). Enter the command xinput list and press Enter. This displays all input devices on your system.

Locate the entry resembling your touchscreen (e.g., “Synaptics Touchscreen” or “ELAN Touchscreen” ). Jot down the associated ID number.

Read: How to use the screen command on Linux to keep your remote task running when the connection drops

Sponsored
Disable Your Touchscreen

With the touchscreen ID noted, run the following command in your terminal, replacing with the actual number:

xinput disable

This command directly disables the specified input device, in this case, your touchscreen.

Sponsored

Lasting Touchscreen Disable

The previous steps temporarily disable the touchscreen. For permanence, create a startup script:

  1. Open Terminal: Press Ctrl+Alt+T.
  2. Create Script: Run sudo nano /etc/X11/Xsession.d/99-disable-touchscreen.sh (enter password). This opens a text editor with admin rights.
  3. Add Script Content: Paste the following, replacing with your touchscreen ID:

#!/bin/bash

xinput disable

  1. Save & Exit: Press Ctrl+O, then Ctrl+X.
  2. Make Executable: Run sudo chmod +x /etc/X11/Xsession.d/99-disable-touchscreen.sh.

Your touchscreen will now be disabled on every boot.

Remember: Replace accurately to ensure the correct device is disabled.

 

The post How To Disable Touch Screen on Ubuntu 22.04 appeared first on net2.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

2 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

3 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

3 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

4 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

4 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

6 days ago