Comment 6 for bug 116107

Revision history for this message
sherrardb (sburton-launchpad) wrote :

i did finally compile the latest version of the asus acpi kernel module, and that still didn't help. i did however look around on the net and i stumbled across a more streamlined solution and a little better script. based on instructions found elsewhere, i created /etc/acpi/events/asus-display-switch, containing
# /etc/acpid/events/asus-display-switch
# This is called when the user presses the display switch button (Fn-F8).
# The actual hotkey code tells the state of the switch: (LCD, CRT, Both).

event=hotkey ATKD 0000006[123]
action=/etc/acpi/asus-display-switch.sh '%e'

then i created /etc/acpi/asus-display-switch.sh, containing
#!/bin/sh
echo $1 | sed -re 's/^hotkey ATKD 0+6([1-3]) [0-9a-f]+$/\1/' > /proc/acpi/asus/disp

then i restarted acpid

for those who are interested in the details, each time you press Fn+F8, the system fires off the events 00000061 00000062 00000063 in order. that event is passed to the script where sed strips it down to the last digit and echos that into /proc/acpi/asus/disp.

enjoy