PowerDevil

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

2
Score 50.0%
Description:

--- ATTENTION ---

This page will be no longer updated, just like 4.1 backports, now that 4.2 is out. PowerDevil is now in kdebase module, so from 4.2 on there is no need to download/install it as a separate application. Please use bugs.kde.org for bug reports/feature requests/whatsoever. Thanks for testing and trying PowerDevil in 4.1, we have a rock solid powermanager in 4.2 mostly thanks to you!

PowerDevil is an utility for KDE4 for Laptop Powermanagement. It consists of a Daemon (a KDED module), a KCModule to configure it, and will feature a Plasmoid soon.

With PowerDevil you can set up preferences for lid Closing, Brightness, CPU scaling, Idle time, both when connected to AC and when on Battery. It is built upon Solid, and it's very lightweight and won't overkill your system resources. If you missed KLaptop or KPowersave, this might be the tool you were looking for.

PowerDevil is part of kdebase from 4.2 on. This means it's included in kde core releases and you no longer need to compile it as an external application.

Though, I keep a branch and a tarball updated for people on KDE4.1. Enjoy it!

-- Changelog for the 4.1 branch --

1.4.2
* Another round of critical fixes. Packagers, again, please update as soon as possible.

1.4.1
* Fixes 2 critical bugs in 1.4.0. It's a critical upgrade, packagers, please upgrade as soon as possible

1.4.0
* Yet another backport from trunk

1.3.0:
** Now PowerDevil is hosted on KDE FTP **
* Fixed a lot of bugs
* GUI/Feature Improvements, backported everything that was in trunk

1.2.0:
* Solved some bugs
* Moved config to KSharedConfig
* Added sensible defaults

1.1.1:
* Solved a critical bug that caused kded4 crash on startup

1.1:
* Backported fix for profile import
* Backported GUI improvements
* Backported various fixes

riteshsarraf

11 years ago

That's what I think. But I've not been able to determine the actual package.

Here's what is installed.

ii xscreensaver 5.05-3 Automatic screensaver forX
ii xscreensaver-data 5.05-3 data files to be shared among screensaver frontend.

Do you guys have an idea what -dev package it is (Debian)?

Report

C

drf

11 years ago

I found this guide http://www.heutediewelt.nl/2008/09/switch-to-kde-4-and-compiling-powerdevil/ , obviously the svn address is now outdated, but it should be what you're looking for :)

Report

riteshsarraf

11 years ago

Thank you very much. That helped.

Report

riteshsarraf

11 years ago

So I successfully installed and ran it.

Here's some observation:
My current power manager is powersaved. * When using PowerDevil, I see only 1 profile, Performance.
* The CPU temp rises to 86 degree celsius. With powersaved, it was 55.
* Some kded crashes occured.

Report

C

drf

11 years ago

Well, there are still no defaults, you have to create your profiles and assign them. The default profile puts the system in performance mode, so it's quite expected your CPU temperature rises :)
About the crashes, can you please provide backtraces?

Report

foss

11 years ago

I get this error when I run "make":


make[2]: *** No rule to make target `/usr/share/dbus-1/interfaces/org.freedesktop.ScreenSaver.xml', needed by `daemon/screensaver_interface.cpp'. Stop.
make[1]: *** [daemon/CMakeFiles/kded_powerdevil.dir/all] Error 2
make: *** [all] Error 2

Am I missing a dependency?

Report

C

drf

11 years ago

Yeah, that interface is installed by KRunner, so you eventually miss one, check in your distro forums what's missing.

Report

foss

11 years ago

well, it seems the file org.freedesktop.ScreenSaver.xml is located in /usr/lib/kde4/share/dbus-1/interfaces/ instead of /usr/share/dbu..., copying it to the latter directory solved the problem and it compiles now. I am running Kubuntu 8.04, and I guess this might be a distro thing.

Report

foss

11 years ago

nevermind that.. compiling works fine, but no new option appears in system-settings

Report

Kraplax

11 years ago

