Laptop: Difference between revisions

imported>AmnesiaAmesia
m Added example of how to configure tlp
imported>AmnesiaAmesia
m Added troubleshooting for hot laptop in power
Line 23: Line 23:


This example enables tlp and sets the minimum and maximum frequencies for the cpu based on whether it is plugged into power or not. It also changes the cpu scaling governor based on this.
This example enables tlp and sets the minimum and maximum frequencies for the cpu based on whether it is plugged into power or not. It also changes the cpu scaling governor based on this.
== Troubleshooting ==
==== My laptops runs hot when on power, but not on battery ====
If you use tlp and experience this issue a simple solution can be to tell tlp to always run in battery mode.
<syntaxHighlight lang=nix>
services.tlp = {
      enable = true;
      settings = {
TLP_DEFAULT_MODE = "BAT";
TLP_PERSISTENT_DEFAULT = 1;
      };
    };
</syntaxHighlight>