From 5f063d825e2a7ac7405f5b29558a42816487ba62 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Mon, 16 Feb 2026 13:28:15 +0000 Subject: [PATCH] mrweow --- config/hosts/aspects/doloro-laptop/host.nix | 3 ++- config/modules/power-management/tlp.nix | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config/hosts/aspects/doloro-laptop/host.nix b/config/hosts/aspects/doloro-laptop/host.nix index e3c560f..defc475 100644 --- a/config/hosts/aspects/doloro-laptop/host.nix +++ b/config/hosts/aspects/doloro-laptop/host.nix @@ -19,7 +19,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; # boot.kernelPackages = pkgs.linuxPackages_6_12; # Hibernate works on 6.12 but not on latest - boot.kernelPackages = pkgs.linuxPackages_latest; # Unpinned the linux version for now.. as i am not using hibernate that often + boot.kernelPackages = pkgs.linuxPackages_zen; # Unpinned the linux version for now.. as i am not using hibernate that often networking.hostName = "doloro-nixos-laptop"; # Define your hostname. security.rtkit.enable = true; @@ -127,6 +127,7 @@ # "mem_sleep_default=deep" # "i915.fastboot=1" "ahci.mobile_lpm_policy=1" + "processor.max_cstate=7" ]; services.logind.settings.Login = { diff --git a/config/modules/power-management/tlp.nix b/config/modules/power-management/tlp.nix index 93660f7..510b83f 100644 --- a/config/modules/power-management/tlp.nix +++ b/config/modules/power-management/tlp.nix @@ -33,7 +33,22 @@ INTEL_GPU_BOOST_FREQ_ON_AC = 0; INTEL_GPU_BOOST_FREQ_ON_BAT = 800; - CPU_MAX_PERF_ON_BAT = 50; + CPU_MAX_PERF_ON_BAT = 30; + + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_HWP_DYN_BOOST_ON_AC = "1"; + CPU_HWP_DYN_BOOST_ON_BAT = "0"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + MAX_LOST_WORK_SECS_ON_BAT = "60"; + MAX_LOST_WORK_SECS_ON_AC = "15"; + DISK_IDLE_SECS_ON_AC = "0"; + WOL_DISABLE = "Y"; + SOUND_POWER_SAVE_CONTROLLER = "Y"; + DISK_IDLE_SECS_ON_BAT = "2"; + SOUND_POWER_SAVE_ON_BAT = "1"; + SOUND_POWER_SAVE_ON_AC = "1"; PLATFORM_PROFILE_ON_AC = "balanced"; PLATFORM_PROFILE_ON_BAT = "quiet";