
KPowersave
Source (link to git-repo or to original if based on someone elses unmodified work):
Current feature list:
- support ACPI, APM (and PMU since 0.7.x)
- trigger suspend to disk/ram and standby
- switch cpu frequency policy (between: performance, dynamic and powersave)
- applet icon/tooltip with info about AC state, and battery fill/(warning) states, remainig time
- scheme specific settings (see below)
- autosuspend (to suspend if a user was a defined time inactive)
- autodimm
- a global and scheme specific configurable blacklist with programmes to prevent autosuspend/autodimm (e.g. videoplayer and cd burning tools)
- trigger lock screen on lidclose ans suspend and select the lock methode
- define battery warning levels and related actions if a level reached
- actions for special button events (power/lid/suspend/sleep buttons)
- define AC/Battery default scheme
- KNotify support for many events
- online help and localisations
- KPowersave support schemes with following configurable specific settings for:
* screensaver/DPMS
* brightness (if supported by hardware)
* autosuspend/autodimm
* scheme specific blacklist for autosuspend/autodimm
* CPU Frequency Policy
- KPowersave contains a detailed dialog (on left mouse button on the applet icon) with all PM relavant info
To run KPowersave you need currently:
- dbus/dbus-qt3 (http://www.freedesktop.org/Software/dbus)
- HAL >= 0.5.9 (http://www.freedesktop.org/Software/hal)
Additionaly you can use the powersave daemon to handle powermanagement if no user is logged in to the system (http://sourceforge.net/projects/powersave/).
For (additional) dependencies see the project homepage and documentation.
If you run KPowersave on KDE you can remove klaptop from your system. KPowersave was developed as a replacement.
KPowersave and powersave are (as we know) running on this distributions:
* SUSE Linux (defaultly, available RPMs are for 10.0, for 10.1/10.2/10.3 see related repositories (www.opensuse.org), for 9.2/9.3 see older version on sf.net available)
* ALTLinux: default
* K/Ubuntu: from universe repository
* Debian: available via 'apt-get install kpowersave'
* Fedora Core 6/7/8 (sf.net)
* Mandriva 2007/2008(sf.net)
* Gentoo (ebuilds see download link)
* Arch Linux
* Slackware (http://www.mytux.org/content/viewslackpackage.php)
* (Simply)Mephis (since 6.0 default)
* FOX Linux (default)
* RR/RR64 Linux (default)
* PLD Linux (devel tree)
* Aurox (devel tree)
* Pardus
Packages and porting information for other distributions would be appreciated.
To get always actual news about updates and new versions subscribe to new releases at the project homepage: http://freshmeat.net/projects/kpowersave
-----------------
Copyright (C) by:
* Danny Kukawka (2004-2007)
* Thomas Renninger (2004)
For more information about current development see:
http://dkukawka.blogspot.com/.
-----------------------------------
For current changelog and news see:
https://sourceforge.net/project/shownotes.php?release_id=542867&group_id=124576
---------------------------------------
29. Oct. 2007
---------------------------------------
KPowersave 0.7.3:
Major changes since the last version/release:
- added new dialog to show logfiles if a suspend/resume fail and allow the user to save the log (need to get enabled per distro)
- added support to handle brightness key events if the machine not already handle this in the hardware directly
- added new feature named autodimm to reduce the brightness of the display if the user is inactive and dimm up if the user get active again
- new dialog shown up 30 seconds before
autosuspend call the suspend to warn the user and allow chancel the suspend
- added code to work with new PolicyKit/ConsoleKit/HAL combi to check if the user is privileged (for HAL >= 0.5.10 and related PolicyKit versions)
- added code to check if the current desktop session is avtive and handle if the session get inactive (via ConsoleKit)
- added code to release/aquire org.freedesktop.Policy.Power if the session get inactive/active to allow powersaved or other active KPowersave instances to handle powermanagement
- prepared KPowersave to work also with HAL >= 0.5.10 (handle renamed policy names in HAL)
- use now kdebug functions instead of own macros, added --dbg-trace option to allow trace function entry and leave points.
Minor changes:
- added wodim to autosuspend blacklist
- changed logic for resume if a timeout happen
- change default timeout to fake keyevent for locked screen to 2.5 sec
- don't fake key event after locked screen and lidopen if config variable timeToFakeKeyAfterLock = 0
- added new config variable (callSetPowerSaveOnAC in [General] section) to disable call SetPowerSave() on HAL.
- fix code to guess if a 6-hour-timeout occours while suspend/resume or if there was really a error
- removed Portuguese version of the help, since only one paragraph was translated
- fixed configure script to detect if we should use HAL to get information about policies instead of PolicyKit
- force update detailed dialog on AC events to get always e.g. the correct scheme info in the dialog
- reworked code for mouse wheel events to reuse code for brightness keys
- several HAL/D-Bus/PolicyKit/ConsoleKit related fixes/updates
- cleanup code, fixed compiler warnings, added new functions to removed doubled code
This release contains many bugfixes and translation updates. For more follow the Changelog.
---------------------------------------
[18. Feb 2007, 0.7.2][21 Nov 06, 0.7.1][02 July 06, 0.6.2]
[14 May 06, 0.6.1][11 Apr 06, 0.6.0]
Ratings & Comments
157 Comments
is this app still valid for KDE 4?
I have everything working great on mepis 8 64 bit. the one thing i like a lot is the s2both. How can I get it as a menu item on the tray icon and in the lid close config? Right now I renamed s2ram and then copied and renames s2both to s2ram as a work around. also the HP dv5020us works great for all 3 suspend methods , how can I add it to the whitelist so I can stop using the --force option?
Is there a possibility to change the default KPowersave icons residing in the tray?
Hi all! I have a keyboard with sleep and power buttons which both seem to work according to the HAL monitor (lshal -m): 14:08:45.771: platform_i8042_i8042_KBD_port_logicaldev_input condition ButtonPressed = power 14:08:48.258: platform_i8042_i8042_KBD_port_logicaldev_input condition ButtonPressed = sleep Kpowersave responds to the power button properly, but ignores the sleep button. Thanks in advance for any suggestions.
It turned out, the sleep button does work after all. I used the "logout screen" option for the testing purposes and it never showed. However the suspending and hibernating both work just fine with the sleep button.
Hi all Who can help me, I use xfce4-panel, After my xfce4-panel restart,the application of kpowersave will be killed, I do know the reason,help me! my email is: rasonboy@163.com thanks !
What about to add possibility of themes, like this patch for v0.6.2 can do? http://www.kde-apps.org/content/show.php/show.php?content=46046 Thanks in advance :)
Will KPowersave be extended to be able to configure standby/spindown timers of hard disk drives and cdrom drives? (Maybe by adding this to powersave or by integrating hdparm?)
Hi, I know it is not the subject of kpowersave but this program is now the more powerfull and usefull for us. I presume it could be the more inovated program. I explain : due to the cost of power and the extension of phtovoltaic use I think to use a photovoltaic system (then with battery). I presume that to check the battery of a portable could be the same that checking a home battery system used with photovoltaic (also called PV) panels. Then I want to use my portable on a home PV installation by connecting my portable to a standard car plugin (habitually used for smoker but also used to connect a portable in a car). I then presume you can add a tabulation in your kpowersave program to be able to check the home PV situation and if the portable is not using his battery but well a connection to the car connector it can also do the same job (to sleep or shutdown if no power will be avaliable in X time). I sincerely hope you can enhance kpowersave with this idea (adding a tabulation for monitoring (when portable has an electrical or battery use) and do the same job as it has now). Have a nice day, Miguipda ;-)
I would like to ask if there is a plan to support UPS - like "gnome-power-manager" do. Thanks.
How can I restart some service or run my script before and after suspending? Where can I setup it?
I have found it. I had to have installed pm-utils. But I have another problem autodimm is not working although dimming itself works. Do you have any idea? Is normal that always I click on "refresh" dimm, it sets on 0% ?
hi, thank you for this great apps. unfortunately i have some problems with my averatec laptop. i'm running suse 10.3 and sometimes when i turn on the pc after suspending to disc, the pc starts up, i can see the login screen, sometimes i can even log in and then the pc turns off. this seems to be attended with some notifications (popups in kicker) saying that the cable has plugged in, etc. this seems to happen especially when suspending the laptop with the battery removed and then starting it in battery mode.
This problem is already known (https://bugzilla.novell.com/show_bug.cgi?id=333744), I'm working on it.
Does this also monitor Interruptible Power Supplies (UPS)?
There doesn't exist any hal-0.5.10. Where can I get this version? Is it only in GIT repository at freedesktop.org?
You don't need 0.5.10 of HAL, but: http://hal.freedesktop.org/releases/
After installing Fedora 7 on Dell Latitude D630, I had kpowersave installed and working fine. I then installed acpid (it was not installed initially). Now kpowersave only works if ran as root or with sudo. Without root access, it cannot even see what the current frequency policy is - reports it as "unknown". Can't change frequency policy or suspend. Root/sudo can do all of these things. I can run pm-suspend as regular user and it works fine, only kpowersave has this problem. The really weird thing is, I removed acpid (not just halted it, uninstalled it), rebooted, and kpowersave still does not work. Some permissions changed somewhere, but I can't strace kpowersave so can't see what it is that it's not accessing. Kpowersave version is kpowersave-0.7.3-0.2svn20070828.fc7
I assume you need acpid (depends on how FC configure their HAL version), but I'm not that familar with FC (maybe it's a SELinux problem or something other Fedora specific). You should report the problem to the Fedora bugzilla, since you used a package, which you have from them.
I certainly don't need acpid - kpowersave worked fine *until* I installed acpid. Selinux I just turned off. What would help is some information on what kpowersave interacts with. For example, simple thing: the "current CPU frequency scheme" it shows in the status window, where does it come from? It's "unknown" when ran as user and "dynamic" when ran as root, so clearly kpowersave lacks permissions to read something. What is it reading to get the value for that scheme?
I assume you have problems with HAL/PolicyKit/ConsoleKit permissions for the user. If you have e.g. consolekit, you should check if you have XDG_SESSION_COOKIE in the user session. If you have only PolicyKit maybe your HAL or an other policy (HAL dbus config or the dbus config itself, there are so many possible sources for this problem) is brocken. You should report it to the Fedora Bugzilla, it sounds to me like a general problem with the policies and not like a KPowersave specific problem.
The dynamic CPU Frequency Policy is not working! My DELL Latitude D820 is always running on full frequency (2GHz) and it never uses the 1Ghz Frequency (only when specified manually). I don't know if the problem is due to KPowerSave or to openSuse 10.2 which i'm running (The dynamic switching is working fine in windows). Any help will be appreciable. Thanks.
Sounds more like a kernel problem. You can check if the ondemand governour is activated (check content of /sys/devices/system/cpu/*/cpufreq/scaling_govenour), but if it's a kernel problem. Please report this to bugzilla.novell.com and assign it to the component kernel
Thanks for the reply. The content of /sys/devices/system/cpu/cpu{0,1}/cpufreq/scaling_governor is "ondemand" So does it mean that it's due to the Kernel?
Yes, I would assume it's may the same problem as in this bug: https://bugzilla.novell.com/show_bug.cgi?id=334378