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
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 /etc/acpi/ sonybright. sh up; HOME=/root nvclock -S +10
action=
------- ------- ------- ------- ------- ------- ------- --- sonybright. sh
# /etc/acpi/
#!/bin/bash sonybright. log sonybright. log
if [ "x$1" = "xdown" ]; then
xbacklight -time 100 -steps 10 -dec 10 2>/tmp/
elif [ "x$1" = "xup" ]; then
xbacklight -time 100 -steps 10 -inc 10 2>/tmp/
else
echo >&2 Unknown argument $1
fi