Purge everything Nvidia-related, remove PPA and reinstall via ubuntu-drivers.
sudo apt remove --purge "*nvidia*"
sudo dpkg -P --force-all $(dpkg -l | grep "nvidia-" | grep -v lib | awk '{print $2}')
sudo apt-add-repository -r ppa:graphics-drivers/ppa
sudo apt update
sudo apt autoremove
sudo ubuntu-drivers install
rebootCan't blame Nvidia for this, use the core24 candidate of Firefox.
sudo snap refresh --channel=latest/candidate/core24 firefoxCreate file /etc/modprobe.d/nvidia.conf with contents:
options nvidia-drm fbdev=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_TemporaryFilePath=/tmp
Execute:
sudo update-initramfs -u
systemctl enable nvidia-suspend.serviceVerify:
❯ cat /proc/driver/nvidia/params | grep Preserve
PreserveVideoMemoryAllocations: 1
Hey, thanks for this! That first block of code helped me get my graphics driver working right!