Howto install nvidia drivers
archlinux
identify the your current nvidia card driver:
lspci -k|grep -EA2 VGA
blacklist nouveau drivers:
cat > /etc/modprobe.d/blacklist-nouveau.conf << EOF blacklist nouveau options nouveau modeset=0 alias nouveau off EOF
install nvidia latest stable drivers:
pacman -Sy nvidia-dkms nvidia-settings opencl-nvidia lib32-opencl-nvidia lib32-virtualgl lib32-nvidia-utils lib32-mesa-libgl nvidia-utils libva-nvidia-driver
or install latest nvidia beta drivers:
su - username yay -S lib32-nvidia-utils-beta lib32-opencl-nvidia-beta nvidia-beta-dkms nvidia-utils-beta libva-nvidia-driver nvidia-settings
edit /etc/default/grub and add the following:
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"
recreate grub config:
grub-mkconfig -o /boot/grub/grub.cfg
edit /etc/mkinitcpio.conf and add the following:
MODULES="nvidia nvidia_modeset nvidia_uvm nvidia_drm"
re create initramfs image:
mkinitcpio -P
reboot system:
reboot
when reboot use the following command to identify your nvidia drivers version:
cat /proc/driver/nvidia/version
gentoo linux
update package list:
emerge --sync
first we install kernel-bin
emerge gentoo-kernel-bin
update grub configuration:
grub-mkconfig -o /boot/grub/grub.cfg
reboot system:
reboot
block nouveau driver:
blacklist nouveau drivers: cat > /etc/modprobe.d/blacklist-nouveau.conf << EOF blacklist nouveau options nouveau modeset=0 alias nouveau off EOF
install nvidia drivers:
emerge nvidia-drivers
reboot system:
reboot
fedora linux
upgrade the system packages:
sudo dnf -y upgrade
install the required dependencies:
sudo dnf install -y kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig
install rpmfusion repo:
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
update dnf cache:
sudo dnf makecache
black list nouveau driver:
echo -e "blacklist nouveau\noptions nouveau modeset=0" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
install nvidia drivers:
sudo dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda
reboot system:
reboot
verify installation:
nvidia-smi
ubuntu linux
add required repositories:
sudo add-apt-repository restricted sudo add-apt-repository multiverse sudo apt update
install build-essentials and kernel-headers:
sudo apt install -y build-essential linux-headers-$(uname -r)
black list nouveau driver:
sudo sh -c "echo 'blacklist nouveau\\noptions nouveau modeset=0' > /etc/modprobe.d/blacklist-nouveau.conf"
recreate initramfs:
sudo update-initramfs -u
install nvidia drivers:
sudo apt install -y nvidia-driver-570
reboot system:
reboot
verify installation:
nvidia-smi
remove nvidia drivers
remove nvidia stable packages:
pacman -R lib32-nvidia-utils lib32-opencl-nvidia nvidia-dkms nvidia-settings nvidia-utils opencl-nvidia lib32-virtualgl nvidia-settings
remove nvidia beta packages:
pacman -R lib32-nvidia-utils-beta lib32-opencl-nvidia-beta nvidia-beta-dkms nvidia-utils-beta opencl-nvidia-beta lib32-virtualgl nvidia-settings
remove the following file:
rm /etc/modprobe.d/blacklist-nouveau.conf
reboot system:
reboot
nvidia thermal control settings
if you have issues controlling thermal settings add the following file:
cat >> /etc/X11/Xwrapper.config << EOF needs_root_rights=yes allowed_users=console EOF
troubleshooting
if you have issues with obs with the following error:
libDeckLinkAPI.so: cannot open shared object file: No such file or directory warning: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
do the following:
pacman -R libva-vdpau-driver && pacman -S libva-nvidia-driver --noconfirm