feat: set cpu scaling governor to performance on battery

This commit is contained in:
Jacob Bachmann 2024-09-16 13:21:32 +02:00
parent cba557bc6f
commit affb3eb8d1
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@
ncc = "sudo nixos-rebuild switch --upgrade-all --flake \"$(readlink -f /etc/nixos)\"";
nup = "sudo nix-channel --update";
ngc = "sudo nix-collect-garbage -d";
nda = "nixos-rebuild --flake path:$(readlink -f /etc/nixos).#APPA --build-host root@dryb.org --target-host root@dryb.org switch";
nda = "nixos-rebuild --flake path:\"$(readlink -f /etc/nixos)\"#APPA --build-host root@dryb.org --target-host root@dryb.org switch";
dcup = "docker-compose up --detach --remove-orphans";
dka = "docker kill $(docker ps -q)";

View file

@ -23,7 +23,7 @@
default = {
# performance | powersave
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_SCALING_GOVERNOR_ON_BAT = "performance";
# performance | balance_performance | default | balance_power | power
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";