mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 20:55:59 +01:00
Nvidia: Add tips to fixing suspend issues (#359)
* Add nvidia suspend/wakeup related services and kernel parameters * Include Nix equivalent configs
This commit is contained in:
parent
dd976ffd69
commit
27cd525d8f
1 changed files with 21 additions and 0 deletions
|
@ -104,3 +104,24 @@ options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222;
|
||||||
```
|
```
|
||||||
|
|
||||||
Reboot your computer and it should be working.
|
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
|
||||||
|
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue