With my old laptop, which had an NVIDIA 1060 max q, I used the NVIDIA GPU as the primary rendering provider(only nvidia). It works reasonably well.
However, on the new laptop which has an 3060 max on ArchLinux, the performance is rather bad, so I’m trying to run optimus with prime-run.
I configured the intel gpu as base and trying to run prime-run for steam and standalone games.
However, prime-run doesn’t work correctly. Doesn’t active the NVIDIA card. Elden ring using prime-run doesn’t work as others.
As an example:
glxinfo returns NVIDIA as GPU:
[druida@arch ~]$ prime-run glxinfo| head
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
However, vainfo using prime-run returns intel GPU
[druida@arch ~]$ prime-run vainfo|head
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Intel iHD driver for Intel® Gen Graphics - 22.4.4 ()
vainfo: Supported profile and entry points
Seems vainfo should use NVIDIA gpu instead of intel?
I’m doing something wrong?
nvidia-bug-report.log.gz (261.1 KB)
va-api only ever uses the gpu that drives the Xscreen, it’s not offloading capable afaik it’s an Xorg limitation.
In general offloading seems to work, at least chrome is running on the nvidia gpu according to the logs.
What exactly is happening when you try to run games on it? Please create a new nvidia-bug-report.log while doing so.
The game, elden ring, gets stuck at the beggining when appears the mouse arrow. Using “__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=“nvidia” __VK_LAYER_NV_optimus=“NVIDIA_only” %command%” as lanuch options.
Also, I trided run steam with “prime-run steam” or elden ring launch options as "prime-run %command%, etc.
Nothing works, always stuck a the beggining
On nvidia-only the game runs perfectly.
Here the bug report while elden ring is stuck:
nvidia-bug-report.log.gz (308.9 KB)
Dec 08 14:12:39 arch kernel: NVRM: Xid (PCI:0000:01:00): 32, pid=6219, name=eldenring.exe, Channel ID 00000030 intr1 00000008 HCE_DBG0 00001b00 HCE_DBG1 00000001
Dec 08 14:12:39 arch kernel: NVRM: Xid (PCI:0000:01:00): 32, pid=6219, name=eldenring.exe, Channel ID 00000030 intr1 00000008 HCE_DBG0 00001b04 HCE_DBG1 00ceb010
Dec 08 14:13:43 arch kernel: NVRM: Xid (PCI:0000:01:00): 32, pid=7064, name=eldenring.exe, Channel ID 00000030 intr1 00000008 HCE_DBG0 00001b00 HCE_DBG1 00000001
Dec 08 14:13:43 arch kernel: NVRM: Xid (PCI:0000:01:00): 32, pid=7064, name=eldenring.exe, Channel ID 00000030 intr1 00000008 HCE_DBG0 00001b04 HCE_DBG1 00ceb010
Rather odd, Xid 32 would point to pcie/system memory issues but should then also happen when switching to nvidia as primary, which isn’t the case as you said.
For testing, can you please stop and disable nvidia-powerd?
Does the same, stuck a the beggining of the game.
something is not configured correctly or a bug.
Yes it is.
As it says on the bug report, using the env variable
as a workaround “VKD3D_DISABLE_EXTENSIONS=VK_KHR_present_id,VK_KHR_present_wait” the game works.
Thank you very much.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.