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]

stoft

13 years ago

dbus, libdbus-qt and libdbus-glib were updated in the Debian testing repository
today (all to version 0.61-4) and now I have all the menus. Suspend to RAM works out of the box (except for the wifi NIC which I need to restart). Suspend to disk doesn't work but it says I'm lacking resume in the kernel config so I guess I need to do a bit of configuring. Looking good though, thank you!

Report

stoft

13 years ago

Ok, thanks for the quick reply. I'll have to think about it a bit and study it a bit. Right now KLaptop seems to be working pretty ok. It has performance profiles, suspend/hibernate, screen brightness and some other things. I'll have to give it a bit more testing before I decide where to put my marbles.

I'm using Debian testing.

Report

poliicallycorrect

13 years ago

I get error message:
"swap partition '' is not available, cannot suspend to disk."

Report

C

dkukawka

13 years ago

I think this message say all ... the powersave daemon could not find a active swap partition for suspend. What say 'cat /proc/swaps' ?

Btw. If you have a problem with powersave or KPowersave: subscribe (http://forge.novell.com/modules/xfmod/maillist/?group_id=1438) and mail to 'powersave - users at forge dot novell dot com' . We can provide there a better support for users than here ;-)

Report

gnemmi

13 years ago

Hi !

It seem's like a pretty interesting app ..

I was wondering ... does it have support for the omnibook kernel module?? (http://sourceforge.net/projects/omke/)

Thanks you =)

Report

C

dkukawka

13 years ago

I added lcd brightness support for the omnibook kernel module to powersave. It should be supported with the next release of powersave. Btw. I also have a Omnibook, but we didn't anythink for this module before because unload module was not working with 2.6.x kernel (seems as if it is fixed now.).

Btw. What other than lcd brightness are you missing?

Report

gnemmi

13 years ago

First: thanks for your interest in my post, for your kind answer, for adding lcd brightness support to kpowersave, and for asking what else do I miss ... I really aprecciate that .. =D

Second: long post coming your way XD

Yes, we all have omnibook compatible notbooks, it's just that most users don't know it yet =P

It's sad that the omnibook kernel module is not as developed as it deserves to be (I mean, there's an awfull lot of omnibook compatible notebook out there ... *most* toshiba satellites and even some Tecras, like A3, a lot of Hp's notebooks, Acer notebooks, etc, etc, etc ... ).

Maybe someday, novell or red hat, or some corporation with enough men power for that matter, will realize that half of the notebooks out there need this module, and not acpi, ac, battery, fan, button, etc, etc ... As it stand, the omnibook kernel module hasn't had any real development for more than a year now (except for the "unload" issue in 2.6.x kernels) and it really needs it in some areas.

Anyway, What other than lcd brightness are you missing?

Toogle lcd backlight on/off support ... that's power saving! =D

Others? ... Mmmm, well, according to your descrption of kpowersave, it can:

- applet icon with information about AC state, battery fill and battery (warning) states
- applet tooltip with information about battery fill and remaining battery time/percentage
- KPowersave contains a detailed information dialog (on left mouse button on the applet icon):
* CPU Frequency information
* Battery information
* Current scheme and CPU Freq. policy, AC state, powersave state

It would be really interesting if kpowersave could get the all those values from the omnibook kernel module instead of getting them from some place else ( /proc/acpi/* ? ... I really don't know where it gets them from ... sorry =( ) if it finds that there's an omnibbok kernel module present on the system ( just like cpuinfo does http://www.kde-apps.org/content/show.php?content=33257 ) ktoshiba devel is also working on something like that http://ktoshiba.sourceforge.net/ ). The values under /proc/acpi/* , for example, are usually bogus on machines that have dsdt issues or that should be running the omnibook kernel module ( all of those with Phoenix bioses ?? ). That way, i could get rid of most acpi (acpi, battery, ac, fan, etc .. ) related modules and get to use omnibook instead ( which, does report more accurate values, at least in my case, and presumably in most other cases and is more features rich ) thus avoiding the loading of unnecessary kernel modules.

Thanks for reading =)
And just in case you need some extra info, well, you can find me here, or in my mail/im addresses.

See ya =D

Report

coogor

13 years ago

Hi,
I tried to install kpowersave:
rpm -Uhv kpowersave-0.5.9-1.1.SUSE10.i586.rpm
error: Failed dependencies:
powersave-libs >= 0.12.1 is needed by kpowersave-0.5.9-1.1

But:

rpm -qa powersave
powersave-0.12.2-0.1

Seems that the dependencies of kpowersave are not set correct...

Report

C

dkukawka

13 years ago

The error is full correct. What say the error?: powersave-libs >= 0.12.1 but you searched for powersave. I think you did not installed the powersave-libs package.

Report

coogor

13 years ago

Sorry, I missed that there is now a third package to install - up to now there were only two as far as I could remember

Report

C

dkukawka

13 years ago

Yes, we moved the libarys to a own package (powersave-libs) as we also have now a devel package. I chanage the dependency list here and add powersave-libs.

Report

mononoke

13 years ago

Hi,

i think it would be nice, if all laptop-funktions inside kpowersave would be deactivated or disabled, if kpowersave is installed on non-laptop systems (means usual PC without battery) even if laptop support (kdeutils3-laptop) is installed.

event: closing-lid for example makes no sense on non-laptop systems.

my my system (usual Desktop PC, AMD 64bit Venice core, Cool&Quiet) i am using Kpowersave for switching CPU-freq. manually)

thanks

Report

C

dkukawka

13 years ago

There is currently in the actual version only one laptop specific issue visible for on non-Laptop machines: the "lock screen on lidclose" checkbox in the configure dialog. All other things are not visible or have no effect to the user if he run kpowersave on e.g. a workstation. There is also nothing we can or should hide in the applet menu. All these items work and make sense also on workstations. And if there is e.g. no lid button there is also no lidevent send by powersave ... means: nothing happens.

Btw. I changed the code to display the lidclose related checkbox only if the machine is a laptop.

Report

Blackcrack

13 years ago

Hy,

[root@blackysgate2 etc]# ls *-rel*
mandrakelinux-release@ mandrake-release@ mandriva-release redhat-release@
[root@blackysgate2 etc]# more mandriva-release
Mandriva Linux release 2006.1 (Cooker) for i586
[root@blackysgate2 etc]# urpmi /home/blackcrack/bearbeit/powersave-0.9.25-3.1.i586.rpm
Einige der gewünschten Pakete können nicht installiert werden:
powersave-0.9.25-3.1.i586 (wegen nicht erfüllter Abhängigkeit von libresmgr.so.0.9.8 )
Wollen Sie trotzdem fortfahren? (J/n) n
[root@blackysgate2 etc]#

humm... and how manny packet more ?

no, no, not my game.. but.. why dont use Mandriva not powersave ? %|

regards
Blacky

*quit*

Report

C

dkukawka

13 years ago

Sorry, this old (and no longer supported) package is a SUSE rpm. You can't use this package on Mandriva and also not with the current KPowersave version.

If you compile for Mandriva you don't need resmgr, this _was_ SUSE specific. Btw. I suppose you compile and install a actual powersave and KPowersave version. Unfortunatly we currently have no rpms for Mandriva - I had problems with connect powersave to dbus my testinstallaion of Mandriva ... but you can try it (with powersave 0.12.1 and KPowersave 0.5.9). If you need more help: feel free to subscribe and write to powersave-devel@forge.novell.com.

Report

C

dkukawka

13 years ago

As you can see, I released today packages for Mandriva 2006.1. You need to update HAL, DBUS and maybe also cpufrequtils. Don't forget also to download and install powersave from the sf.net project homepage.

Report

Blackcrack

13 years ago

humm.. dammed..
Hey nice proggy.. but i dont have the powerlib in mandriva..*grummel* :


detected distribution: RedHat # *roftl*
enabled debug messages: no
enabled YaST menu entry: no #*tzzhhh*
checking powerlib.h usability... no
checking powerlib.h presence... no
checking for powerlib.h... no
configure: error: You need to install powersave-devel.
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.66954 (%build)

and i had think:
$%&$%&(()%/&§%/(/%&§%% !!!!!

dammed... but, i had try it..

greetings..
Blacky

Report

C

dkukawka

13 years ago

If you take a look at the description you need powersave to run (and compile) KPowersave. You can find the powersave package also on the sourceforge project side: http://sourceforge.net/projects/powersave

If configure has detected your distribution as Redhat you have this file: /etc/redhat-release. Is there also this file: /etc/mandrake-release or something like that?

The yast check is in there because KPowersave was developed for SUSE and we have there a special YaST module to configure the powersave daemon. This message is thus correct and no problem.

Report

rickvernam

13 years ago

Okay, downloaded src, un-tarred...
went to ./configure --prefix=... and said there was no configure
opened the kdevelop project - it wanted to run automake and friends...then it stopped, saying 'There is neither a Makefile.cvs file nor an autogen.sh script in the project directory'
I tried dling from two mirrors...same thing from both.
Running Gentoo...for what that's worth.
So...ah...what to do bout that?

Report

C

dkukawka

13 years ago

Take a look at the README how to compile the project. Or take a look at http://www.mail-archive.com/powersave-devel@forge.novell.com/msg00264.html for instructions to build on Gentoo.

Report

rickvernam

13 years ago

okay, I read over this part:
make -f admin/Makefile.common cvs

I've never seen that before...

Report

shades

13 years ago

well, i've posted this on sourceforge some time ago but i got no answer. i can't suspend my comp, neither manual nor automatically. i can't suspend to ram, to disk and i can't standby. any ideas why this is happening? when i try to do any of this, my ipw2200 module is unloaded but nothing else happens...
i'm running gentoo-2.6.15-r1 and i have all dependencies installed and daemons running fine. oh i have ACPI compiled in kernel but no APM. is this necessary?

everything else seems to be running fine.

need a little help here

Report

C

dkukawka

13 years ago

Please write a mail to powersave-users@forge.novell.com and we will help you there. It's much easier on a mailinglist instead of @kdeapps.org

Report

hothead

13 years ago

Hi,
i managed to install powersave and kpowersave on gentoo here, but kpowersave has to be started as root to be able to connect to the powersave daemon. What must I change to run it as user?
Furthermore the autosuspend feature doesn't work. I also tried it when kde runs as root, but no go.
Any suggestion?

Regards,
Ruben

Report

C

dkukawka

13 years ago

I think this is a gentoo specific problem with the D-BUS settings. Normaly you don't need to start kpowersave as root. This was not needed on any other distribution before. You could take a look at the sourceforge help-forum or at the powersave-devel mailinglist. There was already a thread about problems on Gentoo.

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 26
System Tags app software