Difference between revisions of "Troubleshooting"

From NixOS Wiki
Jump to: navigation, search
(Create a troubleshooting page)
 
Line 2: Line 2:
  
 
== My system is slow! ==
 
== My system is slow! ==
Check your <code>/etc/nixos/hardware-configuration.nix</code>. There probably is a line which looks something like this:
+
Add the following line to your {{ic|configuration.nix}}:
<syntaxhighlight lang="nix">
+
<syntaxhighlight lang="nix>
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+
powerManagement.cpuFreqGovernor = "performance";
 
</syntaxhighlight>
 
</syntaxhighlight>
Change the value inside quotation marks (in this case <code>"powersave"</code>) to be <code>"performance"</code>.
 
The new line should look like this:
 
<syntaxhighlight lang="nix">
 
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
 
</syntaxhighlight>
 
If the line didn't exist, add it there yourself.
 

Revision as of 13:43, 12 June 2021

This article explains some methods for general troubleshooting. For application specific issues, please reference the particular wiki page for that program.

My system is slow!

Add the following line to your configuration.nix:

powerManagement.cpuFreqGovernor = "performance";