Method #1
xinput list gets the name of the touchpad... for me it's "PS/2 Generic Mouse"
then white this shell script on desktop
#!/bin/sh
DEVICE="PS/2 Generic Mouse"
if [ `xinput list-props "$DEVICE" |awk '/Device Enabled/ { print $4}'` -eq 0 ]; then
xinput --set-prop "$DEVICE" "Device Enabled" 1
else
xinput --set-prop "$DEVICE" "Device Enabled" 0
fi
Method #2
disable: modprobe -r psmouse
enable: modprobe psmouse
No comments:
Post a Comment