To activate the screen brightness keys first backup asus-brn-down.sh
Code:
sudo cp /etc/acpi/asus-brn-down.sh /etc/acpi/asus-brn-down.sh.backup
Then open asus-brn-down.sh with Gedit.
Code:
sudo gedit /etc/acpi/asus-brn-down.sh
Erase everything and paste the following inside.
Code:
#!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
. /usr/share/acpi-support/key-constants
acpi_fakekey $KEY_BRIGHTNESSDOWN
# added per http://forum.notebookreview.com/showpost.php?p=5665108&postcount=1235
#brightness=`echo $3 | sed 's/0000002//'`
#setpci -s 00:02.0 F4.B=${brightness}f
# added per mailing-list post
brightness=$((0x`setpci -s 00:02.0 F4.B`-16));
if [ $brightness -lt 0 ] ; then
brightness=1;
fi
setpci -s 00:02.0 F4.B=`printf '%x' $brightness`;
Save and close.
Now backup asus-brn-up.sh
Code:
sudo cp /etc/acpi/asus-brn-up.sh /etc/acpi/asus-brn-up.sh.backup
Open asus-brn-up.sh with Gedit.
Code:
sudo gedit /etc/acpi/asus-brn-up.sh
Erase everything and paste the following inside.
Code:
#!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
. /usr/share/acpi-support/key-constants
# DeviceConfig
if [ "$model" != "701" ] ; then
# On an Eee PC (ASUSTeK model 701) the keys in the range handled by this
# script have entirely different meanings. They are handled in separate
# scripts.
acpi_fakekey $KEY_BRIGHTNESSUP
fi
# added per http://forum.notebookreview.com/showpost.php?p=5665108&postcount=1235
#brightness=`echo $3 | sed 's/0000001//'`
#setpci -s 00:02.0 F4.B=${brightness}f
# added per mailing list post
# in /etc/asus_brn_up.sh
brightness=$((0x`setpci -s 00:02.0 F4.B`+16));
if [ $brightness -gt $((0xff)) ] ; then
brightness=$((0xff));
fi
setpci -s 00:02.0 F4.B=`printf '%x' $brightness`;
Save and close.
Now you need to modify grub:
Code:
sudo gedit /etc/default/grub
Change your "GRUB_CMDLINE_LINUX_DEFAULT=" to the following:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="i915.powersave=0 acpi_backlight=vendor vga=792 quiet splash""i915.powersave=0 acpi_backlight=vendor vga=792 quiet splash"
Now update your grub.cfg file:
Reboot to activate the screen brightness keys.
Bookmarks