Problem#
Maus ist angeschlossen und das Touchpad nerft wie also deaktivieren?Lösung#
Xorg muss SHM erlauben dafür neuerdings
# /usr/share/X11/xorg.conf.d/50-synaptics.conf
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
#shm aktivieren
#http://wiki.ubuntuusers.de/Touchpad#SHMConfig
Option "SHMConfig" "on"
MatchDevicePath "/dev/input/event*"
EndSection
Dann noch die Udev regel hier schau ich nur auf ein anlegen einer mouse
# /etc/udev/rules.d/01-touchpad.rules ACTION=="add", KERNEL=="mouse?", RUN+="/usr/local/bin/touchDisable.sh 1" ACTION=="remove", KERNEL=="mouse?" , RUN+="/usr/local/bin/touchDisable.sh 0"
Kleines Brücke weil root das Touchpad nicht abschalten kann
#!/bin/bash
# /usr/local/bin/touchDisable.sh
# für jeden Nutzer nun das Touchpad abschalten
# da i.d.r nur ein Xserver an ist Match auf den User der angemeldet ist
# ich als root treffe wegen grep auch mich selber ist aber nicht so
# wichtig also einfach
# für display :0 alles abschalten
# display :0 ist meine ich sogar überflüssig, aber so stehts im moment auf dem Laptop
for a in `ps -efa | grep xserver | awk '{print $1}'`; do
logger "sudo -u$a DISPLAY=:0 synclient TouchpadOff=$1"
sudo -u$a DISPLAY=:0 synclient TouchpadOff=$1
done
Add new attachment
Only authorized users are allowed to upload new attachments.