Power management goodness: KDE 4.2 will suck less
... power. As Dario has already blogged, we have a great new application in kdebase, scheduled to be released with KDE 4.2 in january. PowerDevil is actually not an application in the traditional sense. PowerDevil delivers the infrastructure for power management in KDE. This means it'll notify you when your battery is running out, it dims your screen a bit when you're idle to save some battery life, it switches to a lower power consumption state when you unplug the AC Adapter, it automatically suspends, hibernates or shuts down when your battery is (near) empty, that kind of stuff. For a user, it's not a real application, but much more a service that handles some tasks for you and doesn't get in the way.Technically, powerdevil is designed to integrate with KDE's platform-independant infrastructure. So while the actual tasks are very close to the hardware's capabilities, powerdevil is not bound to Linux for example. The code is very portable, thanks to the Solid hardware abstraction. Naturally, PowerDevil uses knotify to tell the user about anything she needs to know, fine-grained control about all notifications is available in the System Settings module. PowerDevil consists of the following parts:
I'd also like to add a "do not suspend or screensave my system while I'm doing this presentation / watching this movie" button. We could implement that with a profile in powerdevil (but that wouldn't cover the screensaver), or -- and I think I prefer that option -- with a "[x] Presentation Mode" checkbox. I figured, we should only prevent the system from suspending after an idle time. The system should still suspend (/ hibernate / shutdown / ...) at the critical battery level. This critical level suspend should also go with some kind of count-down dialog, so you still have the opportunity to '... cancel that damn thing' when you really do not want it to go away. Well, on the TODO. :) Thanks to the awesome work of pinda, you can drag the battery's pop-up control to the desktop and have it sit there as separate applet. There will be a button in the top-right corner in that case that moves this "extender" back into its original location (the battery applet's popup). Neat-o. Wacky detail, as you can see, the popup also shows the battery. I've loaded another (simplified) instance of the battery applet there, so that's all animated and shiny. Thanks to the power of plasma's dataengine, all the "getting data code" is shared between those applets anyway. UI-wise, the battery-in-panel is actually a subset of the "battery-extender-on-desktop". I've also done some performance tweaks to the runner (also in kdebase) that lets you control power management aspects. As we still haven't implemented an easy way to find out about krunner syntax (I usually check the source code :/), here's a quick list of things krunner + powerdevil now understand:
[ Fri, 26 Sep 2008 04:04:04 +0200 ] permanent link
This weblog does currently not offer the option to comment. I would be happy to receive an email with your thoughts.
23-11-2007, 18:44 h
© Sebastian Kügler