$linuxjunkies
>

auto-cpufreq(1)

Automatically scales CPU frequency and power management based on system load and battery status.

UbuntuDebianFedoraArch

Synopsis

auto-cpufreq [OPTION]

Description

auto-cpufreq is a tool that automatically switches CPU frequency scaling governors and power management settings based on whether the system is running on battery or AC power. It dynamically adjusts CPU frequencies to optimize performance and battery life without manual intervention.

The tool manages CPU frequency scaling through Linux kernel drivers and can set performance profiles, throttling limits, and turbo boost settings. It runs as a systemd service and continuously monitors system state to apply appropriate power profiles.

Common options

FlagWhat it does
--installInstall auto-cpufreq as a systemd service and enable it on startup
--removeRemove auto-cpufreq from systemd and disable automatic management
--monitorDisplay CPU frequency and power management status in real-time without making changes
--turbo=autoAutomatically manage turbo/boost settings based on power state
--turbo=alwaysAlways enable CPU turbo/boost regardless of power state
--turbo=neverDisable CPU turbo/boost for maximum battery life
--chargerSet frequency scaling for AC power (performance profile)
--batterySet frequency scaling for battery power (power saving profile)
--configUse a custom configuration file instead of the default
--helpDisplay help message and exit

Examples

Install auto-cpufreq as a permanent systemd service that auto-starts on boot

sudo auto-cpufreq --install

Display real-time CPU frequency and current power profile without making any system changes

auto-cpufreq --monitor

Enable automatic turbo boost management (enabled on AC, disabled on battery)

sudo auto-cpufreq --turbo=auto

Check if the auto-cpufreq service is running and enabled

sudo systemctl status auto-cpufreq

Uninstall auto-cpufreq from systemd and restore manual frequency management

sudo auto-cpufreq --remove

Monitor system using a custom configuration file

sudo auto-cpufreq --config=/etc/auto-cpufreq.conf --monitor

Related commands