From 27cd525d8f39065accbe127df2bcbd10b90b99cd Mon Sep 17 00:00:00 2001 From: tchofy <64620317+tchofy@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:36:22 +0000 Subject: [PATCH] Nvidia: Add tips to fixing suspend issues (#359) * Add nvidia suspend/wakeup related services and kernel parameters * Include Nix equivalent configs --- pages/Nvidia/_index.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index beccc88d..c068bc18 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -104,3 +104,24 @@ options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; ``` Reboot your computer and it should be working. + +## Fixing suspend/wakeup issues + +Enable the services `nvidia-suspend.service`, `nvidia-hibernate.service` and `nvidia-resume.service`, they will be started by systemd when needed. + +Add `nvidia.NVreg_PreserveVideoMemoryAllocations=1` to your kernel parameters if you don't have it already. + +{{< hint type=important >}} Suspend functions are currently broken on `nvidia-open-dkms` [due to a bug](https://github.com/NVIDIA/open-gpu-kernel-modules/issues/472), so make sure you're on `nvidia-dkms`. {{< /hint >}} + +For Nix users, the equivalent of the above is +```nix +# configuration.nix + +boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; + +hardware.nvidia.powerManagement.enabled = true + +# Making sure to use the proprietary drivers until the issue above is fixed upstream +hardware.nvidia.open = false + +```