237 current 2025-01-11 21:36:38 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-01-11 21:36:48 -05:00
parent 723763bdcd
commit df05a43b4c
5 changed files with 106 additions and 1 deletions

View File

@@ -0,0 +1,57 @@
{pkgs, ...}: {
services.thermald.enable = true;
services.tlp = {
enable = true;
settings = {
# Performance Policy
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
# Intel-pstate gives sluggish performance
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
# CPU Performance Caps
CPU_MIN_PERF_ON_AC = 0;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MAX_PERF_ON_BAT = 50;
# Platform Profile
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "low-power";
# Boost
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_HWP_DYN_BOOST_ON_AC = 1;
CPU_HWP_DYN_BOOST_ON_BAT = 0;
# Runtime Power Management
RUNTIME_PM_ON_AC = "auto";
RUNTIME_PM_ON_BAT = "auto";
# PCIE ASPM, talking with PCIE devices to save power
PCIE_ASPM_ON_AC = "default";
PCIE_ASPM_ON_BAT = "powersupersave";
# Suspend USB devices to save power
USB_AUTOSUSPEND = 1;
# ~~Don't~~ disable bluetooth devices
USB_EXCLUDE_BTUSB = 0;
# Wifi Power Save
WIFI_PWR_ON_AC = "off";
WIFI_PWR_ON_BAT = "on";
# Hybrid Graphics Management
RUNTIME_PM_DRIVER_DENYLIST = "mei_me";
# MEM_SLEEP_ON_AC = "s2idle";
MEM_SLEEP_ON_BAT = "deep";
};
};
}