The Ghost in the Machine: Fixing Ubuntu Touchpad Teleporting and Jitter
Erratic cursor behavior—often described as ghosting (clicks happening on their own) or teleporting (the cursor jumping across the screen)—is a significant pain point for laptop users on Ubuntu 24.04 LTS and the latest 25.10 releases. While users often suspect a virus, the reality is usually a conflict between the modern libinput driver and high-precision hardware, or physical environmental factors like static electricity and grounding issues. This tutorial provides a systematic approach to filtering out "noise" in your touchpad data and recalibrating the Linux input stack to ignore these phantom signals.
Table of Content
- Purpose of Input Sanitization
- Scenarios: Hardware vs. Software Jitter
- Step-by-Step: Calibrating Libinput and Drivers
- Best Results: Tuning for Specific Vendors
- FAQ
- Disclaimer
Purpose
The objective is to achieve Cursor Stability by reducing the "fuzz" or sensitivity of the sensor. When Ubuntu's libinput receives data that it deems impossible (e.g., a finger moving 50mm in 1ms), it usually discards it, but if the signal is borderline, you get the "teleport" effect.
- Fuzz Filtering: Telling the kernel to ignore microscopic movements that look like electrical noise.
- Palm Detection: Ensuring the edge of your hand doesn't trigger "ghost" clicks while typing.
- Module Reset: Clearing the state of the
psmouseori2c_hiddrivers after a "ghosting" event.
Use Case
Apply these fixes if you encounter:
- The "Jump" Effect: You are moving the cursor smoothly, and it suddenly snaps to the corner of the screen.
- Phantom Clicks: Windows open or close on their own while your hands are nowhere near the touchpad.
- Wake-from-Sleep Jitter: The touchpad works fine until the laptop is suspended and resumed.
Step-by-Step
1. Identify the Hardware and Driver
Before fixing, you must know which driver is handling your input.
- Open Terminal and run:
xinput list(for X11) orsudo libinput list-devices(for Wayland). - Locate your touchpad (e.g., "AlpsPS/2 ALPS DualPoint" or "ELAN0001:00").
- Check if
libinputis active. Most modern Ubuntu versions (24.04+) have moved away from the oldsynapticsdriver.
2. Apply a "Fuzz" Override
If your cursor jitters or teleports, the hardware might be reporting too much "noise." You can force a dead-zone override.
- Install the tools:
sudo apt install libinput-tools. - Run the measure tool:
sudo libinput measure fuzz. Follow the prompts to move your finger. - The tool will suggest a hwdb override file. Usually, it creates a file in
/etc/udev/hwdb.d/99-touchpad-fuzz-override.hwdb. - Apply the change:
sudo systemd-hwdb update && sudo udevadm trigger.
3. Toggle "Disable While Typing" and Palm Rejection
Ghosting is often just a palm touching the pad.
- In Settings > Mouse & Touchpad, ensure Disable While Typing is ON.
- If using Wayland, you can further tune this via GNOME Tweaks (
sudo apt install gnome-tweaks) under the "Keyboard & Mouse" tab.
4. Reset the Driver Module (Emergency Fix)
If the cursor starts teleporting uncontrollably, you can "power cycle" the software driver without rebooting.
- Force remove the mouse driver:
sudo modprobe -r psmouse - Re-insert it:
sudo modprobe psmouse - If your laptop uses I2C (common in modern Dells/Lenovos):
sudo modprobe -r i2c_hid_acpi && sudo modprobe i2c_hid_acpi.
Best Results
| Symptoms | Hardware Model | Best Fix Strategy |
|---|---|---|
| Teleporting / Jumping | Dell / HP (Alps/Elan) | Apply libinput measure fuzz override. |
| Ghost Clicks | Generic / Lenovo | Enable "Disable While Typing" and check grounding. |
| Jitter on Battery | All Models | Check charger grounding (Common interference issue). |
| Frozen after Suspend | Beelink / Mini Laptops | Automate modprobe psmouse reset on wake. |
FAQ
Could it be my power adapter?
Yes. A common cause of "ghosting" and "teleporting" in Linux is EMI (Electromagnetic Interference) from non-grounded chargers. If the issue disappears when you unplug the power cord, the problem is electrical, not software.
Why does Wayland feel different from Xorg?
Wayland uses libinput exclusively, while Xorg can use either libinput or evdev/synaptics. If your touchpad teleports on Wayland, try logging into an Ubuntu on Xorg session to see if the older driver handles the hardware noise better.
Does cleaning the touchpad help?
Significantly. Oils or moisture on the surface can bridge the capacitive sensors, leading the driver to believe multiple fingers are touching the pad simultaneously, which triggers the "teleport" response.
Disclaimer
Overriding hardware database (hwdb) files involves low-level system changes. If misconfigured, your touchpad may stop responding entirely. Always have a USB mouse available as a backup. This guide is based on the Ubuntu 24.04/25.10 environment as of early 2026.
Tags: Ubuntu, TouchpadFix, Libinput, LinuxTroubleshooting
