I had this and sorted it as follows. It can vary with your laptop's dsdt but I have the file
/sys/devices/virtual/backlight/acpi_video0/brightness
10 = full brightness - 0 = zero brightness. I have this
Quote:
#!/bin/sh
BRIGHTNESS = { cat /sys/devices/virtual/backlight/acpi_video0/brightness}
BRIGHTNESS = [ $BRIGHTNESS + 1 ]
echo -n $BRIGHTNESS > /sys/devices/virtual/backlight/acpi_video0/brightness
|
You need an event in /etc/acpi/events, like this
Quote:
# /etc/acpi/events/video_brightnessup
event=video.* 00000086
action=/etc/acpi/video_brightnessup.sh
|
To name the event, restart acpid with the -l option (log events to syslog) and name each event from the log entry for that event. I grabbed a set of debian and a set of fedora scripts, and hacked my own. They had the hard work done. Nobody else hands out decent scripts to my knowledge