From 86f3d937166783d7824e4cae2da720b6706f6898 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Wed, 6 Jun 2007 23:33:35 +0000 Subject: display-brightness: Always try to turn on the backlight when raising the brightness level --- packages/display-brightness/display-brightness.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/display-brightness/display-brightness.sh') diff --git a/packages/display-brightness/display-brightness.sh b/packages/display-brightness/display-brightness.sh index 5e1a0e97d4..a82c748309 100644 --- a/packages/display-brightness/display-brightness.sh +++ b/packages/display-brightness/display-brightness.sh @@ -28,6 +28,8 @@ if [ "$1" = "up" ]; then if [ $ACTUAL_BRIGHTNESS -eq $MAX_BRIGHTNESS ]; then exit 0 else + + test -x /usr/bin/bl && bl on test "$STEP" -gt "$MAX_BRIGHTNESS" -o "$STEP" -eq "$MAX_BRIGHTNESS" && STEP=1 let CURRENT_BRIGHTNESS=$ACTUAL_BRIGHTNESS+$STEP echo $CURRENT_BRIGHTNESS >> $BRIGHTNESS_FILE -- cgit v1.2.3