From d368a96e1846ab177fe991515203e2f1aa792cbe 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 | 8 ++++---- 2 files changed, 6 insertions(+), 5 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..b6cdce1 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; }; };