Comment 78 for bug 95444

Revision history for this message
Michael Doube (michael-doube) wrote : Re: No Screen Backlight Control; Sony Vaio with nvidia 8 series graphics

I have an SZ6 with an Intel card as well as the nVidia one; for brightness to change on both I've done this:

# /etc/acpi/events/sony-brightness-up

event=sony/hotkey SPIC 00000001 00000011
action=/etc/acpi/sonybright.sh up; HOME=/root nvclock -S +10

----------------------------------------------------
# /etc/acpi/sonybright.sh

#!/bin/bash
if [ "x$1" = "xdown" ]; then
   xbacklight -time 100 -steps 10 -dec 10 2>/tmp/sonybright.log
elif [ "x$1" = "xup" ]; then
   xbacklight -time 100 -steps 10 -inc 10 2>/tmp/sonybright.log
else
   echo >&2 Unknown argument $1
fi