How to Permanently Disable the Synaptics Touchpad on Linux
In this article
Yes, you can permanently disable the Synaptics touchpad by editing Xorg configuration files or blacklisting the driver, which stops the system from loading the driver at boot.
What You’ll Need
- A Linux distribution that uses the Xorg display server (most Ubuntu, Debian, Fedora, and Arch installations do).
- Administrative (sudo) privileges.
- A terminal emulator.
- A text editor you are comfortable with (nano, vim, or gedit).
- Basic knowledge of file paths such as
/etc/X11/xorg.conf.d/and/etc/modprobe.d/.
Step‑by‑Step
-
Open a terminal and gain root access. Run
sudo -iand enter your password. Staying in a root shell prevents you from having to prependsudoto every command. -
Identify the exact driver name. Execute
xinput list. Look for a line that contains “Synaptics” – it will usually be listed asSynPS/2 Synaptics TouchPador similar. Note the name because the module to blacklist issynaptics. -
Create a custom Xorg configuration file. Run
mkdir -p /etc/X11/xorg.conf.dif the directory does not already exist. Then open a new file withnano /etc/X11/xorg.conf.d/70-synaptics.conf. -
Insert the following stanza into the file.
Section "InputClass" Identifier "disable-synaptics-touchpad" MatchIsTouchpad "on" Driver "synaptics" Option "Ignore" "true" EndSectionThis tells Xorg to ignore any device that matches the Synaptics driver. - Save and close the file. In nano, press Ctrl+O then Enter to write the file, followed by Ctrl+X to exit.
-
Blacklist the kernel module (optional but more robust). Open
/etc/modprobe.d/blacklist.confwithnano /etc/modprobe.d/blacklist.confand add the line:blacklist synaptics
This prevents the kernel from loading the Synaptics driver at boot time. -
Update initramfs (required on some distributions). Run
update-initramfs -uon Debian‑based systems ormkinitcpio -Pon Arch‑based systems. This step ensures the blacklist is applied early in the boot process. -
Reboot the system. Use
rebootor simply log out and back in if you are using a display manager that restarts X. -
Verify that the touchpad is disabled. After the system comes back, run
xinput list-props "SynPS/2 Synaptics TouchPad". If the device still appears, tryxinput disable "SynPS/2 Synaptics TouchPad"as a temporary test. -
Make a backup of the configuration. Copy the file to a safe location:
cp /etc/X11/xorg.conf.d/70-synaptics.conf ~/synaptics-backup.conf. This makes it easy to revert if you later need the touchpad.
Common Mistakes
- Editing
/etc/X11/xorg.confinstead of thexorg.conf.ddirectory. Modern distributions prefer the latter; the former may be ignored. - Forgetting to add the
Option "Ignore" "true"line, which results in the file being read but the touchpad remaining active. - Using the wrong driver name (e.g., "libinput" instead of "synaptics"). If your system uses libinput, the above stanza will have no effect.
- Neglecting to run
update-initramfsormkinitcpio. The blacklist will not take effect until the initramfs is regenerated. - Not applying
sudowhen editing files, leading to permission‑denied errors and an incomplete configuration.
Tips
- Before making any changes, run
sudo cp /etc/X11/xorg.conf.d/70-synaptics.conf /etc/X11/xorg.conf.d/70-synaptics.conf.bakto keep a copy of the original file. - If you are using a distribution that defaults to the libinput driver, you can disable the touchpad with a similar file that sets
Driver "libinput"andOption "DisableWhileTyping" "true", or simply addOption "TouchpadOff" "1". - Use
grep -i synaptics /var/log/Xorg.0.logafter reboot to confirm that the driver was ignored. - When testing, you can temporarily disable the device without a reboot by running
xinput --disable "SynPS/2 Synaptics TouchPad". This is useful for confirming that the correct device is being targeted. - If you have multiple touchpad devices (e.g., an external USB touchpad), make sure you only disable the built‑in Synaptics one. Identify each device with
xinput listbefore applying changes.
Troubleshooting
If the touchpad still works after a reboot:
- Run
xinput listagain. Verify that the device name matches the one you disabled. If it shows a different driver (e.g., libinput), you need to create a libinput‑specific stanza instead of the synaptics one. - Check the Xorg log for errors:
grep -i "synaptics" /var/log/Xorg.0.log. Look for lines that say “(EE)” which indicate the configuration was ignored. - Confirm the blacklist file is being read:
grep -i synaptics /etc/modprobe.d/blacklist.conf. If the line is missing or commented out, add it again and regenerate initramfs. - Some laptops expose the touchpad as an “i2c‑hid” device rather than a PS/2 device. In that case, the module to blacklist may be
i2c_hidinstead ofsynaptics. Addblacklist i2c_hidand update initramfs. - If you are using Wayland instead of Xorg (common on newer GNOME installations), the Xorg configuration will have no effect. Switch to an Xorg session at the login screen or use the GNOME Settings → Mouse & Touchpad → Touchpad toggle.
If the system fails to start the graphical environment after the changes:
- Switch to a virtual console with Ctrl+Alt+F3 and log in.
- Rename the custom config file:
mv /etc/X11/xorg.conf.d/70-synaptics.conf /etc/X11/xorg.conf.d/70-synaptics.conf.disabled. - Reboot with
reboot. The graphical session should start normally, and you can re‑try the steps more carefully.
Frequently Asked Questions
Will disabling the Synaptics driver affect the external mouse?
No. The driver only controls the built‑in touchpad hardware. External USB or Bluetooth mice use separate drivers and remain functional.
Can I re‑enable the touchpad without reinstalling the driver?
Yes. Remove or comment out the stanza in 70-synaptics.conf and delete the blacklist line, then regenerate initramfs and reboot.
Is there a GUI way to disable the Synaptics touchpad?
Most desktop environments provide a toggle in Settings → Mouse & Touchpad, but that only disables the device for the current session. The method described here disables it at the system level.
What if my distro uses libinput instead of synaptics?
Create a file like /etc/X11/xorg.conf.d/90-libinput.conf with Driver "libinput" and Option "TouchpadOff" "1". The rest of the steps (blacklist, reboot) remain the same.
Will blacklisting the module affect other hardware?
Only the Synaptics touchpad module is affected. Other input devices use different modules, so they continue to work normally.
Do I need to repeat these steps after a kernel update?
No. The configuration files live in /etc and persist across kernel upgrades. Only if the update replaces the driver package with a different name would you need to adjust the blacklist.