Chinaunix首页 | 论坛 | 博客
  • 博客访问: 17702
  • 博文数量: 14
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 123
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-16 09:14
文章分类

全部博文(14)

文章存档

2014年(2)

2013年(12)

我的朋友

分类: LINUX

2014-09-04 09:50:30

1. How to get available wakeup source?
  - cat /sys/kernel/debug/wakeup_sources
2. How to enable the wakeup source?
  - find /sys/devices/ -iname wakeup
  - 'echo enabled > /sys/device/.../power/wakeup' to enable the wakeup source
3. How not to suspend the serial console when put system to suspend by ' echo mem > /sys/power/state'?
  - after boot, echo N > /sys/module/printk/parameters/console_suspend
  - OR modify kernel booting param,  and add no_console_suspend.
4. How to suspend system to RAM?
- echo mem > /sys/power/state
5. How to resume system after suspend?
- depend on what wakeup source is available and enabled
- if rtc wakeup is OK, you can use 'rtcwake -m mem -s 10' to suspend the system 10 seconds to RAM, after the time expires, it rtc resume system.
- if uart is OK, you can 'echo mem > /sys/power/state', then any activity in serial console will wakeup system.
阅读(497) | 评论(0) | 转发(0) |
0

上一篇:日语中的态总结

下一篇:linux中断子系统

给主人留下些什么吧!~~