
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
KPowersave is the KDE frontend for powermanagement. It provides battery monitoring, suspend/ standby triggers and many more powermanagement features for KDE (and GNOME).
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)
13 years ago
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]
13 years ago
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]
elahav
14 years ago
I have recently installed FC5 on a new laptop and tried playing with KDE's battery power configuration (from KDE's control centre). The result was far from satisfactory. I ended up editing scripts in /etc/acpi.
If I install powersave (and KPowersave), how should I set KDE's parameters?
Report
dkukawka
14 years ago
To say more, I need to know, what you mean with "KDE's parameters".
Report
liquidat
14 years ago
liquidat
Report
elahav
14 years ago
It seems to be the same thing as klaptop.
Report
dkukawka
14 years ago
Btw. I also could provide i386 packages for FC5, but the problem was selinux. powersave and kpowersave only work if you disable selinux for acpid/acpi or disable selinux complete. I don't know how to fix it, I have no experiences with selinux (SUSE dropped it).
Report
elahav
14 years ago
2. Source distributions normally include a ready-to-use 'configure' file. If you intend to stick with the raw configure.in.in and Makefile.am files, please document it in INSTALL.
3. powersaved fails to compile on my machine. I had to include asm/types.h in brightness.cpp.
Report
dkukawka
14 years ago
2.) This is documented in the README. I added unchanged source (and the instructions in README) because I had problems to get make dist working with the package. Patches to get make dist running are welcome ;-)
3.) Good to know. Was this the compile error because of __u32 ? Was not sure what the problem was in this case. I added a workaround for this to the FC4 powersave package already, but if this was the problem, I fix this for the next package.
Report
dkukawka
14 years ago
From the powersave project homepage on sourceforge.net you can get the needed powersave package and also the for KPowersave needed dbus-qt3 (and if you need also a dbus-qt3-devel rpm) rpm for i386.
As I said, you need to disable SELinux support completely or at least the related rule for acpi(d).
Please report problems or any feedback to powersave-users AT forge dot novell dot com
Report
elahav
14 years ago
3. Yes, the problem was with __u32.
I am unable to compile KPowersave on FC5, but I suspect it's the distro's fault. It seems to be lacking a dbus-qt package.
Report
lanius
14 years ago
Report
dkukawka
14 years ago
Instead of hacking single powermanagement tasks in HAL only because they are not able to develop and implement a own daemon we go the unix way and use/develop a daemon for on special task: powermanagement.
Btw. g-p-m has not nearly the same functionality as (K)powersave. Only some examples: How do you handle powermangement with g-p-m if nobody is logged in to your machine? How do you change your CPU freq with g-p-m? ...
Report
lanius
14 years ago
Report
dkukawka
14 years ago
Report
arthur-kalm
14 years ago
Thank you for your help.
Report
dkukawka
14 years ago
Report
arthur-kalm
14 years ago
It seems that the command to execute acpid was acpid.real rather than acpid. Thus, I created a symbolic link named acpid in /usr/sbin/acpid.
Thank you for a great program, the suspend to disk is awesome :). However, I was wondering how do I enable suspend to RAM on my HP NC 4200. Is suspend to RAM the same as sleep on Macs?
Thanks again.
Report
arthur-kalm
14 years ago
[email protected]:~$ sudo apt-get install kpowersaver
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package kpowersaver
[email protected]:~$ sudo apt-get install kpowersave
Reading package lists... Done
Building dependency tree... Done
kpowersave is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
kpowersave: Depends: kdelibs4c2a (>= 4:3.5.1) but it is not installable
Depends: libdbus-1-2 (>= 0.60) but it is not installable
Depends: libdbus-qt-1-1c2 (>= 0.60) but 0.36.2-0ubuntu7 is to be installed
Depends: libgcc1 (>= 1:4.0.2) but 1:4.0.1-4ubuntu9 is to be installed
Depends: libpowersave10 (>= 0.12.1) but it is not going to be installed
Depends: libstdc++6 (>= 4.0.2-4) but 4.0.1-4ubuntu9 is to be installed
powersaved: Depends: libcpufreq0 but it is not going to be installed
Depends: libdbus-1-2 (>= 0.60) but it is not installable
Depends: libdbus-glib-1-2 (>= 0.60) but it is not installable
Depends: libgcc1 (>= 1:4.0.2) but 1:4.0.1-4ubuntu9 is to be installed
Depends: libglib2.0-0 (>= 2.9.3) but 2.8.3-0ubuntu1 is to be installed
Depends: libpowersave10 (>= 0.12.1) but it is not going to be installed
Depends: libstdc++6 (>= 4.0.2-4) but 4.0.1-4ubuntu9 is to be installed
Depends: libsysfs2 but it is not installable
Depends: lsb-base (>= 3.0-3) but 3.0-1ubuntu8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Should I just force the install? Thank you in advance.
Report
arthur-kalm
14 years ago
Thank you!
Report
gnemmi
14 years ago
I mean .. if I choose "Performance" my cpu will run at 30Mhz .. but if I choose "Powersave" it'll run at 2.8 Ghz XD
Note: I have a P4 2.8 with HT and the p4-clockmod is loaded ( i didn't even know that it existed .. I thought i had no frequency scaling until I read the documents that come with powersave. /etc/powersave/cpufreq is cofigured according README.P4 )
see ya !
Report
gnemmi
14 years ago
damn keyboard ...
Report
dkukawka
14 years ago
Could you write a mail to 'powersave-users AT forge DOT novell DOT com' and describe the problem? Would be useful.
Report
stoft
14 years ago
Report
dkukawka
14 years ago
some advantages:
- switchable schemes (currently 5 for different situations, root can define more if needed via powersaved)
- integrated screensaver/dpms/brightness (if supported by hw) handling
- integrated (and switchable) CPUFreq and throttling handling (if supported by hw)
- autosuspend
- integrated suspend/standby trigger (and communication with powersave while suspend process about errors and progress)
- also if no user is logged in to desktop: powermanagement is handled by powersave daemon systemwide
- you can use kpowersave also on GNOME (not sure if this would work with klaptop so easy)
- you don't need run setuid scripts or helper because the powersave daemon handle all things as root daemon
- several ppl. say: more active maintained
- the combination of powersave and KPowersave replace several other daemons: apmd, cpufreqd, powernowd ...
- ... for more see featurelist, handbook and powersave documentation
disadvantages:
- you need a aditional package (powersave), some ppl. maybe don't like this
- currently no integration in kcontrol, but we plan a kcm module
I hope this help you. If you have more questions: subscribe and mail to: 'powersave - users at forge dot novell dot com'. Btw. which distribution do you use?
Report
stoft
14 years ago
I seem to have the right modules loaded (e.g. screen dims automagically when I switch to battery).
Report
dkukawka
14 years ago
looks to me as if the powersave daemon is not running. Check if the daemon runs and if not, start.
Report