【发布时间】:2012-11-26 20:38:40
【问题描述】:
目前我正在开发一个在嵌入式平台 (i.MX53) 上运行的 Qt 应用程序。
我的问题是,当这个应用程序运行时,我无法让我的系统暂停。
我正在使用“busybox rtcwake”来管理挂起功能,我只想从我的 Qt 应用程序中运行它,因为这个应用程序是我系统的主要原因,但我似乎无法让系统进入挂起状态调用 rtc 唤醒时:
//From Qt app.
Qstring str = "/bin/busybox rtcwake -d /dev/rtc0 -m standby -s 15";
system(str.toAscii());
这只是给我这个消息:
2012 年 6 月 24 日 20:59:00 从“待机”唤醒
PM:同步文件系统……完成。
应该是这样的:
**这不是代码,但不知何故我无法提交,因为 SO 说它是代码。
wakeup from "standby" at Sun Jun 24 22:22:02 2012
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
mxc_ipu mxc_ipu: Channel already disabled 9
mxc_ipu mxc_ipu: Channel already uninitialized 9
PM: suspend of devices complete after 28.942 msecs
suspend wp cpu=400000000
PM: late suspend of devices complete after 0.726 msecs
因为这是我在 qt 应用程序未运行时运行 busybox 命令时所说的内容。
*注意:我运行的是 Linux:2.6.35.3-11.09.01
有谁知道可能是什么问题?
【问题讨论】:
标签: qt embedded-linux suspend