Switching between free and non-free Nvidia
Switching from free to non-free
As always, before installing or changing packages, make sure your system is fully updated:
Remove the nouveau package (if installed):
Time to install the non-free packages:
If you use the linux-next kernel:
If you have an older card (GeForce 600 - 900 series cards NVSx and Tesla
):
If you use the linux-next kernel add:
If you have an even older card (GeForce 400/500 series cards NVCx and NVDx
from around 2010-2011):
If you use the linux-next kernel add:
This will automatically install the needed nvidia-utils version too. If you want to use the GUI for nvidia, add nvidia-settings to what you install, this pulls in GTK, so it is packaged separately.
After all is installed, reboot to load the new driver.
Switch from non-free to free
With the changes in the kernel over the past ten, it is strongly recommended to at least try the free drivers.
Remove the nvidia packages. Check what nvidia packages you have installed with pacman -Qs nvidia
.
Add nvidia-next, nvidia-settings or any other nvidia version to the above line if the pacman -Qs nvidia command showed those too.
To install the Nouveau driver (not well maintained since at least 2018):
Reboot to load the new drivers.