• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 271 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.
    • G Offline
      gwado
      last edited by gwado 11 Nov 2024, 21:38

      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 11 Nov 2024, 23:18 Reply Quote 0
      • D Offline
        domubpkm @gwado
        last edited by 11 Nov 2024, 23:18

        @gwado Test 'avoid app interruption' in UT TT

        G 1 Reply Last reply 12 Nov 2024, 09:49 Reply Quote 0
        • G Offline
          gwado @domubpkm
          last edited by 12 Nov 2024, 09:49

          @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
          • G Offline
            gwado
            last edited by 15 Nov 2024, 21:55

            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 Offline
              kugiigi
              last edited by 16 Nov 2024, 05:42

              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
              3 out of 5
              • First post
                3/5
                Last post