From 06c4eab6eb2d454aa7d691c0660fe4bb8d994553 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Fri, 9 Oct 2026 15:10:45 +0200 Subject: [PATCH] nixos: enable NVIDIA runtime power management --- hosts/thegeneralist/hardware-configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/thegeneralist/hardware-configuration.nix b/hosts/thegeneralist/hardware-configuration.nix index f03d750..6c68c9f 100644 --- a/hosts/thegeneralist/hardware-configuration.nix +++ b/hosts/thegeneralist/hardware-configuration.nix @@ -19,10 +19,17 @@ boot.extraModprobeConfig = '' options rtw88_usb switch_usb_mode=N options rtw88_core disable_lps_deep=1 + options nvidia NVreg_DynamicPowerManagement=0x02 ''; boot.kernelParams = [ "usbcore.autosuspend=-1" ]; networking.networkmanager.wifi.powersave = false; + # Allow this headless Turing GPU to enter runtime D3 while unused. + services.udev.extraRules = '' + ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto" + ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on" + ''; + # Favor efficient idle and light-load operation without suspending this # always-on host. The EPP setting retains short performance bursts. powerManagement = {