From: Michael Mrozek Date: Thu, 26 Aug 2010 02:38:33 +0000 (+0200) Subject: op_power.sh: Fixed problem that speed always went back to 500MHz instead X-Git-Tag: sz_beta3~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68416efb0bef15ed7510cac1d628bb8a9cc39213;p=pandora-libraries.git op_power.sh: Fixed problem that speed always went back to 500MHz instead of the original speed --- diff --git a/testdata/scripts/op_power.sh b/testdata/scripts/op_power.sh index 4039c1f..4b26b55 100755 --- 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