Today I tried to use OBS to record videos, but it couldn’t find the display. I checked the GPU status with nvidia-smi and it didn’t work, and I didn’t have bumblebee or optimus-manager on my computer.
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Oh, glxinfo is now part of mesa-utils package. So install mesa-utils and lib32-mesa-utils first. Anyway, you can just try launching OBS with prime-run and see if it can see your GPU.
Try launching OBS with these instead of prime-run: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
Oh, before that, can you install mesa-utils and try glxinfo again? Just to make sure nvidia prime offload is actually working.
On second note, it maybe just wayland problem. From my quick research, OBS does have screen capture issue under wayland. So you might want to login to X11 (GDM) instead.
Maybe you could try to remove the video-hybrid-intel-nvidia-prime driver from MHWD, and try to reinstall it, or install the 470 driver instead.
If inxi still doesn’t show Nvidia driver loaded for your Nvidia card, make sure you don’t have blacklist somewhere forbidding loading the Nvidia module (optimus manager or bumblebee might do that, you said you don’t have it but that doesn’t mean you didn’t install it at some point).
For additional info give output of ls /usr/lib/modprobe.d/ and ls /etc/modprobe.d/
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x5649c9c4e380) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x5649c9c7ede0) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
I removed the video-hybrid-nvidia-prime and try install it, then I got this,
> Installing video-hybrid-intel-nvidia-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronizing software package databases...
Core is downloading...
Extra is downloading...
Community is downloading...
Multilib is downloading...
Error: Not found target: Linux513-nvidia
Error: Not found target: Linux514-nvidia
Error: pacman failed!
Error: script failed!
You once again cut down the inxi output. Give the output as I asked. No need for your other inxi -G output if you give what I asked.
We can also see that the Nvidia driver is still not loaded. Either you’re not installing properly the driver (how do you install it, where are the commands output?), or you have something blacklisting/forbidding the module to load.