OSDN Git Service

power: disable wakeup source from rtc
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Sep 2014 09:26:57 +0000 (17:26 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Sep 2014 09:26:57 +0000 (17:26 +0800)
Avoid the rtc waking up the system periodically.

init.sh

diff --git a/init.sh b/init.sh
index 13f592d..e517176 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -135,6 +135,10 @@ function init_hal_lights()
 
 function init_hal_power()
 {
+       for p in /sys/class/rtc/*; do
+               echo disabled > $p/device/power/wakeup
+       done
+
        # TODO
        case "$PRODUCT" in
                *)