Hello Fedora team,
I’m currently running Fedora 41 on an Alienware laptop with an NVIDIA GeForce RTX 4090 GPU. I’ve encountered an issue where, to achieve optimal graphics performance, I had to disable hybrid mode in the BIOS and switch to using the NVIDIA GPU exclusively. This change led to a significant increase in my glmark2
benchmark scores, and I wanted to share my findings in case it’s helpful for others or if there’s a better solution.
With hybrid mode enabled (both integrated and NVIDIA GPUs active), my glmark2
scores were consistently around 4,000. I tried several methods to force glmark2
to use the NVIDIA GPU, including:
- Running with the
DRI_PRIME=1
prefix - Setting the
_GLX_VENDOR_LIBRARY_NAME=nvidia
and_NV_PRIME_RENDER_OFFLOAD=1
environment variables to use NVIDIA drivers
Unfortunately, despite these attempts, my performance did not improve significantly.
After switching the BIOS to use the NVIDIA GPU exclusively (disabling hybrid mode), my glmark2
score skyrocketed to 22,000 — a massive improvement. This suggests that Fedora’s hybrid GPU management might not be fully optimized for my system configuration.
Here’s a breakdown of the methods I tried and the results:
- Method 1: Running
glmark2
normally with hybrid mode enabled — 4,000 score - Method 2: Using
DRI_PRIME=1
,_GLX_VENDOR_LIBRARY_NAME=nvidia
, and_NV_PRIME_RENDER_OFFLOAD=1
— 4,000 score - Method 3: Modifying the BIOS to GPU-only mode — 22,000 score
Given this huge performance difference, I’m wondering if there’s a more efficient way to utilize hybrid GPUs on Fedora without toggling BIOS settings. I’d appreciate any advice or if anyone else has experienced similar issues.
Thanks for your help and if you need any specific information, please don’t hesitate to ask.
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 |
|-----------------------------------------±-----------------------±---------------------+
| 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 4090 … Off | 00000000:01:00.0 On | N/A |
| N/A 45C P4 28W / 125W | 1222MiB / 16376MiB | 11% Default |
| | | N/A |
±---------------------------------------
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 |
|-----------------------------------------+------------------------+----------------------+
| 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 4090 ... Off | 00000000:01:00.0 On | N/A |
| N/A 45C P4 28W / 125W | 1222MiB / 16376MiB | 11% Default |
| | | N/A |
+----------------------------------------