op_power: make sure powersave is off when turning on display
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_bright_down.sh
index 2e79385..ca66d64 100644 (file)
@@ -1,5 +1,8 @@
 #!/bin/bash
-cur=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness);
+
+. /usr/pandora/scripts/op_paths.sh
+
+cur=$(cat $SYSFS_BACKLIGHT_BRIGHTNESS)
 if [ "$cur" -gt "40" ]; then
    new=$(($cur-10))
 elif [ "$cur" -gt "30" ]; then 
@@ -16,4 +19,4 @@ if [ "$new" -lt "3" ]; then
    new=0
 fi
 
-echo $new > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness
+echo $new > $SYSFS_BACKLIGHT_BRIGHTNESS