[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:hardware:cpu_frequency_scaling [2023/12/11 09:57 (UTC)] – [/etc/rc.d/rc.cpufreq and /etc/default/cpufreq] zeebrahowtos:hardware:cpu_frequency_scaling [2023/12/11 10:43 (UTC)] (current) – [Introduction] zeebra
Line 9: Line 9:
 \\ \\
 For older computers with "legacy" scaling implementations and with a new Kernel, these functions have been incorporated into acpi-cpufreq, and alongside AMD it should be your default choice. For very old and new AMD CPU's (zen2 onwards), other options exists and should be considered. For older computers with "legacy" scaling implementations and with a new Kernel, these functions have been incorporated into acpi-cpufreq, and alongside AMD it should be your default choice. For very old and new AMD CPU's (zen2 onwards), other options exists and should be considered.
 +\\
 +
 +**Available governors** and the **currently used driver** can be seen by using the cpufreq command
 +<code>cpufreq-info</code>
 \\ \\
 ===== Kernel Configuration ===== ===== Kernel Configuration =====
Line 28: Line 32:
 <code>chmod +x /etc/rc.d/rc.cpufreq</code>  <code>chmod +x /etc/rc.d/rc.cpufreq</code> 
 And by selecting the governor to use by editing the file /etc/default/cpufreq. And by selecting the governor to use by editing the file /etc/default/cpufreq.
-<code>nano /etc/default/cpufreq +<code>nano /etc/default/cpufreq</code> 
-# To select a particular CPU governor option for /etc/rc.d/rc.cpufreq,+<code># To select a particular CPU governor option for /etc/rc.d/rc.cpufreq,
 # uncomment the line below and edit it to select your choice: # uncomment the line below and edit it to select your choice:
 #SCALING_GOVERNOR=ondemand #SCALING_GOVERNOR=ondemand
 </code> </code>
  
-<note important>The necessary setup is done in rc.cpufreq and it reads /etc/default/cpufreq to select the governor. These things do depend on what options are available to it, and those options depend on what choice you make at boot time and which driver is in use. If you use the acpi-cpufreq driver, you can select any of the available scaling governors, if intel_pstate is in use, it will ignore the choice if it cannot be parsed.</note+<note important>The necessary setup is done in /etc/rc.d/rc.cpufreq and it reads /etc/default/cpufreq to select the governor. These things do depend on what options are available to it, and those options depend on what choice you make at boot time and which driver is in use. If you use the acpi-cpufreq driver, you can select any of the available scaling governors, if intel_pstate is in use, it will ignore the choice if it cannot be parsed.</note>
- +
-**Available governors** and the **currently used driver** can be seen by using the cpufreq command +
-<code>cpufreq-info</code>+
  
 After the initial setup of CPU frequency scaling at boot, scaling can also be controlled manually in a variety of ways, as described below.\\ After the initial setup of CPU frequency scaling at boot, scaling can also be controlled manually in a variety of ways, as described below.\\
Line 100: Line 101:
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
 <!-- Some updates done, more will follow. Specifically a section about /etc/rc.d/ is high priority  --- //[[wiki:user:zeebra|zeebra]] 2023/12/10 13:34 (UTC)// --> <!-- Some updates done, more will follow. Specifically a section about /etc/rc.d/ is high priority  --- //[[wiki:user:zeebra|zeebra]] 2023/12/10 13:34 (UTC)// -->
-{{tag>howtos CPU frequency Laptop, needs_attention}}+{{tag>howtos CPU frequency Laptop cpu_frequency_scaling}}
 howtos:hardware:cpu_frequency_scaling ()