Brottweiler’s Logbook

Switching to the nvidia-580xx driver

Today Archlinux posted a news article about Nvidia dropping support for the Pascal arcitecture. This means users of such graphics cards, like me with my GTX 1050 Ti, need to replace the nvidia driver with the nvidia-580xx driver.

According to the news post, I need to install nvidia-580xx-dkms. I cloned the nvidia-580xx-utils repo which will build both nvidia-580xx-dkms and nvidia-580xx-utils and built them. Due to Steam, I also needed to install lib32-nvidia-580xx-utils so I built that at the same time.

Even though the news post tells me to first uninstall nvidia, I used pacman -U to install all three packages at the same time which would replace the currently installed nvidia, nvidia-utils and lib32-nvidia-utils packages.

Here my memory gets a bit fuzzy because I got some errors, namely that the Nvidia DRM modules in mkinitcpio.conf didn't exist. Made sense to me because maybe the names are wrong, so I disabled them for now.

After a reboot things seemed to work fine, but I noticed I had software rendering in games. I looked at the pacman.log and noticed errors.

ERROR: Missing sys kernel headers for module nvidia/580.119.02.
ERROR: Missing etc kernel headers for module nvidia/580.119.02.
ERROR: Missing tmp kernel headers for module nvidia/580.119.02.
ERROR: Missing home kernel headers for module nvidia/580.119.02.
ERROR: Missing boot kernel headers for module nvidia/580.119.02.
ERROR: Missing mnt kernel headers for module nvidia/580.119.02.
ERROR: Missing proc kernel headers for module nvidia/580.119.02.
ERROR: Missing efi kernel headers for module nvidia/580.119.02.
ERROR: Missing run kernel headers for module nvidia/580.119.02.
ERROR: Missing lib kernel headers for module nvidia/580.119.02.
ERROR: Missing root kernel headers for module nvidia/580.119.02.
ERROR: Missing dev kernel headers for module nvidia/580.119.02.
ERROR: Missing sbin kernel headers for module nvidia/580.119.02.
ERROR: Missing opt kernel headers for module nvidia/580.119.02.
ERROR: Missing srv kernel headers for module nvidia/580.119.02.
ERROR: Missing lost+found kernel headers for module nvidia/580.119.02.
ERROR: Missing lib64 kernel headers for module nvidia/580.119.02.
ERROR: Missing bin kernel headers for module nvidia/580.119.02.
ERROR: Missing usr kernel headers for module nvidia/580.119.02.
ERROR: Missing var kernel headers for module nvidia/580.119.02.

After some searching around, I realised I do not have linux-headers installed for some odd reason, but the reason seems to be that it is an optional dependency for dkms, so maybe I did not need it before but I do now. Installed it, then reinstalled the nvidia-580xx packages just to be safe, and rebooted. My graphical environment started, and I have hardware rendering in games again.

#archlinux #nvidia