Found the reason - if you compiled and installed the stuff with that
cmake -DCMAKE_INSTALL_PREFIX=/usr
in Kubuntu 8.04 then it won't work - the thing is KDE4 is installed into /usr/lib/kde4 thus everything kde related should be installed there. So, just instead of ...PREFIX=/usr it should be ...PREFIX=/usr/lib/kde4
The system settings control module will appear under advanced tab. But i haven't found any plasmoid for it. i'll search better for it, though...

Report

dbglt1

11 years ago

Tried from both svn and the tarball. Built and installed succesfully.

My problem is that the plasmoid just displays a little black box (no image).

Also, I can change the settings in systemsettings module, but it doesn't actually seem to have any effect (ie. brightness not dimmed, cpu not slowed, etc.)

Not sure what's going on!

Report

C

drf

11 years ago

It does work, the plasmoid is still being worked on. Check if PowerDevil service is running under "Services" in systemsettings. Then be assured to configure correctly your profiles, refer to the manual if you're in doubt (svn version)

Report

C

drf

11 years ago

It does work, the plasmoid is still being worked on. Check if PowerDevil service is running under "Services" in systemsettings. Then be assured to configure correctly your profiles, refer to the manual if you're in doubt (svn version)

Report

kappa011

11 years ago

How does one go about compiling and installing this app?

Report

C

drf

11 years ago

Rather simple: it just builds like any other KDE app (cmake . -DCMAKE_INSTALL_PREFIX=/usr && make && make install).
Once done that, relogin. In systemsettings you'll find a new module, configure powerdevil from it, and you're done.

Report

duanmaotu

11 years ago

CMAKE success. but make failed:

make[2]: *** No rule to make target `/usr/share/dbus-1/interfaces/org.freedesktop.ScreenSaver.xml', needed by `daemon/screensaver_interface.cpp'. Stop.
make[1]: *** [daemon/CMakeFiles/kded_powerdevil.dir/all] Error 2
make: *** [all] Error 2

Report

duanmaotu

11 years ago

make still failed. the missing file from krunner is located at:
/usr/kde/4.1/share/dbus-1/interfaces/

instead of /usr/share/

Report

duanmaotu

11 years ago

sorry for the duplicated one :(

Report

kappa011

11 years ago

Thats what I thought, but...

I extracted the tarball, cd'd to the directory, created a build directory and cd'd to it.

Then

cmake . -DCMAKE_INSTALL_PREFIX=/usr && make && make install

and I get the following:

-- The CXX compiler identification is unknown
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a
simple test program.

It fails with the following output:





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done


-------------------
No difference if I run sudo.

Paul

Report

C

drf

11 years ago

Looks like you're missing a compiler. Try installing g++ and gcc and retry, ask on your distro forums what packages you need to set up a building environment

Report

lbbros

11 years ago

First of all, thanks for this application! I have been waiting for a KDE4 powermanagement tool.

The "layout issues" I am mentioning in the subject refer to the dialog size of the KCM module, which, when not embedded in systemsettings, is way too large for small screens such as the one of the Eee PC 900 (1024x600) I tested it on.

Also, a question: does Powerdevil obtain information on supported capabilities of the hardware with interaction through Solid alone? If so I have to see why it's not picking up the suspend modes for my Eee.

Report

C

drf

11 years ago

I'll try my best to reduce its size. Powerdevil does everything through solid, though solid can't recognize your suspend methods, you can verify this by using "solid-powermanagement" shell.

And yes, it's meant to replace kpowersave, its inclusion in kde is being discussed these days.

Report

collinm

11 years ago

does it's suppose to replace kpowersave?

Report

arjantop

11 years ago

i love it

two things are missing:
- when I go over the plasmoid with my mouse I woud like to see current CPU speed

- with right-clicking plasmoid it would be great if there would be an option to select CPU policy/profile

Report

C

drf

11 years ago

The plasmoid is being discussed on the lists by the time we speak and it's still not ready, though your requests are already planned :)

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
eRSZ
Mar 01 2009
Yaba
Feb 01 2009
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.2
updated Feb 01 2009
added Jul 12 2008
downloads 24h
0
pageviews 24h 10
System Tags app software