Power Management and Inhibition by Applications
Elvis Angelaccio
elvis.angelaccio at kde.org
Sat Jan 19 11:19:10 GMT 2019
On 16/01/19 22:07, Matthieu Gallien wrote:
> Hello,
>
> I am trying to work on a feature request to add the ability to suppress laptop
> sleep when playing music.
>
> Currently, Juk is doing it via dbus calls to "org.kde.Solid.PowerManagement".
>
> I also had a look to Solid frameworks and the power classes that add an
> asynchronous way to do that.
> Currently, the Solid framework only conditionally provides those features and
> it seems distributions (at least Debian) do not always build it.
>
> I am also unsure about the current recommended solution that would work for
> most desktop environments.
>
> What would be the best way forward ?
Hi,
the "official" way to achieve that should be a dbus call to the
org.freedesktop.ScreenSaver interface (methods Inhibit and UnInhibit).
>
> I can also see some other features that could make sense to provide in
> libraries that music players could use (lyrics fetching, album art fetching,
> ...). This could be in a dedicated framework to help build media players.
>
> Best regards
>
> --
> Matthieu Gallien
>
>
Cheers,
Elvis
More information about the Kde-frameworks-devel
mailing list