KubuntuPowerManagement
|
Size: 6170
Comment: beta comments
|
Size: 6319
Comment: 2 cpus and/or 2 batteries?
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 84: | Line 84: |
Allee: * What I miss here is how 2 Batteries and 2 CPUs are handled. IMHO we need a place where status of all batteries and all CPU are shown. |
Launchpad Entry: https://launchpad.net/distros/ubuntu/+spec/kubuntu-power-management
Created: 6/6/06 by JonathanRiddell
Contributors: JonathanRiddell, LukaRenko
Packages affected: klaptopdaemon, powersave, kpowersave
Summary
Write a power management tool for KDE based on HAL.
Rationale
The existing klaptopdaemon uses obsolete technologies and is hard to maintain. The alternative kpowersave duplicates a lot of the power management support included in Ubuntu and exposed through HAL, this would make it very hard to support and it conflicts with Ubuntu packages. So we will write a new frontend to HAL.
Use cases
Maisie wants to suspend her laptop but it doesn't work currently with Kubuntu because klaptopdaemon uses an obsolete method to detect if suspend is possible.
Rhuaridh wants to change the brightness of his laptop but finds that klaptopdaemon has no option to do this.
Boab wants to install kpowersave as the only reliable way to get power management in Kubuntu but finds this uninstalls several Ubuntu power management packages.
Scope
KDE frontend to the properties exposed by HAL. Any laptop specific issues should be solved below HAL.
Design
The daemon will display a systray icon to show the battery level and plugged in status. It will have a tooltip to show more information and a menu which lets you configure or run suspend/hibernate.
The applet check if power management is supported (using HAL) and only run if it is on startup.
The applet will have different settings for when the laptop is powered and battery, when the laptop changes from powered to battery is will change the brightness according to the setting.
It will talk to HAL using libhal. It will listen to HAL signals for battery level. It will query HAL for suspend/hibernate abilities (if one is not available that will be disabled in the GUI), and it will use HAL for starting the suspend and hibernate. It will use hal-system-power-set-power-save for standby mode.
Configuration dialogue:
http://kubuntu.org/~jriddell/power-config.png
Tooltip when hovered over applet:
http://kubuntu.org/~jriddell/power-tooltip.png
Menu when clicking on applet:
http://kubuntu.org/~jriddell/power-menu.png
Design drafts can be found at
http://vizzzion.org/?id=viewpic&gcat=UbuntuDevSummitParis&gpic=IMG_7851.JPG#images
http://vizzzion.org/?id=viewpic&gcat=UbuntuDevSummitParis&gpic=IMG_7852.JPG#images
Code can be found at: http://websvn.kde.org/trunk/playground/base/guidance/powermanager/
Comments
- I am missing configuration for action to perfom on Close Lid and Sleep/Suspend key.
- Since suspend/hibernate is also used by desktop users, we should also think about separating battery stuff (does hal support UPS battery) from suspend/hibernate config.
- It would probably also make sense to separate brightness controls as they are not supported by all laptops (and probably no desktop)
Ellen:
Didn't we agree on having three "Active Schemes" -> Powersave, Automatic and Performance that are added as an option to the plugged/unplugged profile?
Why do you try to develop a new application (I don't believe in a _temporary_ solution!) instead of work on KPowersave as proposed on [email protected]? Why not spend your time to make KPowersave independend from powersave (also if I'm not a fan of powermanagement in HAL!) instead of develop yet an other KDE powermanagement applet? IMO it's a waste of time to develop such a temporary applet and we all (powersave/KPowersave developer, Luka, Michael Biebl and other) already spend enough time to get KPowersave in Kubuntu (I don't like to lose one's labour! ).
Ellen (2006-08-10): Beta Review
- Brightness Slider:
- Clicking onto the slider should move the handle to the closest tick.
Unclear what the ticks represent -> percentage? levels? Provide an indicator at least in the tooltip.
- On my laptop (Samsung P30, Kubuntu Dapper), the maximum brightness I can set with the guidance power manager is only 47%.
- Battery Critical: What is battery critical? 5%? 10 Minutes? If the user can't set it himself, provide that information in the label: "When Battery Critical (5%)"
- Lid Closed:
- Lid Closed should not be grouped with battery powered - it applies to both states.
- What is "blank"? "Screen Saver", "Blank Screen" or "Monitor off"?
- There was no reaction on my Samsung P30 to this setting.
- Confirmation:
- The settings window is instant apply. We've not yet come to a final decision regarding instant apply for the HIG, but by consistency reasons I suggest not to use instant apply right now. In this case, there is also no direct feedback for battery critical or lid closed - as most KDE users are not used to instant apply, they might not know if the setting is applied immediately or if they have to click "close". In the worst case they expect the title close button to reset the changes. If you still decide to keep instant apply, add a button to revert changes. Changing to explicit apply would imply to make it a configuration dialog instead of the left-click action. Left click might then, for example, show a slider to set the current brightness (similar to KMix) (+ status info?).
- Brightness Preview:
- Currently there is only a brightness preview for the currently active scheme (_either_ mains or battery powered). That means if you want to set the battery brightness when you are currently mains powered, you'll probably move the battery slider, realise that there is no preview, go to the mains slider, move it till you found a nice brightness level, then go back to the battery slider and set it there. Would be nicer to have a preview for both sliders: Whenever you move to a new location, the brightness is adjusted. Has to be tested if it should be set back to previous value after 5 seconds, or if it should remain till you either move the other slider or click save (assuming explicit apply).
Allee:
- What I miss here is how 2 Batteries and 2 CPUs are handled. IMHO we need a place where status of all batteries and all CPU are shown.
KubuntuPowerManagement (last edited 2008-08-06 16:21:08 by localhost)