Summary: | configure programs for prevent autosuspend | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | miku84 <miku84> |
Component: | general | Assignee: | Plasma Development Mailing List <plasma-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | kde |
Priority: | NOR | ||
Version: | 5.2.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
miku84
2015-04-17 21:36:14 UTC
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. |