Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cannot suspend embedded linux while qt app is running

Cannot suspend embedded linux while qt app is running

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qw_freak
    wrote on last edited by
    #1

    Currently I am working on a Qt application running on an Embedded platform (i.MX53).

    My problem is, that while this app is running, I cannot make my system suspend.

    I am using "busybox rtcwake" to administer the suspend funktion, which i would like to just run from my Qt app, as this app is the main reason for my system, but I cannot seem to make the system go to suspend when calling rtc wake:

    @//From Qt app.
    Qstring str = "/bin/busybox rtcwake -d /dev/rtc0 -m standby -s 15";
    system(str.toAscii());@

    this just gets me this message:

    bq. wakeup from "standby" at Sun Jun 24 20:59:00 2012
    PM: Syncing filesystems ... done.

    which should be something like:

    bq. 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

    Because this is what is says when I run the busybox command while the qt app is not running.

    *Note: I'm running Linux: 2.6.35.3-11.09.01

    Does anyone know what could be the problem?

    [[Allso posted this question on "StackOverflow":http://stackoverflow.com/questions/13490183/cannot-suspend-embedded-linux-while-qt-app-is-running]]

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qw_freak
      wrote on last edited by
      #2

      The problem is that The QT app is running a console on its own, in my case tty0 which is stalling my suspend request.

      In my case since I dont use keyboard or mouse inputs through QWS, I solved the issue by running the application as:

      qt_app_name -qws -nomouse -nokeyboard

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved