Hey,
I made a generic version inspired by the appletouch howto and by the script
/usr/share/doc/xserver-xorg-input-synaptics/script/usbmouse
from xserver-xorg-input-synaptics
udev rule: /etc/udev/rules.d/85-synaptics.rules
# automaticly disable touchpad when usb mouse present
# (c) 2008 D. Jansen < d (dash) jansen (at) gmx (dot) de >
# published under the GNU GPL 3.0, other licenses on request
SUBSYSTEM=="usb", SYSFS{product}=="*Mouse*"
ACTION=="add", SUBSYSTEM=="input", ID_CLASS="mouse",
RUN+="/home/djtm/scripts/touchpad-udev"
ACTION=="remove", SUBSYSTEM=="input", ID_CLASS="mouse",
RUN+="/home/djtm/scripts/touchpad-udev"
and the script /home/djtm/scripts/touchpad-udev
#!/bin/bash
# automaticly disable touchpad when usb mouse present
# (c) 2008 D. Jansen < d (dash) jansen (at) gmx (dot) de >
# published under the GNU GPL 3.0, other licenses on request
SC=`which synclient`
GREP=`which grep`
# Touchpad disable for udev
if [ "`$GREP -e Mouse /proc/bus/input/devices `" ]; then
$SC TouchpadOff=1
else
$SC TouchpadOff=0
fi
# published under the GNU GPL 3.0, other licenses on request
--
The Synaptic Touchpad is not disabled automatically when an external mouse is
attached.
https://bugs.launchpad.net/bugs/116919
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs