synclient TouchpadOff=1 works, only if "Disable Touchpad while typing"
is disabled.
I make this script that disable, and enable touchpad automaticly:
#! /bin/bash
# Depende de libnotify-bin
notify=0 # Deshabilita la notificacion en el arranque
# Sincroniza synclient con gconf
if [ $(gconftool-2 --get /desktop/gnome/peripherals/mouse/touchpad_enabled) =
true ]; then
synclient TouchpadOff=0
elif [ $(gconftool-2 --get /desktop/gnome/peripherals/mouse/touchpad_enabled) =
false ]; then
synclient TouchpadOff=1
fi
while [ 1 ]
do
if [ $(gconftool-2 --get
/desktop/gnome/peripherals/mouse/touchpad_auto-disable) = true ]; then
if [ $(gconftool-2 --get
/desktop/gnome/peripherals/mouse/touchpad_enabled) = true ] && [ -e
/dev/input/by-id/*event-mouse ]; then # Se enchufa un Ratón
gconftool-2 --type boolean --set
/desktop/gnome/peripherals/mouse/touchpad_enabled false
synclient TouchpadOff=1
if [ $notify = 1 ]; then
notify-send --icon=mouse "Touchpad
Deshabilitado" "Se ha detectado un Ratón externo"
fi
elif [ $(gconftool-2 --get
/desktop/gnome/peripherals/mouse/touchpad_enabled) = false ] && [ ! -e
/dev/input/by-id/*event-mouse ]; then # Se desenchufa un Ratón
gconftool-2 --type boolean --set
/desktop/gnome/peripherals/mouse/touchpad_enabled true
synclient TouchpadOff=0
if [ $notify = 1 ]; then
notify-send --icon=mouse "Touchpad Habilitado"
"Se ha desconectado el Ratón externo"
fi
fi
fi
notify=1 # Habilita las notificaciones
sleep 5 # Periodo de refresco en segundos
done
--
"enable touchpad" setting has no effect in karmic
https://bugs.launchpad.net/bugs/404638
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