Laptop: Difference between revisions
changed text formatting |
m added links to external TLP and auto-cpufreq pages |
||
| Line 7: | Line 7: | ||
==== 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 <code>configuration.nix</code>. 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 [https://linrunner.de/tlp/index.html TLP], which has sensible defaults for most laptops. To enable TLP you simply just write <code>services.tlp.enable = true;</code> in your <code>configuration.nix</code>. However, if you need a specific configuration, you can do as shown in the example below. | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
| Line 35: | Line 35: | ||
==== auto-cpufreq ==== | ==== auto-cpufreq ==== | ||
Another tool used for power management is auto-cpufreq which aims to replace TLP. When using auto-cpufreq it is therefore recommended to disable TLP as these tools are conflicting with each other. However, NixOS does allow for using both at the same time, and you can therefore run them in tandem at your own risk. To enable the service, add <code>services.auto-cpufreq.enable = true;</code> to your <code>configuration.nix</code>. | Another tool used for power management is [https://github.com/AdnanHodzic/auto-cpufreq auto-cpufreq] which aims to replace TLP. When using auto-cpufreq it is therefore recommended to disable TLP as these tools are conflicting with each other. However, NixOS does allow for using both at the same time, and you can therefore run them in tandem at your own risk. To enable the service, add <code>services.auto-cpufreq.enable = true;</code> to your <code>configuration.nix</code>. | ||
Example of how to configure auto-cpufreq: | Example of how to configure auto-cpufreq: | ||