Difference between revisions of "CPU Frequency Governor Linux"

From Hack Sphere Labs Wiki
Jump to: navigation, search
Line 31: Line 31:
  alias cpu.ondemand='sudo cpufreq-set -r -g ondemand'
  alias cpu.ondemand='sudo cpufreq-set -r -g ondemand'
{{File| /etc/conf.d/cpufreq | #configuration for cpufreq control
{{File| /etc/conf.d/cpufreq | content=
#configuration for cpufreq control
# valid governors:
# valid governors:

Revision as of 14:34, 22 July 2012

Debian and Archlinux use: cpufrequtils


I had to manually configure:


cpufreq_ondemand (default and recommended)

Dynamically switches between the CPU(s) available clock speeds based on system load


The performance governor runs the CPU(s) at maximum clock speed


Similar to ondemand, but the CPU(s) clock speed switches gradually through all its available frequencies based on system load


Runs the CPU(s) at minimum speed


Manually configured clock speeds by user

Add to rc.conf:

MODULES=(... cpufreq_powersave cpufreq_userspace ...)

I have a new kernel as most archlinux users do and did not need to have the system autoload the modules because they already are.

I use this laptop like a desktop but just in case I created some aliases to switch back and forth:

alias cpu.performance='sudo cpufreq-set -r -g performance'
alias cpu.ondemand='sudo cpufreq-set -r -g ondemand'
Template error: are you trying to use the = sign? Visit Help:Template#Escape template-breaking characters for workarounds.