systemd-boot:
edit /etc/kernel/cmdline
cat /etc/kernel/cmdline
nvme_load=YES quiet NVreg_PreserveVideoMemoryAllocations=1 nvidia_drm.modeset=1 nvidia-drm.fbdev=1 pci=nommconf nowatchdog rw root=UUID=1fe53a1a-6f4f-47df-a8cd-2f3d78155d7c resume=UUID=0942ac91-77f1-46a0-b31e-e10933c7b1bb
Then:
sudo reinstall-kernels
Grub:
edit /etc/default/grub
Edit line GRUB_CMDLINE_LINUX_DEFAULT
No example - sorry!
Then:
sudo grub-mkconfig -o /boot/grub/grub.cfg
Enable services:
sudo systemctl enable nvidia-suspend.service
Create:
## >> /etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
Reboot.