device/generic/x86
Revision | 0cfa9f516af3255f9e63a71caf680c7602e73ab5 (tree) |
---|---|
Zeit | 2014-09-03 18:26:57 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
power: disable wakeup source from rtc
Avoid the rtc waking up the system periodically.
@@ -135,6 +135,10 @@ function init_hal_lights() | ||
135 | 135 | |
136 | 136 | function init_hal_power() |
137 | 137 | { |
138 | + for p in /sys/class/rtc/*; do | |
139 | + echo disabled > $p/device/power/wakeup | |
140 | + done | |
141 | + | |
138 | 142 | # TODO |
139 | 143 | case "$PRODUCT" in |
140 | 144 | *) |