I have autosuspend configured after 10minutes in Plasma5 and it goes suspended when nothing happens, only song playing. I think it should not go to suspend as VLC and qbittorrent does not go to suspend when active. Monitor could be off after 5 minutes but not the PC. Reproducible: Always Steps to Reproduce: 1.configure autosuspend : 5minutes 2.listen some music 3.PC goes to suspend Actual Results: 3.PC goes to suspend Expected Results: Not to suspend when media is played: - fullscreen apps: browsers - music - movie Each program should be configurable: - allow prevent monitor off - allow prevent sleep
Thanks for your bug report! However it is job of the application to block automatic suspending, and applications like vlc, Amarok and others actually do. If not, that's a bug in the application, especially since there is a standardized interface that any application can use to prevent suspending.
In addition KDE application can decide whether to turn off the screen or suspend, whereas the standardized cross platform interface unfortunately only allows all or nothing. There's not much we can do.
Kmediaplayer detects if some application plays mucis or movie. If Kmediaplayer is running, it should prevent sleep. Are you saying that this can be done? How? Thanks.
The application needs to call Inhibit on the org.freedesktop.PowerManagement.Inhibit DBus interface.
I see that the application can do this but if KDE apps can decide whether or not go to suspend as you say, then I think Kmediaplayer could control it. As this Kmediaplayer program already know when music or movie is played then this configuration could be very useful, it could also call Inhibit on the org.freedesktop.PowerManagement.Inhibit DBus interface.
First of all: what's kmediaplayer? Let's assume this "kmediaplayer" does it. It has no idea whether the application already inhibited it. Even more if it unconditionally inhibits it would also inhibit even if you as a user disabled in your media player (e.g. VLC) that it inhibits. So it would do the opposite from what the user expects. It's just something the application has to do, we cannot apply "magic" here.