Screensaver/screen lock inhibition
Open, Needs TriagePublic

Description

We have a few different but related use cases here:

  • Lock inhibition
  • Screen turnoff inhibition
  • Suspend inhibition

I'm usure how detailed that should be modeled in the API. What use cases do we have?

Currently we have multiple applications that implement this, both with support for various platforms:

  • Itinerary, inhibit screen turnoff when scanning a ticket (Linux, Android)
  • KDE Connect, inhibit screen turnoff when device is connected (Linux, Windows, macOS)

A while ago I worked on a potential library for it in https://invent.kde.org/nicolasfella/lockinhibit

This could be part of Solid, but having it as a new Framework could also be thinkable

dfaure added a subscriber: broulik.Nov 11 2019, 1:07 AM

Is lock and screen turn off inhibition really separate? Both interrupt the user. During a movie I don't care if I can't see the video because the lock screen kicked in or because my screen turned off. I think right now a screen inhibition implies screen lock inhibition anyway (KScreenLocker listening to PowerDevil or something)

Yeah, I agree.

There's an effort for a cross platform wake lock in Qt: https://bugreports.qt.io/browse/QTBUG-89477

vkrause moved this task from Needs Input to Backlog on the KF6 board.May 8 2021, 1:58 PM
dfaure edited projects, added Frameworks; removed KF6.Jun 24 2021, 9:55 AM