Parch Linux Wiki

Comprehensive Power Management and Battery Optimization Guide

Comprehensive guide to optimizing laptop battery life, managing CPU governors, and configuring power management on Parch Linux.

A comprehensive guide to optimizing power consumption, prolonging laptop battery life, and managing thermal scaling on Parch Linux.

1. Understanding Linux Power Architecture

Modern Linux kernels include sophisticated CPU frequency scaling governors, deep sleep states (C-states), and runtime power management interfaces for PCI Express controllers. Because hardware vendors target diverse operating systems, default kernel configurations often balance toward high throughput rather than maximum energy conservation, which can result in faster battery drain on mobile machines.

Dedicated power management services solve this discrepancy by modulating processor boost behavior, gating unused PCI devices, and tuning disk sleep timers when running on battery power.

Before configuring any power optimization software, ensure that competing power daemons are not running concurrently. Running multiple conflicting services (for instance, TLP and power-profiles-daemon simultaneously) leads to race conditions, conflicting ACPI instructions, and unpredictable system behavior.


2. Desktop Standard: power-profiles-daemon

Parch Linux desktop installations featuring GNOME or KDE Plasma include power-profiles-daemon as the default power mediator. It integrates directly with desktop UI controls and exposes three discrete operational states:

  1. Power Saver: Restricts maximum CPU frequencies and disables turbo boost behavior to prolong battery duration.
  2. Balanced: Standard adaptive profile matching CPU frequency to active workload requirements.
  3. Performance: Maximizes performance thresholds and locks higher frequency states for demanding computation.

You can inspect the active profile via the terminal:

powerprofilesctl

To switch profiles from command line environments or custom scripts:

powerprofilesctl set power-saver

For general users, power-profiles-daemon is the safest choice because desktop environments automatically coordinate screen brightness, power states, and system notifications through its D-Bus interface.


3. Intelligent Dynamic Scaling with auto-cpufreq

If you need deeper battery savings without sacrificing desktop responsiveness, auto-cpufreq is an advanced automatic power optimizer designed specifically for modern laptops. Instead of keeping the system locked in a single rigid profile, it continuously monitors active CPU load, system temperatures, and power source changes. When connected to AC power, it unlocks full CPU performance; when unplugged, it seamlessly switches governors and caps turbo frequencies to eliminate battery waste.

Installing and Enabling auto-cpufreq

Because auto-cpufreq manages the same CPU scaling interfaces as power-profiles-daemon, you must first mask the default desktop daemon:

sudo systemctl stop power-profiles-daemon
sudo systemctl mask power-profiles-daemon

Install the package from official repositories:

sudo pacman -S auto-cpufreq

Run an interactive monitoring session to observe how the daemon evaluates your hardware under load:

sudo auto-cpufreq --live

Press Ctrl+C to exit the live viewer. Once satisfied with the proposed adjustments, install and register the persistent background service:

sudo auto-cpufreq --install

This registers and starts auto-cpufreq.service. The daemon runs quietly in the background and applies optimal power states across sleep, AC, and battery events.


4. Advanced Hardware Tuning with TLP

For users requiring fine-grained control over individual hardware peripherals (such as disabling USB autosuspend on specific input devices, toggling PCIe ASPM links, or managing Wi-Fi power saving states), TLP provides comprehensive modular configuration.

Install the TLP packages:

sudo pacman -S tlp tlp-rdw

Ensure power-profiles-daemon is masked before starting TLP:

sudo systemctl stop power-profiles-daemon
sudo systemctl mask power-profiles-daemon
sudo systemctl enable --now tlp.service

The master configuration file is located at /etc/tlp.conf. You can inspect a comprehensive diagnostic summary of battery health, power states, and device policies by running:

sudo tlp-stat -s

5. Intel Thermal Throttling Mitigation: thermald

Laptops equipped with Intel Core processors can suffer from aggressive thermal spikes that trigger fan noise and sudden throttling. Intel open-sourced the thermald daemon to proactively balance thermal zones before hardware limits force drastic frequency drops.

Install and enable the service:

sudo pacman -S thermald
sudo systemctl enable --now thermald.service

The daemon automatically reads motherboard thermal sensors and applies optimal cooling policies. It operates safely alongside auto-cpufreq and power-profiles-daemon.


6. Battery Health Preservation: Charge Thresholds

Constantly maintaining a laptop battery at 100% capacity while tethered to wall power accelerates chemical degradation. Modern laptop controllers allow users to define charge thresholds, instructing the hardware to cease charging once the battery reaches 80% or 60%.

The Linux kernel exposes these thresholds directly through the /sys/class/power_supply/ virtual filesystem.

ASUS Laptops

On modern ASUS laptops loaded with the asus-wmi module, set an 80% ceiling with:

echo 80 | sudo tee /sys/class/power_supply/BAT*/charge_control_end_threshold

Lenovo ThinkPad

On ThinkPad systems, install tlp and set the start and stop limits directly:

sudo tlp setcharge 75 80 BAT0

To persist threshold values across system reboots, create a custom systemd unit or udev rule that writes your chosen limit to /sys/class/power_supply/ during early boot.


7. Interactive Diagnostics with Powertop

When diagnosing unexpected battery drain, Intel's powertop utility displays real-time wattage consumption and identifies which processes, wakeups, or hardware interfaces consume the most energy.

Install and launch the tool:

sudo pacman -S powertop
sudo powertop

Navigate to the Tunables tab to review hardware power states. Devices marked with Bad operate in unoptimized power modes and can be toggled to Good by pressing the Space bar.

To calibrate measurement sensors for accurate discharge metrics, run a one-time calibration cycle while running on battery:

sudo powertop --calibrate