Comment 50 for bug 418282

Revision history for this message
johan (boeckx-johan) wrote :

HI, I have a N61jv with the same problem : I changed the settings as proposed, but the fnctF9 enable/disable touchpad, still doesnt work.

sudo acpi_listen
[sudo] password for xxxxx:
hotkey ATKD 0000006b 00000004

cat asus-touchpad
# /etc/acpi/events/asus-touchpad
# This is called when the user presses the touchpad button and calls
# /etc/acpi/asus-touchpad.sh for further processing.

event=hotkey (ATKD|HOTK) 0000006b
action=/etc/acpi/asus-touchpad.sh

/etc/acpi$ cat asus-touchpad.sh
#!/bin/sh
[ -f /usr/share/acpi-support/state-funcs ] || exit 0

. /usr/share/acpi-support/power-funcs

# if this is the right behavior, then this should be moved out of acpi-support
# to hal (or whatever is replacing hal for such events)
getXconsole

XINPUT="ImPS/2 Logitech Wheel Mouse"

# get the current state of the touchpad
tpstate=`xinput list-props "$XINPUT" | grep "Device Enabled" | cut -d: -f2`

# if getting the status failed, exit
test -z $tpstate && exit 1

if [ $tpstate -eq 0 ]; then
   xinput set-int-prop "$XINPUT" "Device Enabled" 8 1
else
   xinput set-int-prop "$XINPUT" "Device Enabled" 8 0
fi

any solutions ?

greetz,
Johan