Can't seem to have the OS use my GPU (Optimus)

Hi everyone,

I just installed Fedora on my XPS 15 9520 with a RTX3050.

I followed the steps here : Howto/NVIDIA - RPM Fusion
Since I have secure boot, I did the full kmod part with registering.

I now have the GPU “recognized” as in nvidia-smi returnrs :

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.86.16              Driver Version: 570.86.16      CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   42C    P8              3W /   40W |     112MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         

My issue is that it seems that the usage is always 0 (also in Nvidia X Server), even when I run GPU benchmark.
I tried

DRI_PRIME=1 glxinfo | grep "OpenGL vendor string"

To see if I could force it, but I get a

glx: failed to create dri3 screen
failed to load driver: nouveau
OpenGL vendor string: Mesa

Did I miss a step?
Thanks!

You can use ‘nvtop’ and example if you have steam or games installed start the game. On my xps it uses intel card as long as it needs and share memory and when intel is not enough it takes nvidia so on most use cases intel is enough browsing video etc

When checking nvtop and running graphic test etc you start to see it actually uses nvidia

Edited and fixed all typos sorry for that

My bad, I’m pretty stupid, it works… I guess the benchmark I used was not using the GPU for some reasons, but a steam game does! Thanks!

2 Likes