Last active
April 13, 2024 09:55
-
-
Save firstrow/53d27b65d18c65bb41bea1713c097d45 to your computer and use it in GitHub Desktop.
Archlinux NVIDIA suspend to ram fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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