more battery optimizations
This commit is contained in:
parent
19a2e57246
commit
c8b94bc9fe
2 changed files with 5 additions and 45 deletions
|
@ -30,6 +30,8 @@ in
|
|||
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
|
||||
boot.kernelParams = lib.optional cfg.battery "iwlwifi.power_save=Y";
|
||||
|
||||
# Don't kill the battery
|
||||
services.upower = {
|
||||
enable = true;
|
||||
|
@ -44,6 +46,9 @@ in
|
|||
settings = {
|
||||
DISK_IOSCHED = "bfq bfq";
|
||||
|
||||
PCIE_ASPM_ON_BAT = "powersupersave";
|
||||
PCIE_ASPM_ON_AC = "default";
|
||||
|
||||
PLATFORM_PROFILE_ON_BAT = lib.mkDefault "low-power";
|
||||
PLATFORM_PROFILE_ON_AC = lib.mkDefault "performance";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue