Brightness controls fixed when using the intel driver.
Well, sortta. I found this in Xorg log:
[ 1574.285] (II) intel(0): found backlight control interface /sys/class/backlight/acpi_video1
The problem is that the control is actually acpi_video0 for the intel chip in this notebook.
So, I wrote this script that I call with my window manager:
Code:
#!/bin/sh
CUR=`cat /sys/class/backlight/acpi_video0/actual_brightness`
MAX=`cat /sys/class/backlight/acpi_video0/max_brightness`
if [ "$1" = "up" ]; then
if [ $CUR -eq $MAX ]; then
exit 0
fi
NEW=$(($CUR + 1))
echo $NEW >/sys/class/backlight/acpi_video0/brightness
else
if [ $CUR -eq 0 ]; then
exit 0
fi
NEW=$(($CUR - 1))
echo $NEW >/sys/class/backlight/acpi_video0/brightness
fi
Also, defined the keys using Xmodmap:
keycode 101 = XF86KbdBrightnessDown
keycode 212 = XF86KbdBrightnessUp
You'll need call the script with sudo or deal with the permissions some other way.