查看内核支持的休眠方式:
cat /sys/power/state
休眠:
echo mem > /sys/power/state
唤醒:
echo on > /sys/power/state
驱动中对应的接口是 register_early_suspend
查看内核支持的休眠方式:
cat /sys/power/state
休眠:
echo mem > /sys/power/state
唤醒:
echo on > /sys/power/state
驱动中对应的接口是 register_early_suspend