Prolong laptop's battery life
This commit is contained in:
parent
551594c34a
commit
d458e11e22
|
@ -37,9 +37,12 @@ in {
|
||||||
networking.wireless.enable = true;
|
networking.wireless.enable = true;
|
||||||
|
|
||||||
# Optimize power use
|
# Optimize power use
|
||||||
environment.systemPackages = [ pkgs.powertop pkgs.acpi ];
|
environment.systemPackages = [ pkgs.acpi ];
|
||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement = {
|
||||||
|
powertop.enable = true;
|
||||||
|
cpuFreqGovernor = "ondemand";
|
||||||
|
};
|
||||||
|
|
||||||
# Monitor backlight control
|
# Monitor backlight control
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue