[Debian-eeepc-devel] eeepc-acpi-scripts touchpad and blank screen toggles
gajm
lacunoso at gmail.com
Sun Oct 24 11:13:35 UTC 2010
Hi, there seems to be some problem with eeepc-acpi-scripts, on Squeeze
under Gnome environment, with the touchpad and the blank screen toggles.
They both get lost after a short time.
Not sure about this, but it seems to be related to
gnome-settings-daemon.
For the touchpad, the “synclient TouchpadOff=1” command is not working
anymore.
You can reset it just typing some letter on the keyboard.
A possible work around could be the use of xinput.
An example script that seems to work fine:
#!/bin/sh
XINPUTNUM=`xinput list | grep [Tt]ouch[Pp]ad | sed -n -e's/.*id=\([0-9]\+\).*/\1/p'`
# get current state of the touchpad
TPSTATUS=`xinput list-props $XINPUTNUM | awk '/Device Enabled/ { print $NF }'`
if [ $TPSTATUS = 0 ]; then
xinput set-int-prop $XINPUTNUM "Device Enabled" 8 1
elif [ $TPSTATUS = 1 ]; then
xinput set-int-prop $XINPUTNUM "Device Enabled" 8 0
fi
Same for the blank screen command, “xset dpms force off”, the monitor
turns on again after a short time.
Haven’t found a nice way to work it around, the only solution I found is
using vbetool.
#!/bin/sh
if [ ! -e /tmp/vbe.tmp ]; then
touch /tmp/vbe.tmp
vbetool dpms off
elif [ -e /tmp/vbe.tmp ]; then
rm /tmp/vbe.tmp
vbetool dpms on
fi
Would be nice to see this fixed for the release of Squeeze, even better
if with the new version of eeepc-acpi-scripts on which Luca Niccoli is
working.
Cheers
More information about the Debian-eeepc-devel
mailing list