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. How to enable screen saver for save buttry on my qt app in ARM device?
Forum Updated to NodeBB v4.3 + New Features

How to enable screen saver for save buttry on my qt app in ARM device?

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 1.7k Views 2 Watching
  • 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by
    #1

    Hi. My friendly arm is going o sleep when my device in console mood after one minute. But when I start my qt app the device is not going on sleep mood. some one in this forum (http://www.friendlyarm.net/forum/topic/3924) said cause of "-qws" the app avoid the device to go sleep mood.
    How can I active this mood?
    please guide me.
    thanx in advance;
    :)

    H.Ghassami

    jsulmJ 1 Reply Last reply
    0
    • MhM93M MhM93

      Hi. My friendly arm is going o sleep when my device in console mood after one minute. But when I start my qt app the device is not going on sleep mood. some one in this forum (http://www.friendlyarm.net/forum/topic/3924) said cause of "-qws" the app avoid the device to go sleep mood.
      How can I active this mood?
      please guide me.
      thanx in advance;
      :)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @MhM93 Please do not post same question twice!
      https://forum.qt.io/topic/77710/how-to-active-sleep-mood-for-device-to-save-the-energy-in-arm-device-with-qt-app

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        @jsulm it's been cleaned up.

        @MhM93 Are you looking for something like QWSServer::screenSaverActivate ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • MhM93M Offline
          MhM93M Offline
          MhM93
          wrote on last edited by MhM93
          #4

          Hi and thanx for answer. I write this code to check the screen saver.

          qDebug()<<"screen saver"<<qwsServer->screenSaverActive(); //=====>screen saver true
          

          and the result is true. I set this code :

          qwsServer->setScreenSaverInterval(5);
          

          it works but how can turn lcd off?

          H.Ghassami

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            You'll have to call low-level functions for that or depending on your target there might a simple device or sysfs file to write to for that to happen.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • MhM93M Offline
              MhM93M Offline
              MhM93
              wrote on last edited by
              #6

              thanx @SGaist . but could you explain it more? my device is friendly arm, linux

              H.Ghassami

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                FriendlyARM currently list 27 products. Can you be a bit more specific ?

                Also, searching for "friendly arm turn off lcd" return this thread which point to a solution similar to what I described.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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