Skip to content

Instantly share code, notes, and snippets.

@firstrow
Last active April 13, 2024 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firstrow/53d27b65d18c65bb41bea1713c097d45 to your computer and use it in GitHub Desktop.
Save firstrow/53d27b65d18c65bb41bea1713c097d45 to your computer and use it in GitHub Desktop.
Archlinux NVIDIA suspend to ram fix
If machine goes to sleep and wakes up? hyprland crashes on wake up?
https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend
```
To save and restore all video memory contents, use the NVreg_PreserveVideoMemoryAllocations=1 kernel module parameter
for the nvidia kernel module and enable nvidia-suspend.service, nvidia-hibernate.service, and nvidia-resume.service.
```
```
sudo cat /etc/modprobe.d/nvidia.conf
options nvidia_drm modeset=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_RegistryDwords="OverrideMaxPerf=0x1"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment