Configs2026年7月13日·1 分钟阅读

auto-cpufreq — Automatic CPU Speed and Power Optimiser for Linux

A daemon that dynamically adjusts CPU frequency scaling and turbo boost based on system load, extending laptop battery life without manual configuration.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
auto-cpufreq Overview
直接安装命令
npx -y tokrepo@latest install e727ff5a-7eb7-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

auto-cpufreq is a Linux daemon that automatically manages CPU frequency scaling and turbo boost behaviour based on real-time system load and power source. It replaces the need for manual governor tuning, delivering longer battery life on laptops while maintaining performance when plugged in.

What auto-cpufreq Does

  • Monitors CPU load and switches between power-saving and performance governors
  • Enables or disables turbo boost dynamically based on workload intensity
  • Distinguishes between battery and AC power to apply different profiles
  • Provides a live monitor mode for observing decisions without applying changes
  • Logs all frequency and governor changes for later analysis

Architecture Overview

auto-cpufreq runs as a systemd service that polls CPU utilisation and power source status at regular intervals. Based on configurable thresholds, it writes to sysfs entries that control the cpufreq governor, energy performance preference, and turbo boost state. The logic is implemented in Python and uses psutil for cross-platform system data collection.

Self-Hosting & Configuration

  • Install via the installer script, snap, or AUR on Arch-based distributions
  • The daemon installs as a systemd unit: systemctl status auto-cpufreq
  • Customise behaviour in /etc/auto-cpufreq.conf with per-profile governor and turbo settings
  • Use --monitor mode before --install to preview decisions
  • Works alongside thermald but conflicts with TLP; disable TLP if switching

Key Features

  • Fully automatic: no manual governor or frequency configuration needed
  • Load-aware turbo boost management extends battery life significantly
  • Separate profiles for battery and AC power
  • Live monitoring mode for transparent decision visibility
  • Supports both Intel and AMD processors on modern kernels

Comparison with Similar Tools

  • TLP — static rule-based power management; auto-cpufreq adjusts dynamically to load
  • cpupower — manual governor control; auto-cpufreq automates the selection
  • thermald — Intel thermal management daemon; can run alongside auto-cpufreq
  • power-profiles-daemon — GNOME/KDE power profiles; auto-cpufreq is more granular
  • cpufrequtils — low-level frequency utilities; auto-cpufreq wraps them with intelligence

FAQ

Q: Does it work with AMD processors? A: Yes. It supports both Intel and AMD CPUs using the kernel's cpufreq subsystem.

Q: Can it coexist with TLP? A: No. Both tools manage CPU frequency governors and will conflict. Use one or the other.

Q: How much battery life does it save? A: Results vary by hardware. Users commonly report 20-40% improvement on laptops.

Q: Does it affect performance during heavy workloads? A: No. It detects high CPU load and switches to performance mode with turbo boost enabled.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产