【问题标题】:Cannot suspend embedded linux while qt app is runningqt 应用程序运行时无法挂起嵌入式 linux
【发布时间】: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


    【解决方案1】:

    问题在于 QT 应用程序自己运行控制台,在我的例子中是 tty0,它正在停止我的挂起请求。

    在我的情况下,由于我不通过 QWS 使用键盘或鼠标输入,我通过运行应用程序解决了这个问题:

    qt_app_name -qws -nomouse -nokeyboard
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多