Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to keep screen on ? ( Not android )
Qt 6.11 is out! See what's new in the release blog

How to keep screen on ? ( Not android )

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 891 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.
  • J Offline
    J Offline
    Josh Jung
    wrote on last edited by Josh Jung
    #1

    Hi, All

    Now I am developing application based on QT.

    When I execute my application with not any work, after 15 minute screen off. ( I think going to suspend mode )
    ( ** My application run on embedded linux not android. )

    I found quit much information about keep screen on for android, but I'm not using android now.

    I Want to keep screen on during limited time.
    Do you have any about that?

    Thanks,

    K raven-worxR 2 Replies Last reply
    0
    • J Josh Jung

      Hi, All

      Now I am developing application based on QT.

      When I execute my application with not any work, after 15 minute screen off. ( I think going to suspend mode )
      ( ** My application run on embedded linux not android. )

      I found quit much information about keep screen on for android, but I'm not using android now.

      I Want to keep screen on during limited time.
      Do you have any about that?

      Thanks,

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Josh-Jung

      Hi and welcome to devnet forum

      Most likely you are looking in the wrong place for a solution. All energy saving activities are typically handled by the OS. Sometimes even by the HW (e.g. external screens).

      My recomendation is to check out the HW documentation and also the documentation of the OS.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • J Josh Jung

        Hi, All

        Now I am developing application based on QT.

        When I execute my application with not any work, after 15 minute screen off. ( I think going to suspend mode )
        ( ** My application run on embedded linux not android. )

        I found quit much information about keep screen on for android, but I'm not using android now.

        I Want to keep screen on during limited time.
        Do you have any about that?

        Thanks,

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by raven-worx
        #3

        @Josh-Jung
        there is an (unpublished) QtSystems module containing a QScreenSaver class you may want to give a try.
        See it's screenSaverEnabled property.
        But this is only the screen saver part of course. As @koahnig said the power saving settings may only be used by native API. There is no Qt API yet - and probably never will be.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        2
        • J Offline
          J Offline
          Josh Jung
          wrote on last edited by
          #4

          @koahnig @raven-worx
          Hi All

          Thanks, for giving answer about that!
          I will try to check API and QScreenSaver class

          Thanks,

          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