Issue Dgpu running steam satisfactory

The issue I face is with Steam. I try to run a game using Steam Proton, and I have never tried this before, so I am very new to this. I installed all the drivers (I think/hope) and did a test to check if I could run a benchmark, so I ran glmark2, but that did not work. When I run it, I get:

$ glmark2

glmark2 2023.01

=======================================================
OpenGL Information
GL_VENDOR: AMD
GL_RENDERER: AMD Radeon Graphics (radeonsi, renoir, LLVM 18.1.6, DRM 3.57, 6.10.6-200.fc40.x86_64)
GL_VERSION: 4.6 (Compatibility Profile) Mesa 24.1.6
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x600 windowed

[build] use-vbo=false: FPS: 3344 FrameTime: 0.299 ms
[build] use-vbo=true:^C

So it doesn’t run on the discrete GPU, and I thought maybe I need to do something else. I looked online and realized I need to point it to the GPU, like on Windows where you add the game to the NVIDIA Control Panel.

So I did this:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glmark2

And it worked:

Code

=======================================================
glmark2 2023.01

OpenGL Information
GL_VENDOR:      NVIDIA Corporation
GL_RENDERER:    NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
GL_VERSION:     4.6.0 NVIDIA 560.35.03
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size:   800x600 windowed

=======================================================
[build] use-vbo=false: FPS: 2145 FrameTime: 0.466 ms
[build] use-vbo=true:

So I tried to do the same with Steam in the hope that it would work, but of course, it didn’t. When I wanted to play “Satisfactory,” it used the AMD GPU. In watch -n 1 nvidia-smi, I only saw the AMD GPU being utilized. I thought, since my laptop has a discrete GPU, maybe I should look at enabling the discrete GPU all the time, but that didn’t work either. I ran my laptop’s output of my game to a dedicated monitor in hopes that it would work, but even worse, it still wanted to run the game on the CPU’s GPU. I was frustrated; I must have missed something. I just can’t figure this one out, so I reinstalled Steam, NVIDIA drivers, and a different kernel, but nothing changed.

The command __NV_PRIME_RENDER_OFFLOAD=1 works to some extent, but even then, in nvidia-smi, it still says the GPU is off. So, I don’t know what to do. What more information do you need?

System Information:

Laptop: ASUS G14
CPU: AMD Ryzen 9 5900HS
GPU: AMD Radeon RX Vega 8 (Ryzen 4000/5000)
DGPU: NVIDIA GeForce RTX 3060 Max-Q
RAM Speed: 3200 MT/s

lspci Output:
lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)

OpenGL Renderer:
glxinfo | grep “OpenGL renderer”
OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, LLVM 18.1.6, DRM 3.57, 6.10.6-200.fc40.x86_64)

Drivers and Kernel:
lspci -k | grep -A 3 -i “VGA”
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 1722
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia

04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
Subsystem: ASUSTeK Computer Inc. Device 1722
Kernel driver in use: amdgpu
Kernel modules: amdgpu

Kernel Version:
Linux fedora 6.10.6-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 19 14:09:30 UTC 2024 x86_64 GNU/Linux

NVIDIA Modules:
lsmod | grep nvidia
nvidia_drm 135168 4
nvidia_modeset 1650688 1 nvidia_drm
nvidia_uvm 6844416 2
nvidia 72577024 18 nvidia_uvm,nvidia_modeset
video 81920 4 asus_wmi,amdgpu,asus_nb_wmi,nvidia_modeset

Display Settings:
plasmashell --version
plasmashell 6.1.4
KDE
xrandr
Screen 0: minimum 16 x 16, current 2560 x 1440, maximum 32767 x 32767
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
2560x1440 119.95*+
1920x1440 119.97
1600x1200 119.82
1440x1080 119.92
1400x1050 119.90
1280x1024 119.83
1280x960 119.89
1152x864 119.77
1024x768 119.80
800x600 119.85
640x480 119.52
320x240 117.34
1920x1200 119.90
1680x1050 119.89
1440x900 119.94
1280x800 119.85
1152x720 119.73
960x600 119.74
928x580 119.55
800x500 119.47
768x480 119.71
720x480 119.65
640x400 119.64
320x200 117.55
2048x1152 119.96
1920x1080 119.93
1600x900 119.95
1368x768 119.83
1280x720 119.86
1024x576 119.85
864x486 119.69
720x400 119.54
640x350 119.24