--- acpi/sonybright.sh 2007-05-28 13:29:52.000000000 +0200 +++ acpi-patched/sonybright.sh 2007-05-28 13:30:13.000000000 +0200 @@ -3,15 +3,14 @@ BRIGHTNESS=$(cat /proc/acpi/sony/brightness) if [ "$BRIGHTNESS" -gt 8 ]; then - BRIGHTNESS=1 + BRIGHTNESS=0 fi if [ "x$1" = "xdown" ]; then - if [ "x$BRIGHTNESS" != "x1" ]; then + if [ "x$BRIGHTNESS" != "x0" ]; then BRIGHTNESS=$(( $BRIGHTNESS - 1 )) echo $BRIGHTNESS > /proc/acpi/sony/brightness - else - [ -x /usr/bin/spicctrl ] && /usr/bin/spicctrl -b 0 + echo $BRIGHTNESS > /proc/acpi/sony/brightness_default fi # Recent nvidia Sonys have ACPI methods that do nothing. Thanks, Sony. [ -x /usr/bin/smartdimmer ] && smartdimmer -d 2>/dev/null @@ -19,6 +18,7 @@ if [ "x$BRIGHTNESS" != "x8" ]; then BRIGHTNESS=$(( $BRIGHTNESS + 1 )) echo $BRIGHTNESS > /proc/acpi/sony/brightness + echo $BRIGHTNESS > /proc/acpi/sony/brightness_default fi [ -x /usr/bin/smartdimmer ] && smartdimmer -i 2>/dev/null else