You are not logged in.

#1 2024-09-24 04:31:55

monksy
Member
Registered: 2013-12-30
Posts: 23

Hybrid Graphics with an AMD chip and Nvidia

I've got 2 GPUs.

My intention:
I do not intend on running on the dGPU because I plan on doing a passthrough to a VM when I need it. Also I don't always need to run on the Nvidia card.

Issue:

The dGPU performance is very bad in glmarks2 compared to the igpu.

Also I'm not seeing the systemd-boot screen when booting up. The screen is just blank.

Hardware:
01:00.0 VGA compatible controller: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1)
10:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raphael (rev ca) (AMD 7900x3d)

I'm using KDE with Wayland.

xrandr --listproviders
Providers: number : 0

I'm using Wayland so that makes more sense.

So glmark2 with amd produces:

=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      AMD
    GL_RENDERER:    AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 18.1.8, DRM 3.57, 6.10.10-arch1-1)
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 24.2.3-arch1.1
    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: 20290 FrameTime: 0.049 ms
[build] use-vbo=true: FPS: 32169 FrameTime: 0.031 ms
[texture] texture-filter=nearest: FPS: 23611 FrameTime: 0.042 ms
[texture] texture-filter=linear: FPS: 22534 FrameTime: 0.044 ms
[texture] texture-filter=mipmap: FPS: 23125 FrameTime: 0.043 ms
[shading] shading=gouraud: FPS: 22199 FrameTime: 0.045 ms
[shading] shading=blinn-phong-inf: FPS: 21114 FrameTime: 0.047 ms
[shading] shading=phong: FPS: 15730 FrameTime: 0.064 ms
[shading] shading=cel: FPS: 15008 FrameTime: 0.067 ms
[bump] bump-render=high-poly: FPS: 11338 FrameTime: 0.088 ms
[bump] bump-render=normals: FPS: 26496 FrameTime: 0.038 ms
[bump] bump-render=height: FPS: 23987 FrameTime: 0.042 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 6633 FrameTime: 0.151 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 2306 FrameTime: 0.434 ms
[pulsar] light=false:quads=5:texture=false: FPS: 18266 FrameTime: 0.055 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 2694 FrameTime: 0.371 ms
[desktop] effect=shadow:windows=4: FPS: 8476 FrameTime: 0.118 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2843 FrameTime: 0.352 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 3751 FrameTime: 0.267 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 4656 FrameTime: 0.215 ms
[ideas] speed=duration: FPS: 14415 FrameTime: 0.069 ms
[jellyfish] <default>: FPS: 8846 FrameTime: 0.113 ms
[terrain] <default>: FPS: 396 FrameTime: 2.529 ms
[shadow] <default>: FPS: 10142 FrameTime: 0.099 ms
[refract] <default>: FPS: 719 FrameTime: 1.391 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 25936 FrameTime: 0.039 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 21062 FrameTime: 0.047 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 25223 FrameTime: 0.040 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 24578 FrameTime: 0.041 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 22831 FrameTime: 0.044 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 25380 FrameTime: 0.039 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 24521 FrameTime: 0.041 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 24815 FrameTime: 0.040 ms
=======================================================
                                  glmark2 Score: 16244 

prime-run with glmark2 produces:

prime-run glmark2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      NVIDIA Corporation
    GL_RENDERER:    NVIDIA GeForce RTX 4060 Ti/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: 4209 FrameTime: 0.238 ms
