summaryrefslogtreecommitdiff
path: root/packages/display-brightness
diff options
context:
space:
mode:
Diffstat (limited to 'packages/display-brightness')
-rw-r--r--packages/display-brightness/display-brightness.sh9
-rw-r--r--packages/display-brightness/display-brightness_1.0.0.bb2
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/display-brightness/display-brightness.sh b/packages/display-brightness/display-brightness.sh
index 8141866858..4e706e1e75 100644
--- a/packages/display-brightness/display-brightness.sh
+++ b/packages/display-brightness/display-brightness.sh
@@ -7,10 +7,13 @@
STEP=5
-MAX_BRIGHTNESS=`cat /sys/class/backlight/*/max_brightness`
-ACTUAL_BRIGHTNESS=`cat /sys/class/backlight/*/actual_brightness`
-BRIGHTNESS_FILE="/sys/class/backlight/*/brightness"
+DRIVER="`ls /sys/class/backlight/|head -1`"
+MAX_BRIGHTNESS=`cat /sys/class/backlight/$DRIVER/max_brightness`
+ACTUAL_BRIGHTNESS=`cat /sys/class/backlight/$DRIVER/actual_brightness`
+BRIGHTNESS_FILE="/sys/class/backlight/$DRIVER/brightness"
+echo "max / current"
+echo "$MAX_BRIGHTNESS / $ACTUAL_BRIGHTNESS"
if [ ! -n "$1" ]; then
exit 0
fi
diff --git a/packages/display-brightness/display-brightness_1.0.0.bb b/packages/display-brightness/display-brightness_1.0.0.bb
index e275b3f8bc..1919f98231 100644
--- a/packages/display-brightness/display-brightness_1.0.0.bb
+++ b/packages/display-brightness/display-brightness_1.0.0.bb
@@ -3,7 +3,7 @@ AUTHOR = "Patrick Steiner <patrick.steiner@a1.net>"
MAINTAINER = "Patrick Steiner <patrick.steiner@a1.net>"
DEPENDS = ""
PRIORITY = "optional"
-PR = "r0"
+PR = "r1"
LICENSE = "GPLv2"
SRC_URI = "file://display-brightness.sh"