[LUGSB] Disabling touchpad on USB mouse connect

Nicholas Lopez nlopez at ic.sunysb.edu
Wed Oct 3 12:30:36 EDT 2007


I just got this working on my Dell XPS M1210, which has a synaptics
touchpad. My solution requires udev and synclient, and works like a
charm.

File: /etc/X11/xorg.conf ---

Section "InputDevice"
  Identifier    "touchpad"
  Driver        "synaptics"
# ...
  Option        "SHMConfig"     "on"
# ...
EndSection

---

File: /etc/udev/rules.d/85-synaptics.rules ---

KERNEL=="mouse*", ACTION=="add", RUN+="/usr/bin/synclient TouchpadOff=1"
KERNEL=="mouse*", ACTION=="remove", RUN+="/usr/bin/synclient TouchpadOff=0"

---

Notes: If you have some other application managing your touchpad it
may cause conflicts. I know ksynaptics will periodically poll the
TouchpadOff setting if you've told it to keep your touchpad on and
will turn it on if it's off, thus defeating the purpose of using this
udev rule. I suggest just not running things like ksynaptics or
gsynaptics and setting the options in xorg.conf or using synclient in
scripts instead.


More information about the lugsb mailing list