Quote:
Originally Posted by dive
Fn keys are usually controlled through acpi events if the hardware doesn't do it alone.
Check out /etc/acpi/acpi_handler.sh
|
Thanks dive
It looks as if Fn+<whatever> does not create ACPI events.
In the default installation, the /etc/acpi/events directory has a single file, defaults, which looks as if it simply passes all events to acpi_handler.sh:
Code:
root@CW9:~# cat /etc/acpi/events/default | grep -E -v '^#|^$'
event=.*
action=/etc/acpi/acpi_handler.sh %e
The as-installed acpi_handler.sh reports everything except the power button as "not defined":
Code:
root@CW9:~# cat /etc/acpi/acpi_handler.sh | grep -E -v '^#|^$'
IFS=${IFS}/
set $@
case "$1" in
button)
case "$2" in
power) /sbin/init 0
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined"
;;
esac
Searching the /var/log/* files for such reports shows very few and none associated with Fn+ keys:
Code:
root@CW9:/var/log# grep 'ACPI group' * | sed 's/.*logger: //' | sort | uniq
ACPI group ac_adapter / action ADP1 is not defined
ACPI group battery / action BAT1 is not defined
ACPI group processor / action CPU0 is not defined
ACPI group processor / action CPU1 is not defined