From 38a6c622f79b471dbf40b44a0b5165e5c6d42f03 Mon Sep 17 00:00:00 2001 From: Eclypsed Date: Thu, 11 Dec 2025 00:11:33 -0500 Subject: [PATCH] Enabled TLP power management --- modules/system/services.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/modules/system/services.nix b/modules/system/services.nix index bdff9ce..006c8ee 100644 --- a/modules/system/services.nix +++ b/modules/system/services.nix @@ -61,6 +61,36 @@ AllowUsers = [ "eclypse" ]; }; }; + + system76-scheduler.settings.cfsProfiles.enable = true; + + tlp = { + enable = true; + settings = { + CPU_BOOST_ON_AC = 1; + CPU_BOOST_ON_BAT = 0; + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + PLATFORM_PROFILE_ON_AC = "performance"; + PLATFORM_PROFILE_ON_BAT = "balanced"; + START_CHARGE_THRESH_BAT1 = 65; # Only STOP_CHARGE_THRESH available on Framework + STOP_CHARGE_THRESH_BAT1 = 80; + # Fixes stuttering Hyprland animations on Intel iGPU (https://wiki.hypr.land/Configuring/Performance/) + INTEL_GPU_MIN_FREQ_ON_AC = 300; + INTEL_GPU_MIN_FREQ_ON_BAT = 300; + }; + }; + + # Disable GNOME's power management (conflicts with TLP) + power-profiles-daemon.enable = false; + + # Enable thermald (only necessary for Intel CPUs) + thermald.enable = true; + }; + + powerManagement = { + enable = true; + powertop.enable = true; }; hardware = {