Create a file /etc/default/cpufrequtils with these contents
7 Answers
- Comments are not for extended discussion; this conversation has been moved to chat.– goldilocks♦May 27, 2017 at 14:40
- 3Rather then require switching to root, just use
tee
:echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
. Jun 12, 2017 at 22:58 - 2Other way : sudo sh -c "echo performance > cpu0/cpufreq/scaling_governor" Mar 19, 2018 at 22:17
- Since Raspbian is based on Debian, you should be able to find the packages
cpufrequtils
andsysfsutils
. After installing them, you can set the governor and other parameters from/etc/default/cpufrequtils
and/etc/sysfs.conf
- see here: wiki.debian.org/HowTo/CpuFrequencyScaling– mbirthNov 3, 2018 at 12:59 - Very good answer, but worth noting that the
cpufrequtils
apps are now available to relieve us of all (at least most) of thesysfs
gymnastics.– SeamusJul 5, 2021 at 17:07
- 3That's not actually an answer to the question, "how do I change the governor from ondemand to performance (they are two different governors).– goldilocks♦Aug 16, 2013 at 6:30
- 3@goldilocks I thinks this answer still adds something useful to the quesiton since it explains how to make the one behave like the other. Sep 8, 2016 at 15:08
- This is part of a useful answer. If you added a method to invoke this at each bootup (e.g.
@reboot
incron
, or perhapssystemd
), I feel you'd have a complete answer that addresses the OP's question.– SeamusJul 5, 2021 at 16:46
- While this may answer the question, good answers require more information than you have provided here. Also, your answer does not anything that the above answers have not already provided. Sep 8, 2016 at 15:56
Not the answer you're looking for? Browse other questions tagged ask your own question. or
Hot Network Questions
- Why didn't French inherit a verb from the Latin "dare" like the rest of the Romance languages?
- Is a spell that's on both spell lists an Artificer- or a Wizard-spell or both when obtained via Magic Initiate (Wizard)?
- Someone that thinks that the existence of God is currently unknowable, but may become knowable, but is inclined to think that God does not exist
- Why do people speak about truth value of undecidable propositions?
- "Weird Algorithm" (Collatz) from CSES Problem Set
- Spoofing an IP Address
- Is a juror allowed to attempt to influence other jurors off of something stricken from record?
- Who called Chandler about the Yellow Dragons?
- I2C address conflict workaround through delayed signal propagation or delayed powerup
- why are there inductors in the transmission line theory
- How may two title lines be aligned?
- What do these notes above the staff with lines through them after a time signature change mean?
- How to intialize programs with default values?
- BB-RS500 - Grease, anti-seize, thread lock, or no additional thread prep for initial installation?
- Inspiration for >100 Hz LED driver
- Why does the opamp output "charge up"
- Python Script to add Geometry Node modifiers to curves
- Why does Acts 1:2 mention the involvement of Holy Spirit?
- Storage of Light
- Fundamental groups and complements of manifolds
- "Have something done" or "have + object + past participle"?
- Where is the vertical space below and above floats ultimately defined in the LaTeX (or TeX) source code, and how can we change it the clean way?
- Two successive parallel transports of a vector?
- Interpreting Large Coefficients in Logistic Regression
rpi-cpu.gov
script aims to change the governor, and re-apply this change at every boot. That would seem to accomplish setting your "governor of choice" as the default.