add nvidia_drm.modeset=1 to grub settings /etc/default/grub
/etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
enable these services
systemctl enable nvidia-hibernate systemctl enable nvidia-resume systemctl enable nvidia-suspend