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:
31cf406
)
op_power.sh: Fixed problem that speed always went back to 500MHz instead
author
Michael Mrozek
<EvilDragon@openpandora.de>
Thu, 26 Aug 2010 02:38:33 +0000
(
04:38
+0200)
committer
Michael Mrozek
<EvilDragon@openpandora.de>
Thu, 26 Aug 2010 02:38:33 +0000
(
04:38
+0200)
of the original speed
testdata/scripts/op_power.sh
patch
|
blob
|
history
diff --git
a/testdata/scripts/op_power.sh
b/testdata/scripts/op_power.sh
index
4039c1f
..
4b26b55
100755
(executable)
--- a/
testdata/scripts/op_power.sh
+++ b/
testdata/scripts/op_power.sh
@@
-10,6
+10,7
@@
if [ "$1" -le "2" ]; then # button was pressed 1-2sec, "suspend"
fi
if [ $powerstate -eq "1" ]; then
#in lowpower mode
+ oldspeed=$(cat /tmp/oldspeed)
if [ $oldspeed -gt 14 ] && [ $oldspeed -le 900 ]; then
echo $oldspeed > /proc/pandora/cpu_mhz_max
else