How to Change the Behavior of Touchscreen in Ubuntu

Abstract: Resolve touchscreen configuration issues in Ubuntu by adjusting gestures via GNOME settings or disabling devices using xinput commands.

Created: 2026-08-02 by
Adjusting your Ubuntu touchscreen behavior involves accessing the graphical settings panel for basic gestures or using the command line to disable specific input devices. For most users, navigating to Settings under the Mouse & Touchpad section allows you to toggle features like tap-to-click or natural scrolling directly without technical complexity.

Accessing Graphical Settings

The primary method for modifying touchscreen interaction is through the GNOME Settings interface, which handles most modern hardware automatically. You can open this by clicking the system menu in the top-right corner and selecting Settings. Once the window opens, locate the Mouse & Touchpad category in the left sidebar. This area controls not only physical mice but also integrated touchscreens and trackpads that share the same input stack. Within this section, look for options labeled Tap to Click or Natural Scrolling. Enabling tap-to-click allows you to select items by touching the screen rather than pressing down physically, which can reduce wear on the digitizer. Natural scrolling reverses the direction of scroll gestures so that swiping up moves content up, mimicking mobile device behavior. These changes apply immediately and persist across reboots, providing a quick way to customize the experience. If you do not see these options, it may indicate that your system is using an older display server configuration or a proprietary driver that does not expose these controls in the GUI. In such cases, you may need to verify your active session type. Open a terminal and run echo $XDG_SESSION_TYPE. If the output is wayland, the settings should be available. If it returns x11, some advanced gesture configurations might require additional tools or manual configuration files.

Using Command Line Tools for Advanced Control

For users who need more granular control, the xinput utility provides direct access to input device properties. First, identify the exact name of your touchscreen device by running xinput list. Look for entries containing words like touchscreen, pen, or stylus. Note the ID number associated with that device, as you will need it for subsequent commands. You can test if the device is responding correctly by checking its current state. Run xinput list-props [ID] replacing [ID] with the actual number found earlier. This displays all configurable properties, including click emulation, mapping, and sensitivity. To disable the touchscreen temporarily, you can use xinput disable [ID]. This is useful for troubleshooting conflicts where the touchscreen interferes with mouse usage. To make changes permanent, you cannot rely solely on xinput commands as they reset upon reboot. Instead, create a startup script or use a desktop environment autostart entry. Create a new file in ~/.config/autostart/ named disable-touchscreen.desktop and add the necessary xinput commands within a shell script called by this entry. This ensures your preferred configuration loads every time you log in.

Handling Driver Conflicts

Sometimes, touchscreen issues stem from driver conflicts rather than misconfiguration. Ubuntu typically uses the libinput driver for modern touchscreens, but older devices might still rely on evdev. You can check which driver is currently handling your device by examining the output of xinput list or looking at system logs with dmesg | grep -i input. If you suspect a driver issue, updating your kernel or installing proprietary drivers from your hardware manufacturer can resolve erratic behavior. For example, some Surface devices require specific kernel modules to function correctly. Check the official Ubuntu documentation for your specific hardware model to see if additional packages are recommended. Additionally, ensure that your system is fully updated by running sudo apt update && sudo apt upgrade to receive the latest bug fixes related to input handling. For persistent problems, consider disabling the touchscreen entirely via BIOS/UEFI settings if your laptop allows it. This is often the most reliable solution for users who prefer external mice and find the touchscreen distracting. Access your BIOS during boot by pressing F2, F10, or Delete depending on your manufacturer. Look for a section labeled Internal Pointing Device or Touchscreen and change the status to Disabled. Save changes and exit to apply them. Strange Mouse Scroll Wheel Behavior in Chrome and Firefox on Ubuntu 22.04 LTS often shares root causes with touchscreen glitches, particularly when dealing with conflicting input drivers or Wayland compositors. Similarly, Ubuntu 24.04: Mouse Cursor Changes to Hand/Finger Point on Docking Station highlights how docking stations can alter input device priorities, potentially causing touchscreen interference with mouse cursors.

Frequently Asked Questions

Why is my touchscreen unresponsive after an update?

This usually happens because a kernel update changed the driver assignment for your hardware. Rebooting into a previous kernel version from the GRUB menu can confirm if this is the cause.

Can I map specific touches to keyboard shortcuts?

Yes, tools like Touchégg allow you to define custom gestures, such as two-finger swipes for switching workspaces or pinch-to-zoom actions.

How do I revert to default touchscreen settings?

If you modified settings via xinput, simply rebooting the system will restore defaults. For GUI settings, resetting the user profile or clearing dconf settings for GNOME can help.

Is it safe to disable the touchscreen permanently?

Disabling the touchscreen via software or BIOS is safe and reversible. It prevents accidental inputs and can improve battery life on some devices by reducing background polling.

What if my touchscreen works in Windows but not Ubuntu?

This indicates a driver or kernel support issue specific to Linux. Check if your hardware manufacturer provides Linux-specific drivers or consult the Ubuntu Hardware Certification database for compatibility notes.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More