Laptop: Difference between revisions

Added information about a flake that auto-cpufreq provides
changed tlp to TLP
Line 6: Line 6:
Thermald proactively prevents overheating on Intel CPUs and works well with other tools. Enabled by: <code>services.thermald.enable = true;</code>
Thermald proactively prevents overheating on Intel CPUs and works well with other tools. Enabled by: <code>services.thermald.enable = true;</code>


==== tlp ====
==== TLP ====
A common tool used to save power on laptops is tlp, which has sensible defaults for most laptops. To enable tlp you simply just write <code>services.tlp.enable = true;</code> in your configuration.nix. However, if you need a specific configuration, you can do as shown in the example below.
A common tool used to save power on laptops is TLP, which has sensible defaults for most laptops. To enable TLP you simply just write <code>services.tlp.enable = true;</code> in your configuration.nix. However, if you need a specific configuration, you can do as shown in the example below.


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 32: Line 32:
</syntaxHighlight>
</syntaxHighlight>


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.


==== auto-cpufreq ====
==== auto-cpufreq ====