Some news, and improvements in inhibition

Hello everyone,

I am at at the moment, where I am delivering two talks, about Qt and Multithreading, and Social applications with Telepathy. The first one was yesterday, and I was very pleased by the feedback I received – thanks to all of you who attended, and if you couldn’t make it, videos will be up soon. The conference is being streamed live, so you’re still in time to follow me on Friday.

Besides that, I wanted to blog about some improvements towards flawless power management inhibition. A GCI student, George Stephanos, took the task of testing and fixing inhibition in 4.8: the results were two bugs fixed, and dragon player being able to successfully prevent any power management action. But it does not stop here: yesterday I also added inhibition support in Okular – if you are giving a presentation with it, you don’t have to worry about your screen or your system going down anymore.

Of course this doesn’t end here: the quest for making the new inhibit button of 4.8’s battery applet less and less useful has just begun, but we need your help. What’s your favorite application in which you miss inhibition? Adding support for that is ridiculously easy, but if you don’t want to get your hands dirty, just saying something in the comments will probably have some brave developer take care of that issue for you. And if your target application is not using KDE/Solid, don’t feel cut out: we still support the legacy org.fd.o PowerManagement interface, and our APIs for inhibiting screen power saving and sleep are available through DBus as well.

And on a related note, from 4.8 on Solid::PowerManagement::beginSuppressingScreenPowerManagement will also take care of inhibiting the screensaver for you, if any. With one or two simple function calls, you can improve the user experience significantly for your and our users. So, since you no longer have an excuse, give out your help now to make power management a complete hassle-less experience in KDE!

~ by Dario on 18 January, 2012.

13 Responses to “Some news, and improvements in inhibition”

  1. There never was a standard in fd.o and because of tha VLC does not implement any inhibition on linux.

    Fix fd.o or if you can’t do that fix vlc :p

  2. amarok off course, and vlc, bangarang.. and slideshows in Gwenview!

    I hope power menagement applet will see a much improved design than now..

    thank you, good talk!

    • Thanks! Gwenview is something I didn’t consider… who knows, maybe it will be the next one to get a patch? 😉

  3. Your okular patch explicitly suppresses both sleep and screen-power-saving. But shouldn’t beginSuppressingScreenPowerManagement imply beginSuppressingSleep, or is there some use case that requires keeping the screen active right up to the moment that the system idles out and suspends itself?

    • Your point makes a lot of sense. Although, the subdivision of the API was mainly to support legacy methods (read: the previous fd.o interface), which lead to two separate methods for broadening support. I agree that in most of the cases inhibiting screen PM leads to inhibiting sleep PM as well, but I tried to have the API as consistent as possible due to the constraint that suppressingSleep would have been independent anyway. For frameworks, I am already considering some potential changes to that APIs, possibly with a single function accepting an enum which lists the features one wants to inhibit, to have everything being more consistent and easy to use.

  4. Fullscreen flash video streaming should inhibit power management too.

    • I agree, but due to the close nature of Flash player, this is very hard and most of all not something I can do… the only way for doing that is sending a lot of mails to Adobe, directing them to my blog and the Solid APIs, telling them they should implement this feature.

  5. Just sent a patch adding support for Solid to open-pdf-presenter.

  6. […] 4.8, as you probably already know if you follow my blog, inhibition in power management got a significant boost all over […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: