forked from pub-solar/os
Improve power management
This commit is contained in:
parent
a7352d4bef
commit
8293ebafb4
|
@ -13,7 +13,7 @@ in
|
|||
pub-solar.x-os.keyfile = "/etc/nixos/hosts/dumpyourvms/secrets/keyfile.bin";
|
||||
|
||||
# fix backlight for keyboard and brightness, adjust function key binding
|
||||
boot.kernelParams = [ "acpi_backlight=video" "hid_apple.fnmode=2" ];
|
||||
boot.kernelParams = [ "acpi_backlight=video" "hid_apple.fnmode=2" "intel_pstate=active" ];
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
hardware = {
|
||||
|
@ -33,6 +33,17 @@ in
|
|||
# Thunderbolt tools
|
||||
services.hardware.bolt.enable = true;
|
||||
|
||||
# TLP for power management
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
};
|
||||
};
|
||||
|
||||
services.udev.extraRules =
|
||||
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
|
||||
# after suspend. Reboot required for this to take effect.
|
||||
|
|
Loading…
Reference in a new issue