nvidia persistance when sleeping to fix gpu running away
This commit is contained in:
parent
b597f340c0
commit
81c31ccd4c
|
@ -54,6 +54,8 @@
|
|||
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
"nvidia-persistenced"
|
||||
|
||||
"vscode"
|
||||
"code"
|
||||
"Oracle_VM_VirtualBox_Extension_Pack"
|
||||
|
|
|
@ -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
|
||||
#'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user