Skip to content

Commit

Permalink
Nvidia: Add tips to fixing suspend issues (#359)
Browse files Browse the repository at this point in the history
* Add nvidia suspend/wakeup related services and kernel parameters

* Include Nix equivalent configs
  • Loading branch information
tchofy authored Sep 29, 2023
1 parent dd976ff commit 27cd525
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pages/Nvidia/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 27cd525

Please sign in to comment.