I am using a laptop with 2 GPUs (iGPU and dGPU), and I am quite unsure on how to install graphics drivers. I was told to do “sudo pacman -S nvidia” in the terminal, to which I did. But it seems there is a missing piece. Any help would be appreciated. There is an inxi -G output, and a prime-run glxgears output, to hopefully help.
GLXGEARS
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 26
Current serial number in output stream: 27
There are multiple ways as outlined here: NVIDIA Optimus - ArchWiki. Better support can be offered on our Discord server if you have trouble following the Wiki.
The simplest method is to install the nvidia package and the bumblebee package. Although this apparently has performance issues.