Skip to main content
100%

Disable touchpad on mouse detection on Ubuntu 14.04.04

✓ Published0🌍 Public
Aadkdev
Last edited May 27, 2016
Created on May 27, 2016

This example shows a udev rules configuration that automatically disables the touchpad when an external mouse is connected and re-enables it when the mouse is removed. The code defines two rules in `/etc/udev/rules.d/01-touchpad.rules`, using the `SUBSYSTEM`, `KERNEL`, `ACTION`, and `RUN` parameters to trigger the `synclient` command on mouse add or remove events. It sets the `TouchpadOff` property to 1 or 0, and explicitly passes the `DISPLAY` and `XAUTHORITY` environment variables to ensure the command reaches the correct X session. The rules follow the Arch Linux wiki’s Touchpad Synaptics documentation.

AI-generated description

Similar vizzes