Site Tools


start:setcpuscalingnogui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
start:setcpuscalingnogui [2022/05/13 15:41] – created peterstart:setcpuscalingnogui [2023/09/14 20:43] (current) peter
Line 1: Line 1:
 +Roughly checked this on 14/09/2023. Seems to work (more testers needed) - Pete
 +
 Just really quick write up but worked like this: Just really quick write up but worked like this:
  
-Installed some relevant tools (check your kernel version):+Installed some relevant tools (check your kernel version some tools are different for later kernels):
  
 <code> <code>
 sudo apt-get install cpufreq cpufrequtils  sudo apt-get install cpufreq cpufrequtils 
 sudo apt-get install linux-tools-common  sudo apt-get install linux-tools-common 
-sudo apt-get install linux-tools-5.15.0-27-generic+Maybe? sudo apt-get install linux-tools-5.15.0-27-generic 
 +Maybe? sudo apt-get install linux-cpupower  
 +Depends on distro used what you have to install, bookworm I think is linux-cpupower... maybe?
 </code> </code>
 +
 +For trixie I believe you just need cpufrequtils and linux-cpupower only.
  
 decide on a governor decide on a governor
Line 17: Line 23:
 eg: for powersave eg: for powersave
 <code> <code>
-cpupower frequency-set --governor powersave+sudo cpupower frequency-set --governor powersave
 </code> </code>
  
Line 24: Line 30:
 watch "cat /proc/cpuinfo | grep MHz" watch "cat /proc/cpuinfo | grep MHz"
 </code> </code>
 +
 +NOTE: If you are using intel pstates (most likely you are on intel CPU) the only control you have is setting performance or powersave. As intel controls the frequency between their values there isnt a lot you can do without disabling intel pstates. This is not recommended and you will suffer in terms of performance.
 +While playing games use performance, for everything else use powersave if this is the situation.
 +
 +You can use "sudo cpupower frequency-info" to check if you are running performance or powersave and change appropriately like "cpupower frequency-set --governor performance"
  
 After reboot changes will be lost. To make a startup script one way is (another option shown elsewhere in this wiki is with systemd, just feel like showing you a second way): After reboot changes will be lost. To make a startup script one way is (another option shown elsewhere in this wiki is with systemd, just feel like showing you a second way):
start/setcpuscalingnogui.1652456478.txt.gz · Last modified: 2022/05/13 15:41 by peter