3 . /usr/pandora/scripts/op_paths.sh
5 cur=$(cat $SYSFS_BACKLIGHT_BRIGHTNESS)
6 max=$(cat $SYSFS_BACKLIGHT/max_brightness)
8 if [ "$cur" -gt "35" ]; then
10 elif [ "$cur" -gt "20" ]; then
12 elif [ "$cur" -gt "13" ]; then
14 elif [ "$cur" -gt "5" ]; then
16 elif [ "$cur" -gt "0" ]; then
18 elif [ "$cur" -eq "0" ]; then
22 if [ "$new" -gt "$max" ]; then
26 # make sure we are not blanking (sometimes screensaver fails to unblank?)
27 echo 0 > /sys/class/graphics/fb0/blank
29 echo $new > $SYSFS_BACKLIGHT_BRIGHTNESS