主题 : tiny6410 android 休眠和唤醒 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 96073
精华: 0
发帖: 63
金钱: 315 两
威望: 63 点
贡献值: 0 点
综合积分: 126 分
注册时间: 2013-09-04
最后登录: 2015-04-24
楼主  发表于: 2014-01-16 14:11

 tiny6410 android 休眠和唤醒

板子休眠可以了,但是唤醒不了,按下唤醒键(power),直接重启,这是怎么回事?有没有研究过的,指点下思路,多谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2014-01-16 14:38
能否贴一下串口的调试输出?另外,你做了什么修改了吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 96073
精华: 0
发帖: 63
金钱: 315 两
威望: 63 点
贡献值: 0 点
综合积分: 126 分
注册时间: 2013-09-04
最后登录: 2015-04-24
2楼  发表于: 2014-01-23 16:54
引用第1楼kasim于2014-01-16 14:38发表的  :
能否贴一下串口的调试输出?另外,你做了什么修改了吗?

1、在arch/arm/plat-samsung/pm.c中添加arch_initcall(s3c_pm_init);
2、设置了 u-boot 启动参数:添加了no_console_suspend
3、选中内核中配置文件的 CPU power managerment 的所有选项
4、内核中 设置K1为POwer键并具有唤醒功能(修改pm.c文件)


休眠的打印信息:
PM: Syncing filesystems ... done.
mmc0: card 0002 removed
Freezing user space processes ... (elapsed 0.05 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
Suspending console(s) (use no_console_suspend to debug)

唤醒的时候直接重启,
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2014-01-26 11:00

 回 2楼(tb273496_201) 的帖子

你用的u-boot是光盘上的?
另外,如果你在u-boot的启动参数里添加了no_console_suspend的话,那在"Suspending console(s) (use no_console_suspend to debug)"之后还有串口信息的输出才对,这样才能确认suspend流程是否走完了。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."