NVIDIA on Linux
Install Proprietary Driver
The default Nouveau driver works just well enough to get a desktop, installing the proprietary driver unlocks the full GPU capabilities.
sudo pacman -S nvidia-open-dkms
sudo apt install nvidia-open-kernel-dkms nvidia-driver
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
<nowiki> sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda </nowiki
Extra Free Performance
sudo nano /etc/modprobe.d/nvidia.conf
Add
options nvidia NVreg_UsePageAttributeTable=1 \ NVreg_DynamicPowerManagement=0x02 \ NVreg_InitializeSystemMemoryAllocations=1 \ NVreg_RegistryDwords=RMIntrLockingMode=1 \ NVreg_EnableResizableBar=1
Don’t Allow GPU to Stay at Maximum Power While Running Tasks
This will allow the graphics card to run at lower speeds while doing things that use CUDA, such as video decoding
sudo nano /etc/environment
Add
CUDA_DISABLE_PERF_BOOST=1
X11 Tweaks
sudo nano /etc/X11/xorg.conf.d/01-nvidia.conf
Add
Section "ServerFlags"
# Only applicable if you're using older Xlibre (<25.0.0.16), safe to remove otherwise
Option "IgnoreABI" "true"
# Increase the max clients allowed, this helps prevent your system being unable to launch apps
Option "MaxClients" "2048"
# Will improve performance when it's fully supported.
Option "Debug" "dmabuf_capable"
EndSection