The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 65,567β€…    Votes:  31β€…
Tags: 17.04   cpufreq  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/936488
Title: How to set "Performance" instead of "Powersave" as default?
ID: /2017/07/15/How-to-set-_Performance_-instead-of-_Powersave_-as-default_
Created: July 15, 2017    Edited:  August 9, 2020
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Performance and Powersave Governor Policies

There are various options for setting CPU governor policy described in Ask Ubuntu and other websites:

Keep in mind most websites suggest leaving CPU governing at Powersave. I’m on a laptop and found using Intel’s ThermalD and P-State technologies coupled with TLP power management has best result for frequencies, fan speed and temperature.

Summarizing above links

To summarize achieving your goal from the above answers use:

Install cpufrequtils:

sudo apt-get install cpufrequtils

Then edit the following file (if it doesn’t exist, create it):

sudo nano /etc/default/cpufrequtils

And add the following line to it:

GOVERNOR="performance"

Save and exit.

For changes take effect, run:

sudo systemctl restart cpufrequtils

Then you can run cpufreq-info to see informations about your cpu frequency, governor and more:

$ cpufreq-info
    current policy: frequency should be within 800 MHz and 3.90 GHz.
              The governor "performance" may decide which speed to use
              within this range.

As per this Q&A: Set CPU governor to performance in 18.04

If you want performance governor all the time you need to edit /etc/rc.local and insert these lines before the last line containing exit 0:

sleep 120 # Give CPU startup routines time to settle.
cpupower frequency-set --governor performance

To setup /etc/rc.local in 18.04 see: How to Enable /etc/rc.local with Systemd

⇧ Setting gmail as default for sending files via email Any way to check the clock speed of my processor?  β‡©