Bug 512855

Summary: In Power Management "Run command or script" runs when it should not.
Product: [Applications] systemsettings Reporter: Denis Zhdanov <altwazar>
Component: kcm_powerdevilAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jpetso, kde, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Denis Zhdanov 2025-12-02 03:50:10 UTC
SUMMARY

In Power Management, I have the following settings:
- Dim screen automatically after 30 seconds.
- Run a command or script when inactive after 1 minute (this runs mpv as a video screensaver for OLED).
- Turn off screen after 10 minutes.

Initially (or after a reboot), everything works as expected:
- Nothing happens when there is user activity or when watching a video.
- Otherwise: after 30 seconds the screen dims, after 1 minute mpv starts playing the screensaver video, and after 10 minutes the monitor turns off.

However, after some time (I don't know what triggers this), the behavior changes:
- With activity: Nothing happens, as expected.
- Without activity (and not watching video): Dimming, mpv screensaver, and screen turn-off work as expected.
- Without activity AND while watching a video: Dimming and screen turn-off are correctly inhibited (do not happen), but the "Run command" action is still triggered after one minute, starting the mpv screensaver on top of the video.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Gentoo KDE Wayland
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20
Qt Version: 6.9.3