Picture this. I update a system running Arch Linux then restart. Now, I can only see a black screen, sometimes with some error, sometimes without. In my case, it's often due to the latest NVIDIA driver not supporting my graphics card. Let's run through the steps that fix my issue.
Steps
Switch to TTY mode (from the black screen).
Ctrl+Alt+F2View error logs.
journalctl -b -p err | lessThe following information was retrieved from the logs.
NVRM: The GPU installed in this system is supported through the NVIDIA 123.xx Legacy drivers. The 124.56.78 NVIDIA driver will ignore this GPU.Check the installed NVIDIA driver version.
pacman -Qs nvidiaThe output had a bunch of logs with 124.56.78-9, i.e. the installed version.
Search for nvidia-123 packages available to install.
The following command didn't return anything.pacman -Ss nvidia-123The following command returned opencl-nvidia-123xx, lib32-opencl-nvida-123xx, nvidia-123xx-utils, lib32-nvidia-123xx-utils, nvidia-123xx-settings, nvidia-123xx-dkms.
pamac search nvidia-123nvidia-123xx-dkms, nvidia-123xx-utils & lib32-nvidia-123xx-utils are the packages we should install.
Remove the incompatible NVIDIA driver.
sudo mhwd -r pci video-nvidiaThe following error occurred after running the above command.
Failed to prepare transaction (could not satisfy dependencies)
Removing linux321-nvidia breaks dependency 'linux321-nvidia' required by linux-nvidia-meta
removing nvidia-utils breaks dependency 'vulkan-driver' required by steam-native-runtime
removing lib32-nvidia-utils breaks dependency 'lib32-vulkan-driver' required by steam-native-runtime
Error: pacman failed!*
linux-nvidia-meta & steam-native-runtime are preventing the removal of the incompatible NVIDIA driver.Remove the conflicting packages.
sudo pacman -Rdd linux-nvidia-meta steam-native-runtimeInstall 123.xx legacy driver from AUR.
pamac build nvidia-123xx-dkms nvidia-123xx-utils lib32-nvidia-123xx-utilsRestart the system. It should boot back to the GUI.
sudo rebootReinstall steam-native-runtime (linux-nvidia-meta is automatically reinstalled in step 7).
pamac install steam-native-runtime
Useful commands
Check errors at boot
journalctl -b -p errList available drivers
mhwd -l -d --pciList installed drivers
mhwd -liSearch AUR packages
pamac search PACKAGE_NAMEScroll through command outputs in TTY.
COMMAND | less
