From f418aea6521a54f79bc1f95f034ee16c902bf856 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Fri, 18 Oct 2013 01:37:40 +0300 Subject: [PATCH] op_power: add rtc reload on resume --- recipes/pandora-system/pandora-scripts-wifi.bb | 2 +- recipes/pandora-system/pandora-scripts.bb | 2 +- recipes/pandora-system/pandora-scripts/op_power.sh | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.47.2