How to enable Nvidia driver?

If it’s easier for you i can just tell you how to accomplish it.

sudo nano /etc/default/grub

add the following to this line
Example:

GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1 resume=UUID=...

Add this:
nvidia-drm.modeset=1

ctrl + o + enter to write
ctrl + x to exit

Then run

sudo grub-mkconfig -o /boot/grub/grub.cfg

Then

sudo nano /etc/mkinitcpio.conf

add nvidia to the modules section

MODULES=“nvidia”

Then run

sudo mkinitcpio -P

Then add this to /etc/X11/xorg.conf.d/20-nvidia.conf

sudo nano /etc/X11/xorg.conf.d/20-nvidia.conf

Section “Device”
Identifier “Nvidia Card”
Driver “nvidia”
VendorName “NVIDIA Corporation”
Option “NoLogo” “true”
EndSection

Section “Screen”
Identifier “nvidia”
Option “metamodes” “nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }”
Option “TripleBuffer” “on”
Option “AllowIndirectGLXProtocol” “off”
EndSection

Then

ctrl + o + enter to write
crtl + x to exit

When you are done all this reboot and run inxi -Ga

1 Like