# Power Management

&Dario.Freddi;&Dario.Freddi.mail;
2010-11-29
&kde; 4.6
KDE
System Settings
powerdevil
power management
laptop power

## PowerDevil, a Power Management Daemon

This module is a configuration tool for managing Power Management in &kde;. It is a configurator for the PowerDevil daemon, that you can start or stop from the Service Manager module.

Through this module, you can define your computer's behavior in various situations, allowing you to save as much energy as possible.

Powerdevil works with Solid only and it's integrated in your desktop. You won't even notice it is running, apart from notifications. Moreover, Powerdevil checks your system capabilities first, so you'll see only options available for your system in this module.

Note that PowerDevil does not poll your system. This means that it will not waste energy while trying to save it, as some other power managers do.

### Global Settings

Here you can configure some general options for the module.

#### Settings and Profile

Lock screen on resume

  When this box is checked, every time the PC gets suspended, the screen will be locked when resuming.

Configure Notifications

  If you want a deeper control over your notifications, you can refine them by clicking this button

Profiles Assignment

  In this section you have to assign your profiles to the specified situations. You can edit and create new profiles on the Power Profiles page. Every time one of that events will be triggered, the chosen profile will be activated.

#### Advanced Battery Settings

When battery remaining is critical

  Defines the action that will be done when battery reaches the critical level.

Battery is at low level at

  Here you can set the percentage after which the battery will be considered low.

Battery is at warning level at

  Here you can set the percentage after which the battery will be considered at warning level.

Battery is at critical level at

  Here you can set the percentage after which the battery will be considered at critical level.

### Power Profiles

In this section you can edit, create and delete PowerDevil profiles. The list on the left shows you all currently available profiles. Select the one you want to edit, and tweak it with the options you see on the right, described hereafter. You can create or delete an existing profile thanks to the buttons you see at the bottom of the list, or you can even import profiles from a file, or export your existing ones to a file.

There are a lot of options you can configure for each profile:

Display Brightness

  Sets the screen's brightness using a slider.

Dim Display

  If checked, the display will be progressively dimmed, until reaching brightness 0, in the amount of time you specify in the spin box.

Screen Energy Saving

  Here you can define power saving for your monitor. The check box defines if DPMS support should be enabled or disabled. If you choose to activate it, set the timeouts in the spin boxes below.

Suspend Session

  Suspends the session after the selected time to the status Sleep, Hibernate, Shutdown or Lock screen.

Button events handling

  Select actions to perform whenever the laptop lid is closed or a button is pressed.

Disable desktop effects

  &kwin; compositing will be disabled, if active. It will be re-enabled when a profile that does not have this option gets loaded.

Run Script

  Activate this option to run a custom script when a profile is loaded, unloaded or after a given amount of time.

## PowerDevil Runner

PowerDevil can be manually controlled through &krunner; (&Alt;F2). This makes changing profile, brightness, governor and more much easier and faster. The runner has various keywords you can enter to access its functions

### Runner Keywords

Here comes a list of keywords you can enter in &krunner; to perform PowerDevil related actions.

Power Profile

  You can manually choose a profile using this keyword. All available profiles will be shown in form of &krunner; matches.

Power Scheme

  Lets you manually set the system powersaving scheme. Available schemes will be shown as &krunner; matches.

Screen Brightness

  You can control screen brightness through this keyword. In this form, some &krunner; matches that let you do some common actions will be shown. If you enter a value after the keyword (&eg;: `Screen Brightness 50`), the brightness will be set to that value.

Suspend

  You can suspend your pc through this keyword. Available suspend methods will be shown as &krunner; matches.