SUMMARY KDE instantaneously suspends my computer the moment my YouTube video finishes playing. STEPS TO REPRODUCE 1. Set to suspend after 10 minutes of activity. 2. Play a YouTube video that is longer than 10 minutes. 3. Do not move mouse or use keyboard. OBSERVED RESULT System will suspend the instant that the video finishes rather than waiting 10 minutes. This is very annoying and disruptive. EXPECTED RESULT System suspends 10 minutes after activity stops and that playing a video is considered activity. The countdown should start when the inhibiting lock is released. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0
Can confirm, the timing has to be quite close. I think we should just restart the timer when blocking the sleep is turned off. Operating System: Fedora Linux 42 KDE Plasma Version: 6.4.80 KDE Frameworks Version: 6.15.0 Qt Version: 6.9.0 Kernel Version: 6.14.6-300.fc42.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 16 GiB of RAM (15.5 GiB usable) Graphics Processor: AMD Radeon RX 6600
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/548
Git commit 3feaad466c5e6195ed8541c3c58d899a612511d0 by Akseli Lahtinen. Committed on 16/06/2025 at 08:43. Pushed by akselmo into branch 'master'. PowerDevilAction: refresh action timers on inhibition changes When inhibitions change, action timers should be restarted. If they're not restarted, action timer may run to 0 right after a video playback ends for example, running the action abruptly. M +11 -0 daemon/powerdevilcore.cpp https://invent.kde.org/plasma/powerdevil/-/commit/3feaad466c5e6195ed8541c3c58d899a612511d0
Git commit 31fcf4c07346bc1fcd7b6df07b62330fd0b7db7f by Nate Graham. Committed on 17/06/2025 at 21:38. Pushed by ngraham into branch 'Plasma/6.4'. PowerDevilAction: refresh action timers on inhibition changes When inhibitions change, action timers should be restarted. If they're not restarted, action timer may run to 0 right after a video playback ends for example, running the action abruptly. (cherry picked from commit 3feaad466c5e6195ed8541c3c58d899a612511d0) Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev> M +11 -0 daemon/powerdevilcore.cpp https://invent.kde.org/plasma/powerdevil/-/commit/31fcf4c07346bc1fcd7b6df07b62330fd0b7db7f