hello
I recently got an Asus EEEpc 1005ha and am in the process of outfitting it with slackware 13.0. I have been trying to setup the Fn + F1-12 hotkeys, but one is not working when it should. I successfully setup the volume hotkeys, so I know that the process I am using should work. The hotkey is to disable the mouse. I stumbled upon acpi_listener, so I was able to find the right code for the hotkey and I have a shell script that does disable the mouse when run. The problem is that the event script doesn't seem to activate the action script.
These are the event and action script that should work:
/etc/acpi/events/disable_mouse:
Code:
event=hotkey ATKD 00000037
action=/etc/acpi/actions/disable_mouse.sh
/etc/acpi/actions/disable_mouse.sh
Code:
#!/bin/sh
# Toggle tochpad disabled
GET_STATE="`synclient -l | grep Guest`"
OFF_STATE=" GuestMouseOff = 1"
ON_STATE=" GuestMouseOff = 0"
if [ "$GET_STATE" = "$ON_STATE" ]
then
synclient guestmouseoff=1
else
synclient guestmouseoff=0
fi
When run by itself, the script is succesful in stopping the mouse. The output of acpi_listen for the button is: hotkey ATKD 00000037.
The scripts that do work are:
/etc/acpi/events/volume_up:
Code:
event=hotkey ATKD 00000015
action=/etc/acpi/actions/volume_up.sh
/etc/acpi/actions/volume_up.sh:
Code:
#!/bin/sh
amixer -q set Master 5%+
From the scripts I can't see what I have done wrong, as the non-working script seems identical to the working script.
Thanks in advance.