Updated Configuration

This commit is contained in:
2025-08-19 09:23:21 -03:00
parent d9966d8f38
commit 3b2ccc8417
10 changed files with 575 additions and 222 deletions

View File

@@ -0,0 +1,3 @@
{
services.system76-scheduler.enable = true;
}

View File

@@ -3,61 +3,77 @@
services.tlp = {
enable = true;
settings = {
# Set CPU driver operation mode to 'active' to allow the CPU to manage its own frequency scaling
CPU_DRIVER_OPMODE_ON_AC = "active";
CPU_DRIVER_OPMODE_ON_BAT = "active";
settings =
# In services.tlp.settings
{
# --- CPU Settings for Core Ultra 9 185H ---
# Use 'performance' governor for max performance on AC
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
# Use the modern 'intel_pstate' driver in active mode. This is correct.
CPU_DRIVER_OPMODE_ON_AC = "active";
CPU_DRIVER_OPMODE_ON_BAT = "active";
# Set Energy Performance Preference (EPP) to balance performance on AC and favor power savings on battery
CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
# CRITICAL: Use 'powersave' for both. On modern Intel chips, this enables
# dynamic scaling from idle up to max boost. It is the best-performing
# and most efficient setting.
CPU_SCALING_GOVERNOR_ON_AC = "powersave";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
# Define CPU performance limits: full performance on AC, limited to 50% on battery to save power
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 50;
# This is your main performance tuning knob. 'performance' tells the CPU
# to aggressively ramp up to high clock speeds when it detects a load.
# 'balance_power' is a good choice for extending battery life.
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
# Enable Turbo Boost on AC for maximum performance; disable on battery to conserve energy
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
# Allow the CPU to use its full performance range when plugged in.
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 60; # Slightly higher than before for better battery responsiveness.
# Enable Intel's Hardware P-States (HWP) dynamic boost on AC; disable on battery
CPU_HWP_DYN_BOOST_ON_AC = 1;
CPU_HWP_DYN_BOOST_ON_BAT = 1;
# ESSENTIAL: Enable Turbo Boost on AC. This is how you get peak performance.
# The 'powersave' governor will use boost intelligently when needed.
# Disabling on battery is key for thermal control and battery life.
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
# Set platform profile to 'performance' on AC and 'low-power' on battery, if supported by the system
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "low-power";
# HWP Dynamic Boost is a good feature to keep enabled.
CPU_HWP_DYN_BOOST_ON_AC = 1;
CPU_HWP_DYN_BOOST_ON_BAT = 1;
# Enable Wi-Fi power saving on both AC and battery
WIFI_PWR_ON_AC = "on";
WIFI_PWR_ON_BAT = "on";
# --- Intel Arc GPU & System Settings ---
# Configure PCIe Active State Power Management: 'performance' on AC, aggressive power saving on battery
PCIE_ASPM_ON_AC = "performance";
PCIE_ASPM_ON_BAT = "powersupersave";
# Set the platform profile. 'balanced' is a much safer bet than 'performance'
# to avoid overwhelming the chassis's cooling solution.
PLATFORM_PROFILE_ON_AC = "balanced";
PLATFORM_PROFILE_ON_BAT = "low-power";
# Enable runtime power management for PCIe devices: 'on' for AC, 'auto' for battery
RUNTIME_PM_ON_AC = "on";
RUNTIME_PM_ON_BAT = "auto";
# Use 'powersupersave' for PCIe ASPM. This allows the components,
# including the GPU, to enter deeper sleep states, reducing idle heat.
PCIE_ASPM_ON_AC = "powersupersave";
PCIE_ASPM_ON_BAT = "powersupersave";
# Enable sound power saving on both AC and battery; '1' sets a 1-second timeout
SOUND_POWER_SAVE_ON_AC = 1;
SOUND_POWER_SAVE_ON_BAT = 1;
SOUND_POWER_SAVE_CONTROLLER = "Y";
# Runtime Power Management is crucial for the integrated GPU to power down
# when not in heavy use. 'auto' is the recommended setting for modern hardware.
RUNTIME_PM_ON_AC = "auto";
RUNTIME_PM_ON_BAT = "auto";
# Whitelist everything except devices known to cause issues (like some audio codecs).
# The default blacklist is usually sufficient.
RUNTIME_PM_DRIVER_BLACKLIST = "amdgpu nouveau nvidia pcieport";
# Enable USB autosuspend to save power when devices are idle
USB_AUTOSUSPEND = 1;
# --- Other Power Saving ---
#Optional helps save long term battery health
#START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
#STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
};
# Keep Wi-Fi power saving on; it's generally fine.
WIFI_PWR_ON_AC = "on";
WIFI_PWR_ON_BAT = "on";
# Sound power saving is fine.
SOUND_POWER_SAVE_ON_AC = 1;
SOUND_POWER_SAVE_ON_BAT = 1;
SOUND_POWER_SAVE_CONTROLLER = "Y";
# USB autosuspend is fine.
USB_AUTOSUSPEND = 1;
};
};
#powerManagement.powertop.enable = true;