git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f38c3f
)
op_power.sh: LED now dims when in low power mode (by tsh)
author
Michael Mrozek
<EvilDragon@openpandora.de>
Wed, 21 Jul 2010 01:00:07 +0000
(
03:00
+0200)
committer
Michael Mrozek
<EvilDragon@openpandora.de>
Wed, 21 Jul 2010 01:00:07 +0000
(
03:00
+0200)
testdata/scripts/op_power.sh
patch
|
blob
|
history
diff --git
a/testdata/scripts/op_power.sh
b/testdata/scripts/op_power.sh
index
3aa9830
..
465dad8
100755
(executable)
--- 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