Hello there,
After trying out some solutions that didn’t work I decided to write here.
I have a laptop with a hybrid AMD/NVidia config. Unfortunately, anecdotally (according to performance), the laptop is not using the discreet GPU card for graphically-demanding apps/games, incl. Steam (EDIT: it might be using the nouveau driver with NVidia instead, thus the abysmal performance).
My system is Fedora Kinoite with some layered packages: akmod-nvidia distrobox gcc latte-dock qjackctl tlp tlp-rdw xorg-x11-drv-nvidia.
When I go into system settings, in [About this system] it shows ‘AMD Radeon Graphics’ as the graphics processor. NVidia settings app also doesn’t state the GPU. GreenWithEnvy app states it can’t find the NVidia card.
EDIT: tried running __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears -info | grep GL_RENDERER
but it prints out an error:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (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
While running the same thing without forcing the discrete GPU turns out just fine:
GL_RENDERER = AMD Radeon Graphics (renoir, LLVM 16.0.4, DRM 3.52, 6.3.4-201.fc38.x86_64)
Running DRI_PRIME=1
with glxgears prints out GL_RENDERER = NV176
. Unfortunately, can’t start Steam (Flatpak) with it:
SteamUpdateUI: An X Error occurred
X Error of failed request: BadAlloc (insufficient resources for operation)
However, when I do lspci | grep VGA
it outputs:
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c5)
So, it does recognise the discreet GPU. Tried layering nvidia-prime, prime-render, nvidia-dkms, hybrid-amd-nvidia-prime, video-hybrid-amd-nvidia-prime, but none of these exist in the repos and can’t be installed. Do I need to add a repo!?
The question is now why [About this system] doesn’t recognise it, and more importantly, how to utilise the NVidia GPU? Any ideas?
Thanks,
- A