From: Michael Mrozek Date: Wed, 8 Sep 2010 00:18:11 +0000 (+0200) Subject: op_lid.sh: Disabled blanking the LCD, since that lead to performance X-Git-Tag: sz_beta3~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939eeb5b37ebe2f042bedab641ccddfefcac0c27;p=pandora-libraries.git op_lid.sh: Disabled blanking the LCD, since that lead to performance issues. --- diff --git a/testdata/scripts/op_lid.sh b/testdata/scripts/op_lid.sh index 5f78072..757abcd 100755 --- a/testdata/scripts/op_lid.sh +++ b/testdata/scripts/op_lid.sh @@ -10,10 +10,10 @@ if [ ! -e /tmp/powerstate ]; then #do nothing when in powersave mode echo $brightness > /tmp/oldbright fi echo 0 > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness - echo 1 > /sys/devices/platform/omapfb/graphics/fb0/blank + #echo 1 > /sys/devices/platform/omapfb/graphics/fb0/blank elif [ "$1" = "0" ]; then # lid was opened - echo 0 > /sys/devices/platform/omapfb/graphics/fb0/blank - sleep 0.1s # looks cleaner, could flicker without + #echo 0 > /sys/devices/platform/omapfb/graphics/fb0/blank + #sleep 0.1s # looks cleaner, could flicker without maxbright=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/max_brightness) oldbright=0 if [ -f /tmp/oldbright ]; then