Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89477

Cross-platform wakelock API

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.0
    • QPA

    Description

      It would be useful to have a truly cross-platform API to acquire a wakelock. On mobile platforms, this would prevent the screen from turning off, on desktop platforms it could be used to inhibit screen-savers and standby.

      Implementation wise, this could map to setting FLAG_KEEP_SCREEN_ON on android/view/Window on Android and setting the idle timer to false on iOs. Linux features systemd inhibitor locks, which might be useful.

      Prior art in other toolkits:

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vestbo Tor Arne Vestbø
              fabiankosmale Fabian Kosmale
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes