← Back to team overview

asus-ul30 team mailing list archive

Re: [Asus UL80VT] Touchpad acpi event

 

ccing to the asus u/ul series mailing list

On Fri, Nov 12, 2010 at 9:37 AM, Jakub Wojtysiak <schizunio@xxxxxxxxx> wrote:
> Hi. I have a Ubuntu 10.10 installation, and tried to get to wrok the
> Fn+F9 combination, to disable/enable touchpad.
> I had checked the event by acpi_listen, getting:
>
> $ acpi_listen
> hotkey ATKD 0000006b 00000000
> hotkey ATKD 0000006b 00000001
> hotkey ATKD 0000006b 00000002
> hotkey ATKD 0000006b 00000003
> hotkey ATKD 0000006b 00000004
> ...
>
> so, my /etc/acpi/events/asus-touchpad is:
>
> event=hotkey (ATKD|HOTK) 0000006b
> action=/etc/acpi/asus-touchpad.sh
>
> but.. no effect on pressing Fn+F9. script asus-touchpad.sh works
> (enable/disable touchpad) when I run it from console etc.
> I also tried to change the event to 0000006b.* or else.. what could be
> wrong? acpi events should work, they work for volume, brightness and
> WLAN control..
>
> here's the script asus-touchpad.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="ETPS/2 Elantech Touchpad"
>
> # 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
> --
> This message was sent from Launchpad by
> Jakub Wojtysiak (https://launchpad.net/~schizunio)
> to each member of the ASUS U/UL Series laptop team using the "Contact this
> team" link on the ASUS U/UL Series laptop team page
> (https://launchpad.net/~asus-ul30).
> For more information see
> https://help.launchpad.net/YourAccount/ContactingPeople
>