Bug 421011 - /org/freedesktop/PowerManagement/Inhibit shouldn't prevent locking screen
Summary: /org/freedesktop/PowerManagement/Inhibit shouldn't prevent locking screen
Status: CONFIRMED
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2020-05-04 17:09 UTC by Guo Yunhe
Modified: 2022-11-04 21:50 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guo Yunhe 2020-05-04 17:09:09 UTC
SUMMARY
-------

Video players invoke /org/freedesktop/ScreenSaver/Inhibit to prevent screen dimming and locking

Music players invoke /org/freedesktop/PowerManagement/Inhibit to prevent system sleeping but screen dimming and locking should still work. However, this isn't the case in KDE/Plasma.


STEPS TO REPRODUCE
------------------

1. Open JuK and play (loop) some music
2. Don't do anything and wait screen to lock
3. Check back in 15 minutes


OBSERVED RESULT
---------------

Screen locking is prevented by music players


EXPECTED RESULT
---------------

Screen locking shouldn't be prevented by music players. That is because music players don't require screen to be always on.


SOFTWARE/OS VERSIONS
--------------------

Operating System: openSUSE Tumbleweed 20200501
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Kernel Version: 5.6.6-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 31.1 GiB
Comment 1 local10 2020-09-02 17:06:23 UTC
Can confirm the bug, observed it in Debian 10 Buster.

# uname -a
Linux tst 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux


# aptitude show kde-standard
Package: kde-standard                    
Version: 5:102
State: installed
Comment 2 Patrick Silva 2021-06-12 18:08:03 UTC
Monitor also does not enter in power saving mode when I download something
with Chromium and chromium-based browsers.

Arch Linux, Plasma 5.22.
Comment 3 Wyatt Childers 2022-09-01 03:46:28 UTC
(In reply to Guo Yunhe from comment #0)
> SUMMARY
> -------
> 
> Video players invoke /org/freedesktop/ScreenSaver/Inhibit to prevent screen
> dimming and locking
> 
> Music players invoke /org/freedesktop/PowerManagement/Inhibit to prevent
> system sleeping but screen dimming and locking should still work. However,
> this isn't the case in KDE/Plasma.

Can some information on where these specs live? It looks like this was supposed to be fixed back in 2018: https://github.com/KDE/powerdevil/commit/152400c1b6880506ee1395011686c2b191f419a0

It looks like this may be manifesting in a very weird way. I currently get "nothing" (literally no name/text) "is currently blocking sleep and screen locking (Playing)" from Rythmbox.