Package: acpi-support Version: 0.103-1 Severity: minor Tags: patch I've modified sonybright script in order to works better with my sony vaio. I have a fr215 model, maybe this changes doesn' work with newer vaio models.
The problem is that /sys/class/backlight/sony/actual_brightness has a value of "5", and it never changes its value, so the script only changes the bright value from "4" to "6". Reading from /sys/class/backlight/sony/brightness the problem is fixed (being 7 the brightness-top of my laptop). Thanks, here's the patch attached: --- sonybright.sh.orig 2007-10-10 10:10:19.000000000 +0200 +++ sonybright.sh 2007-10-10 10:14:10.000000000 +0200 @@ -4,9 +4,9 @@ modprobe sony-laptop -BRIGHTNESS=$(cat /sys/class/backlight/sony/actual_brightness) +BRIGHTNESS=$(cat /sys/class/backlight/sony/brightness) -if [ "$BRIGHTNESS" -gt 8 ]; then +if [ "$BRIGHTNESS" -gt 7 ]; then BRIGHTNESS=1 fi @@ -20,7 +20,7 @@ # Recent nvidia Sonys have ACPI methods that do nothing. Thanks, Sony. [ -x /usr/bin/nvclock ] && nvclock -S -10 2>/dev/null elif [ "x$1" = "xup" ]; then - if [ "x$BRIGHTNESS" != "x8" ]; then + if [ "x$BRIGHTNESS" != "x7" ]; then BRIGHTNESS=$(( $BRIGHTNESS + 1 )) echo $BRIGHTNESS > /sys/class/backlight/sony/brightness fi -- System Information: Debian Release: lenny/sid APT prefers experimental APT policy: (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages acpi-support depends on: ii acpid 1.0.6-3 Utilities for using ACPI power man ii dmidecode 2.9-1 Dump Desktop Management Interface ii finger 0.17-11 user information lookup program ii hdparm 7.7-1 tune hard disk parameters for high ii laptop-detect 0.13.2 attempt to detect a laptop ii libc6 2.6.1-5 GNU C Library: Shared libraries ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip ii nvclock 0.8b2-1 Allows you to overclock your nVidi ii powermgmt-base 1.29 Common utils and configs for power ii radeontool 1.5-5 utility to control ATI Radeon back ii toshset 1.72-6 Access much of the Toshiba laptop ii vbetool 0.7-1.1 run real-mode video BIOS code to a ii x11-xserver-utils 7.3+1 X server utilities acpi-support recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]