Install and configure nvidia driver on Arch Linux
Find the right driver
To install your driver you should read the wiki, my solution may not work for you.
NVIDIA - ArchWiki
To see what graphics card you have:
1 | lspci -k | grep -A 2 -E "(VGA|3D)" |
Output
1 | 00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] |
Wish driver you need:
CodeNames
This is what i have:NV137 (GP107) GeForce GTX (1050, 1050 Ti)
I’m above NV110 so I install the nvidia drinver and not the nvidia-lts one.
1 | sudo pacman -S nvidia nvidia-utils nvidia-prime nvidia-settings |
I use prime-run for the moment to use my GPU only when I need, but I will try NVIDIA Optimus.
D’ont create a conf file for Xorg, the conf is inplemented in the driver.
Configure mkinitcpio
The doc:
Early KMS start
DRM_Kernel_mode_setting
In the file /etc/mkinitcpio.conf
Replace MODULES=() by MODULES=(i915 nvidia).
Tests
Enable ssh:sudo systemctl enable sshd
First thing to do is reboot:
It can work now but if it’s broken after the rebbot it’s useless.
Download glxinfo from AUR:prime-run glxinfo
If you have an output without errror it’s good.
The nvidia setting:
1 | nvidia-setting |
You should download nvtop via pacman:
1 | sudo pacman -S nvtop |
And run nvtop to see the consumption.