From b82c02f0eb3ce12c5920b0f5d76c6e52efe2c44d Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 13 Jan 2023 21:21:36 +0100 Subject: [PATCH] Tweak the power saving settings --- modules/device.nix | 3 ++- modules/power.nix | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/device.nix b/modules/device.nix index 5f500d9..0037cc7 100644 --- a/modules/device.nix +++ b/modules/device.nix @@ -24,8 +24,9 @@ with pkgs; '') ]; boot.extraModprobeConfig = '' - options snd-hda-intel patch=hda-jack-retask.fw + options snd-hda-intel patch=hda-jack-retask.fw power_save=1 options mac80211 beacon_loss_count=500 + options iwlwifi power_save=1 ''; } diff --git a/modules/power.nix b/modules/power.nix index 177e3ca..5d260b6 100644 --- a/modules/power.nix +++ b/modules/power.nix @@ -5,10 +5,10 @@ services.tlp = { enable = true; settings = { - CPU_SCALING_MIN_FREQ_ON_AC = 800000; - CPU_SCALING_MAX_FREQ_ON_AC = 3000000; - CPU_SCALING_MIN_FREQ_ON_BAT = 800000; - CPU_SCALING_MAX_FREQ_ON_BAT = 2000000; + CPU_MIN_PERF_ON_AC = 0; + CPU_MAX_PERF_ON_AC = 100; + CPU_MIN_PERF_ON_BAT = 0; + CPU_MAX_PERF_ON_BAT = 50; }; }; @@ -20,8 +20,8 @@ # Undervolt CPU and GPU services.undervolt = { enable = true; - coreOffset = -100; - gpuOffset = -75; + coreOffset = -120; + gpuOffset = -95; }; # Prevent overheating of the CPU