From c1584c727555ca27b94fb6d31155a31f84f979be Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Wed, 21 Jul 2010 03:00:07 +0200 Subject: [PATCH] op_power.sh: LED now dims when in low power mode (by tsh) --- testdata/scripts/op_power.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5