https://bugs.kde.org/show_bug.cgi?id=479195

Jakob Petsovits <jpe...@petsovits.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO
                 CC|                            |jpe...@petsovits.com

--- Comment #1 from Jakob Petsovits <jpe...@petsovits.com> ---
Okay, so I just tried out VLC (which uses the freedesktop inhibitor
functionality) on Plasma 6.0.2 as well as my old 5.27 installation, X11 and
Wayland. I cannot reproduce what you're mentioning. It works exactly like
you're suggesting: When the desktop is unlocked and the video is playing, the
screen locker does not trigger and the displays stay on; when I manually lock
the screen, it turns off after the 1 minute that I used as example
configuration.

I looked at the code - the KDE power management service has a section that
specifically checks for whether the screen locker is active, and disables
screen change inhibitions when it is active. When the inhibition disappears,
the "DPMS" action kicks in to turn off the screen after the configured timeout.
So from what I can tell, everything in the locking / screen turn-off department
is working as it's supposed to.

Which makes me wonder whether your software is up to some other shenanigans in
order to prevent sleeping. Back in the days, before the freedesktop inhibitions
interface existed, it was somewhat common to block screen locking by emulating
the the Shift key being pressed. On X11, there is nothing to keep apps from
injecting keys that way, and I can confirm that pressing my physical Shift key
will wake up the monitor also when the screen is locked.

Could you have a look if there are input events being sent by an application
when this happens to you? On X11, you can use command line programs such as
`evtest` / `xinput test` (for individual devices, including pointer input) or
`sudo showkey` (with a longer timeout, for keyboard input from any device?) to
print input events that Plasma including the screen locker would pick up on.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to