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 ++ packages/display-brightness/display-brightness_1.0.0.bb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') 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 diff --git a/packages/display-brightness/display-brightness_1.0.0.bb b/packages/display-brightness/display-brightness_1.0.0.bb index aa3c0995e9..bc46c16631 100644 --- a/packages/display-brightness/display-brightness_1.0.0.bb +++ b/packages/display-brightness/display-brightness_1.0.0.bb @@ -2,7 +2,7 @@ DESCRIPTION = "display brightness utility" AUTHOR = "Patrick Steiner " DEPENDS = "" PRIORITY = "optional" -PR = "r2" +PR = "r3" LICENSE = "GPLv2" SRC_URI = "file://display-brightness.sh" -- cgit v1.2.3