调试手段:
echo 8 > /sys/module/kernel/parameters/initcall_debug
echo 1 > /sys/kernel/debug/clk/debug_suspend
echo 8 >/sys/module/qpnp_rtc/parameters/poweron_alarm
echo 8 > /sys/module/msm_show_resume_irq/parameters/debug_mask
echo 32 > /sys/module/msm_pm/parameters/debug_mask
echo 9 > /sys/module/mpm_of/parameters/debug_mask
echo 8 > /proc/sys/kernel/printk
查看唤醒源:
cat /sys/kernel/debug/wakeup_sources
查看wakelock:
cat /sys/power/wake_lock