KPowersave

System Software

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

0
7.9
Description:

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)
Last changelog:

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

13 years ago

Can you please elaborate on the relationship between powersave and KDE's laptop options?
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

C

dkukawka

13 years ago

powersave and kpowersave replace klaptop (I think you mean this with 'KDE's laptop options') complete. You should stop or/and remove klaptop from your system if you run powersave and KPowersave.

To say more, I need to know, what you mean with "KDE's parameters".

Report

liquidat

13 years ago

Thanks for this info, you should add it somewhere in the program description above.

liquidat

Report

elahav

13 years ago

Control Centre->Power Control->Laptop Battery
It seems to be the same thing as klaptop.

Report

C

dkukawka

13 years ago

No, it's not the same, this is the kcm of klaptop - it's the same. I would say, powersave and KPowersave provide together full the same (and more) functionality. If you miss something, let us/me know.

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

13 years ago

1. I'm not sure from the first line of your response whether it is or isn't the same thing...
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

C

dkukawka

13 years ago

1.) What I would say: This is simply the kcontrol module of klaptop.
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

C

dkukawka

13 years ago

As you can see I added a link to fresh build packages for Fedora Core 5.

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

13 years ago

2. 'make dist' is no longer supported by autotools. I have my own script for publishing software, which basically checks out a module from CVS, runs make -f Makefile.cvs and then tar's and gzip's the result.
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

13 years ago

Why does KPowersave need an extra damone? gnome-power-save seems to only rely on hal&dbus and does not need a daemon.

Report

C

dkukawka

13 years ago

g-p-m follows a complete and IMO also complete wrong concept (see for example discussion on: http://thread.gmane.org/gmane.comp.freedesktop.hal/3471).

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

13 years ago

Thanks for the clarification. Has there been any progress from the gpm people in the direction of a common powersave daemon since then?

Report

C

dkukawka

13 years ago

A simple answer? No!

Report

arthur-kalm

13 years ago

Hi, it seems that powersaved is not starting automatically when my computer boots. However, the script to start it up, in /etc/init.d/powersaved is there. Why could this be?

Thank you for your help.

Report

C

dkukawka

13 years ago

Which distribution do you use?

Report

arthur-kalm

13 years ago

Hi, I have actually solved this problem. I am using Kubuntu Breezy and powersaved was complaining that I did not have acpid installed when I actually did.

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

13 years ago

Hi I am currently experiencing a dependency hell... I have Kubuntu Breezy. I added the repository (http://www.teco.edu/~biebl/ubuntu) and here is what I get when I try to install it.

rthur@ubuntu:~$ sudo apt-get install kpowersaver
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package kpowersaver
arthur@ubuntu:~$ 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

13 years ago

Hmm... well I forced the install... it removed those packages and actually allowed me to upgrade my system. I did the latest upgrade and then tried installing again and it worked! I will test it out more but it seems to be working well :)

Thank you!

Report

gnemmi

13 years ago

Is it possible for the CPU frequency policy schemes to be inverted??

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

13 years ago

I meant 350 Mhz =P
damn keyboard ...

Report

C

dkukawka

13 years ago

Hm ... this sounds strange. Did you change anything the the powersave configuration?

Could you write a mail to 'powersave-users AT forge DOT novell DOT com' and describe the problem? Would be useful.

Report

stoft

13 years ago

What are the differences in respect to Klaptop? Advantages, disadvantages for example...

Report

C

dkukawka

13 years ago

It's not easy to say ... this is _my_ opinion as maintainer/developer ... I don't want to blame the developers of klaptop ... and at least I used klaptop not since years, because KPowersave is since years the default on SUSE and no longer available in SUSE 10.1.

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

13 years ago

Hi again. Switched to kpowersave out of curiosity and because suspend/hibernate was not working as it should under Klaptop. The problem I have now is that under kpowersave I have no menus except "help", which isn't very helpful in this case. Any idea what I'm missing/went wrong?

I seem to have the right modules loaded (e.g. screen dims automagically when I switch to battery).

Report

C

dkukawka

13 years ago

Hi,

looks to me as if the powersave daemon is not running. Check if the daemon runs and if not, start.

Report

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]

12345678910
product-maker Count:452 Rating: 7.12
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
v0.7.3-unstable
updated Oct 29 2007
added Sep 19 2005
downloads today
0
page views today 20
System Tags app software