From: Michael Mrozek Date: Wed, 21 Jul 2010 01:00:07 +0000 (+0200) Subject: op_power.sh: LED now dims when in low power mode (by tsh) X-Git-Tag: sz_beta3~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1584c727555ca27b94fb6d31155a31f84f979be;p=pandora-libraries.git op_power.sh: LED now dims when in low power mode (by tsh) --- diff --git a/testdata/scripts/op_power.sh b/testdata/scripts/op_power.sh index 3aa9830..465dad8 100755 --- a/testdata/scripts/op_power.sh +++ b/testdata/scripts/op_power.sh @@ -37,6 +37,7 @@ if [ "$1" -le "2" ]; then # button was pressed 1-2sec, "suspend" do kill -18 $PID #send SIGCONT done + echo 255 > /sys/class/leds/pandora\:\:power/brightness #power LED bright else #in normal mode echo 1 > /tmp/powerstate @@ -62,6 +63,7 @@ if [ "$1" -le "2" ]; then # button was pressed 1-2sec, "suspend" /etc/init.d/wl1251-init stop fi echo 0 > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness + echo 16 > /sys/class/leds/pandora\:\:power/brightness #dim power LED #echo 14 > /proc/pandora/cpu_mhz_max fi elif [ "$1" -ge "3" ]; then #button was pressed 3 sec or longer, shutdown