UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [solved using UT Tweak Tool] Use a timer even if the screen is off (in standby mode)

    Scheduled Pinned Locked Moved App Development
    5 Posts 3 Posters 279 Views 2 Watching
    Loading More Posts
    • 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.
      • gwadoG Offline
        gwado
        last edited by gwado

        I trigger a timer in an app (qml) but it pauses when the screen is off/locked.
        In apparmor, I use “keep-display-on”.

        In the code, although I don't think it's normally useful :

        import QtSystemInfo 5.5
            ScreenSaver {
                id: screenSaver
                screenSaverEnabled: false
            }
        
        

        Do you have a solution, please?

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          domubpkm @gwado
          last edited by

          @gwado Test 'avoid app interruption' in UT TT

          gwadoG 1 Reply Last reply Reply Quote 0
          • gwadoG Offline
            gwado @domubpkm
            last edited by

            @domubpkm Great, thanks.
            Already, it works when I enable this option on my app.
            That's a first step.
            I'll see if I can integrate the option into my app to be independent of UT Tweak Tool.

            1 Reply Last reply Reply Quote 0
            • gwadoG Offline
              gwado
              last edited by

              I've looked at the UT Tweak Tool code but I don't have the skills for it.
              UTTT allows you to interrupt an app. It's functional, I won't go any further.
              Thanks! 🙂

              1 Reply Last reply Reply Quote 0
              • K Online
                kugiigi
                last edited by

                Disabling app suspension is a last resort and it would make your app unconfined if you toggle the setting in your app itself. If you use media hub, your media should keep on playing even if the app is suspended. Worth checking the music app and other music app in the store. I wouldn't be surprised if there are still some issues related to it though.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post