[build] use-vbo=true: FPS: 5612 FrameTime: 0.178 ms
[texture] texture-filter=nearest: FPS: 5614 FrameTime: 0.178 ms
[texture] texture-filter=linear: FPS: 5615 FrameTime: 0.178 ms
[texture] texture-filter=mipmap: FPS: 5602 FrameTime: 0.179 ms
[shading] shading=gouraud: FPS: 5584 FrameTime: 0.179 ms
[shading] shading=blinn-phong-inf: FPS: 5582 FrameTime: 0.179 ms
[shading] shading=phong: FPS: 5564 FrameTime: 0.180 ms
[shading] shading=cel: FPS: 5516 FrameTime: 0.181 ms
[bump] bump-render=high-poly: FPS: 5600 FrameTime: 0.179 ms
[bump] bump-render=normals: FPS: 1789 FrameTime: 0.559 ms
[bump] bump-render=height: FPS: 5599 FrameTime: 0.179 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 5599 FrameTime: 0.179 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 5612 FrameTime: 0.178 ms
[pulsar] light=false:quads=5:texture=false: FPS: 5560 FrameTime: 0.180 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 4083 FrameTime: 0.245 ms
[desktop] effect=shadow:windows=4: FPS: 5166 FrameTime: 0.194 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2403 FrameTime: 0.416 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 3618 FrameTime: 0.276 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2932 FrameTime: 0.341 ms
[ideas] speed=duration: FPS: 5556 FrameTime: 0.180 ms
[jellyfish] <default>: FPS: 5467 FrameTime: 0.183 ms
[terrain] <default>: FPS: 2180 FrameTime: 0.459 ms
[shadow] <default>: FPS: 1229 FrameTime: 0.814 ms
[refract] <default>: FPS: 3454 FrameTime: 0.290 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 5523 FrameTime: 0.181 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 5592 FrameTime: 0.179 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 5598 FrameTime: 0.179 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 5600 FrameTime: 0.179 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 5590 FrameTime: 0.179 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 5594 FrameTime: 0.179 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 5593 FrameTime: 0.179 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 5585 FrameTime: 0.179 ms
=======================================================
                                  glmark2 Score: 4829 
=======================================================

/etc/modprobe.d/nvidia.conf

# Automatically generated by EnvyControl

options nvidia-drm modeset=1
options nvidia "NVreg_DynamicPowerManagement=0x02"
options nvidia NVreg_UsePageAttributeTable=1 NVreg_InitializeSystemMemoryAllocations=0

Last edited by monksy (2024-09-24 04:36:05)

Offline

#2 2024-09-24 06:15:35

cryptearth
Member
Registered: 2024-02-03
Posts: 1,216

Re: Hybrid Graphics with an AMD chip and Nvidia

https://wiki.archlinux.org/title/NVIDIA
https://wiki.archlinux.org/title/PRIME
https://wiki.archlinux.org/title/NVIDIA_Optimus
it highly depends on how your laptop (btw: if you have a mobile platform please mention it as otherwise likely anyone assumes a desktop) is wired - could be not possible at all

Offline

#3 2024-09-24 18:49:31

monksy
Member
Registered: 2013-12-30
Posts: 23

Re: Hybrid Graphics with an AMD chip and Nvidia

cryptearth wrote:

https://wiki.archlinux.org/title/NVIDIA
https://wiki.archlinux.org/title/PRIME
https://wiki.archlinux.org/title/NVIDIA_Optimus
it highly depends on how your laptop (btw: if you have a mobile platform please mention it as otherwise likely anyone assumes a desktop) is wired - could be not possible at all

This is a desktop. I am going the prime route.  I have read up and followed up on what the pages say. They don't seem to be addressing this particular situation.

Offline

#4 2024-09-24 19:08:26

cryptearth
Member
Registered: 2024-02-03
Posts: 1,216

Re: Hybrid Graphics with an AMD chip and Nvidia

well - on a regular desktop the CPUs iGPU is connected to the graphic outputs of the motherboard - and the dGPU has its own - so what GPU is used depends on where you connect your monitor to
with a dGPU one usually wants to not use the CPUs iGPU and hence connecting the screens directly to the dGPU is the preferred option
in your case - well - I'm not sure but if I'm correct this is called "reverse prime": you connect your screens to the motherboard so the default GPU is the iGPU and then use some voodoo magic to route the output from the dGPU thru it - although still this depends on your hardware and might not be possible the way you want

Offline

#5 2024-09-25 13:40:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,236

Re: Hybrid Graphics with an AMD chip and Nvidia

monksy wrote:

options nvidia-drm modeset=1

You need to add nvidia-drm.modeset=1 as a kernel parameter , putting it in modprobe.d is not enough .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB