From: Grazvydas Ignotas Date: Thu, 17 Oct 2013 22:37:40 +0000 (+0300) Subject: op_power: add rtc reload on resume X-Git-Tag: sz_160~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f418aea6521a54f79bc1f95f034ee16c902bf856;p=openpandora.oe.git op_power: add rtc reload on resume --- diff --git a/recipes/pandora-system/pandora-scripts-wifi.bb b/recipes/pandora-system/pandora-scripts-wifi.bb index 75b54ab..0c93372 100644 --- a/recipes/pandora-system/pandora-scripts-wifi.bb +++ b/recipes/pandora-system/pandora-scripts-wifi.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "pandora-scripts" -PR = "r2" +PR = "r3" SRC_URI = " \ file://op_wifi.sh \ diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index aa925e1..c410dda 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "bash sed gawk grep zenity" -PR = "r147" +PR = "r148" SRC_URI = " \ file://op_paths.sh \ diff --git a/recipes/pandora-system/pandora-scripts/op_power.sh b/recipes/pandora-system/pandora-scripts/op_power.sh index f6e3fee..461ecb3 100644 --- a/recipes/pandora-system/pandora-scripts/op_power.sh +++ b/recipes/pandora-system/pandora-scripts/op_power.sh @@ -217,6 +217,10 @@ Please do not remove SD cards while pandora is suspended, doing so will corrupt done fi + # it has been reported that time sometimes drifts during suspend + # so we reload hwclock here (WizardStan) + hwclock -u -s + display_on resume_net echo $highpow > /sys/class/leds/pandora\:\:power/brightness