mirror of
https://github.com/thegeneralist01/config.git
synced 2026-10-09 21:03:30 +02:00
nixos: enable NVIDIA runtime power management
This commit is contained in:
parent
33f6a352af
commit
06c4eab6eb
1 changed files with 7 additions and 0 deletions
|
|
@ -19,10 +19,17 @@
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options rtw88_usb switch_usb_mode=N
|
options rtw88_usb switch_usb_mode=N
|
||||||
options rtw88_core disable_lps_deep=1
|
options rtw88_core disable_lps_deep=1
|
||||||
|
options nvidia NVreg_DynamicPowerManagement=0x02
|
||||||
'';
|
'';
|
||||||
boot.kernelParams = [ "usbcore.autosuspend=-1" ];
|
boot.kernelParams = [ "usbcore.autosuspend=-1" ];
|
||||||
networking.networkmanager.wifi.powersave = false;
|
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
|
# Favor efficient idle and light-load operation without suspending this
|
||||||
# always-on host. The EPP setting retains short performance bursts.
|
# always-on host. The EPP setting retains short performance bursts.
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue