Linux Power Monitoring

powertop — power usage analyzer and tuner

powertop analyzes power consumption on Linux systems and helps identify processes and kernel components that prevent optimal power saving. Originally developed by Intel for tuning laptop battery life.

What powertop is good for

Note: powertop often requires root privileges to access full hardware counters.

Install

# Debian/Ubuntu
sudo apt install powertop

# RHEL/CentOS/Fedora
sudo dnf install powertop

# Arch
sudo pacman -S powertop

10 Practical Examples

1) Run powertop interactively

sudo powertop

Launch interactive TUI interface.

2) Generate calibration data

sudo powertop --calibrate

Improves measurement accuracy. May take several minutes.

3) Apply recommended tunings

sudo powertop --auto-tune

Applies power-saving suggestions automatically.

4) Generate HTML report

sudo powertop --html=report.html

Creates detailed report for later analysis.

5) Run for a fixed time then exit

sudo powertop --time=30

Collect data for 30 seconds and exit.

6) Observe wakeups per second

sudo powertop

Check the “Wakeups/s” column to find noisy processes.

7) Identify device power states

sudo powertop

Review device tab to see PCI and USB power usage.

8) Check CPU C-states

sudo powertop

Verify deeper sleep states (C6, C7) are being used.

9) Save tunings to system startup

sudo powertop --auto-tune
# then consider creating a systemd service

Persist recommended tunings across reboots.

10) Compare before and after tuning

sudo powertop --html=before.html
sudo powertop --auto-tune
sudo powertop --html=after.html

Measure impact of applied optimizations.

Notes & Gotchas