Arch Linux NVIDIA drivers don’t compile correctly
Last updated
Last updated
In some cases when upgrading your Arch Linux you may see a kernel update. We previously installed nvidia drivers on our system where we compiled them to the previous kernel, when updating the kernel your drivers may not be compatible with the new kernel. There are possibilities to fix it but the easiest and most feasible is to go back to the previous kernel where the drivers worked correctly.
To see the pacman cache we can do an ls
to the /var/cache/pacman/pkg
directory and if we are lucky and we have not cleared the cache when we update it we can find the package of the previous kernel where the nvidia drivers worked:
Bash
In my case where it worked is in 6.11.6
so we can follow the steps in the Arch Wiki:
If we can’t find the previous kernel where the drivers worked we will use a tool called Downgrade.
I share its repo:
In this case if we have yay
we will be able to install it easily:
Bash
If we do not have yay we can install it, I share with you the repository where it explains its installation:
Once installed downgrade we will put the following command looking for the kernel we use (in my case linux-zen):
Bash
Now we will select the kernel where everything worked correctly:
REMEMBER: You will have to uninstall linux-headers or linux-zen-headers depending on which one you are using and install them also with the same downgrade command but searching for linux-zen-headers.