Eu consertei isso instalando acpid
( sudo apt-get install acpid
).
Eu então criei 2 arquivos:
/etc/acpi/events/asus-brightness
:
event=hotkey ASUS010:00 0000002[0-9a-f]
action=/etc/acpi/brightness.sh %e
/etc/acpi/brightness.sh
:
#!/bin/bash
test -f /usr/share/acpi-support/key-constants || exit 0
export DISPLAY=:0
PREV=$(cat /etc/acpi/prevbrightness)
if [[ "0x$3" -eq "0x20" || "0x$3" -lt "0x$PREV" ]] ; then
xdotool key XF86MonBrightnessDown
elif [[ "0x$3" -eq "0x2F" || "0x$3" -gt "0x$PREV" ]] ; then
xdotool key XF86MonBrightnessUp
else
echo >&2 Unknown argument $1
fi
echo $3 > /etc/acpi/prevbrightness
Agora, eu corri echo 00000020 > /etc/acpi/prevbrightness
como root ( sudo su
first)
Os controles de brilho agora funcionam!