nvidia persistance when sleeping to fix gpu running away

This commit is contained in:
caleb 2024-02-06 17:05:01 -05:00
parent b597f340c0
commit 81c31ccd4c
2 changed files with 7 additions and 10 deletions

View File

@ -54,6 +54,8 @@
"nvidia-x11"
"nvidia-settings"
"nvidia-persistenced"
"vscode"
"code"
"Oracle_VM_VirtualBox_Extension_Pack"

View File

@ -31,6 +31,7 @@ in
enable = true;
finegrained = true;
};
nvidiaPersistenced = true;
prime = {
offload = {
enable = true;
@ -42,14 +43,8 @@ in
};
};
# disable systemd services
systemd.services = {
nvidia-resume = {
enable = false;
restartIfChanged = false;
};
};
# power tuning
powerManagement.powertop.enable = true;
# preserve video memory after suspend https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend
#boot.extraModprobeConfig = ''
# options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
#'';
}