# Power Management

&Dario.Freddi;&Dario.Freddi.mail;
&Jakob.Petsovits;&Jakob.Petsovits.mail;
2024-02-09
&plasma; 6.0
Plasma
System Settings
powerdevil
power management
energy saving
laptop power

## Power Management

This settings module configures &plasma;'s power management service, also known as PowerDevil. It allows you to make trade-offs between saving energy and making full use of your system's capabilities. The power management service is integrated into your desktop and can interact with your hardware.

The module's main page shows settings that can help to save energy. Only the settings that are supported by your system will be shown. On battery-powered systems, the page provides three tabs with different settings for On AC Power, On Battery, and On Low Battery power states.

Power Management Settings Power Management Settings

Power Management Settings

### Suspend Session

There are common circumstances where you expect the system to sleep, shut down, or pause your regular desktop session in other ways. This section allows you to define how exactly your system will behave in these circumstances.

Do nothing

  Carry on with your desktop session as if nothing happened.

Sleep

  Save power and wake up quickly. Many hardware components enter a power-saving state without fully shutting down the system. Unsaved data will be lost if the power supply gets interrupted—for example when the battery is fully depleted. The degree of power savings achieved while sleeping depends on hardware and firmware provided by the system manufacturer.

  The module provides an additional drop-down setting to select the exact sleep mode to enter when "Sleep" is activated:

  Standby

    Save the current desktop session to memory. This traditional sleep mode enters sleep quickly and wakes up quickly. Battery-powered systems are often designed to last anywhere between a day and 1-2 weeks in this state. Also known as "Suspend to RAM".

  Hybrid sleep

    Save the current desktop session to both memory and a storage drive, such as an SSD or hard drive. Waking up is quick like standby, but unsaved data will survive even if power runs out while sleeping. As a downside, this sleep mode puts the most strain on your storage drive, which potentially reduces its longevity and takes longer for the system to start sleeping compared to using standby. Also known as "Hybrid suspend".

  Standby, then hibernate

    Enter standby mode initially, then hibernate after a period of inactivity. If the system only sleeps for a while, this sleep mode provides the quick wake-up times and storage drive longevity benefits of regular standby. If the system remains inactive for a longer amount of time, hibernation reduces power consumption even further and ensures that unsaved data is not lost. The amount of time until hibernation is defined by your low-level system configuration. Also known as "Suspend, then hibernate".

Hibernate

  Save the current desktop session to your storage drive and power off. Hibernating and restoring the session takes longer than sleep in standby mode, but unsaved data will not be lost if the power supply gets interrupted. Hibernation is widely supported across different kinds of hardware, as long as your storage drive is set up with a large enough swap partition to store the contents of your system memory. Also known as "Suspend to disk".

Shut down

  Log out of your desktop session and any other open sessions, then power off the system. Open applications will ask to save any unsaved data before closing. For future sessions, application state is only restored to the extent that the application itself supports it.

Lock screen

  Lock the screen without reducing power consumption. To save power while also locking the screen, select "Sleep" or "Hibernate" and ensure that locking after waking from sleep is enabled in the Screen Locking settings module. Note that the Screen Locking module provides a separate setting for locking after a period of inactivity, so this is only available as a power button or laptop lid action.

Show logout screen

  Present a dialog with options to sleep, hibernate, shut down or log out. This is only available as an option when pressing the system's physical power button.

Turn off screen

  Fade to black and turn off the display backlight. The "Display and Brightness" section has its own setting for turning off the screen, independent of the inactivity action configured in "Suspend Session".

### Display and Brightness

Laptop displays and keyboard backlights account for much of the power draw of an otherwise idle laptop. Large monitors often draw more power than an entire laptop including its display. Certain kinds of displays are susceptible to burn-in or stuck pixels depending on the usage pattern. For all of these reasons, it helps to reduce brightness or turn off displays and backlights altogether if they're not needed.

Change screen brightness / Change keyboard brightness

  Define a brightness level to set when switching between On AC Power, On Battery, and On Low Battery power states.

  Screen and keyboard brightness can also be changed on the fly through the Brightness and Color applet, as well as with keyboard shortcuts. Changing brightness on the fly will not affect the settings in this module. If no brightness level is set in this settings module, the brightness will remain the same when switching between power states.

Dim automatically

  Reduce screen brightness after a period of inactivity. When user activity is detected again, the screen will return to its previous brightness level.

Turn off screen

  Fade to black and turn off the display backlight after a period of inactivity. When user activity is detected again, the screen will turn on again. A shorter wait time can be set for when the screen locker is active.

### Other Settings

Switch to power profile

  Define system performance characteristics to set when switching between On AC Power, On Battery, and On Low Battery power states. A power profile such as Power Save, Balanced and Performance allows you to trade off performance vs. power consumption, which also affects the levels of heat and fan noise your system will produce.

  Power profiles can also be changed on the fly through the Power and Battery applet, as well as with keyboard shortcuts. Changing power profiles on the fly will not affect the settings in this module. If no brightness level is set in this settings module, the brightness will remain the same when switching between power states.

Run Script

  Configure a custom script to run when switching between On AC Power, On Battery, and On Low Battery power states, or after a period of inactivity.

### Advanced Power Settings

Advanced Power Settings Advanced Power Settings

Advanced Power Settings

Open this page by pressing the button in the corner of the settings module's main page.

Battery Levels

  These settings are only displayed on battery-powered systems.

  Low level

    Below this percentage, the battery charge will be considered low. If the system is unplugged, settings from the On Low Battery profile will be used instead of On Battery.

  Critical level

    Below this percentage, the battery charge will be considered at a critical level.

  At critical level

    Define the action that will be performed when the battery charge reaches the critical level.

  Peripheral devices

    Below this percentage, the battery charge for peripheral devices &eg; a wireless mouse will be considered low.

Charge Limit

  These settings are only displayed if the system supports charge limits for its battery.

  Regularly charging the battery close to 100% or fully discharging it close to 0% can cause it to deteriorate faster. By limiting the maximum battery charge, you can help extend your battery's lifespan.

  Different sources recommend different charge levels for lithium-ion batteries. The general consensus among available research indicates that keeping your battery within the 25%-75% range is optimal to retain its capacity over the years. A range of 15%-85% still significantly increases battery life compared to wider ranges.

  Note that battery lifespan is mainly affected by its charge level over time, more so than the number of charging and discharging cycles.

  Stop charging at

    The upper charge limit for your battery. Once this level is reached, the battery is considered fully charged and the system won't charge it any further.

  Start charging once below

    The lower charge limit. Once the battery discharges past this level, the system will start charging it again. This can be a little lower than the upper limit, or the same percentage to keep drawing power while the battery charge remains constant.

  Some systems require unplugging the power cable and reconnecting it before the settings are respected. Some systems don't store charge limits when powered off. Be aware of possible limitations.

## PowerDevil Runner

PowerDevil can be manually controlled through &krunner; (&Alt;F2). This makes changing brightness, power profile, 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 power profile using this keyword. All available profiles will be shown in form of &krunner; matches.

`screen brightness` or `dim screen`

  You can control screen brightness through this keyword. In this form, some &krunner; matches that let you run common power 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`, `sleep`, `hibernate`, `to ram` or `to disk`

  You can set your computer into a low power mode through these keywords. Available methods will be shown as &krunner; matches.