LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cpupower

CPU power management and tuning tools

TLDR

List all CPUs
$ sudo cpupower -c all info
copy
Set power-saving governor for all CPUs
$ sudo cpupower -c all frequency-set --governor powersave
copy
Show available governors for CPU 0
$ sudo cpupower -c 0 frequency-info -g | grep "analyzing\|governors"
copy
Get CPU 4's hardware frequency
$ sudo cpupower -c 4 frequency-info -w -m
copy

SYNOPSIS

cpupower [-c cpus] subcommand [options]

DESCRIPTION

cpupower is a collection of tools for CPU power management and tuning. It replaces the older cpufrequtils package and provides unified access to frequency scaling, idle states, and power features.Subcommands include frequency-info, frequency-set, idle-info, idle-set, and monitor.

PARAMETERS

-c, --cpu cpus

Specify CPU(s) to operate on (e.g., 0, 1-3, all)
frequency-info
Show current frequency settings.
frequency-set
Modify frequency settings.
idle-info
Show idle state information.
idle-set
Enable/disable specific idle states.
monitor
Report CPU frequency and idle residency statistics.
info
Show kernel configuration and hardware information.
-g, --governor
Set frequency governor (with frequency-set) or show available governors (with frequency-info).
-u, --max FREQ
Set maximum frequency (requires frequency-set).
-d, --min FREQ
Set minimum frequency (requires frequency-set).
-f, --freq FREQ
Set exact frequency (requires userspace governor).
-m, --human
Human-readable output.

INSTALL

sudo apt install linux-cpupower
copy
sudo pacman -S cpupower
copy
sudo apk add cpupower
copy
sudo zypper install cpupower
copy

CAVEATS

Requires root privileges for setting values. Available governors and features depend on hardware and kernel configuration. Replaces cpufreq-info and cpufreq-set.

SEE ALSO

Copied to clipboard
Kai