Summary: | Error launching Vulkan/DXVK games in Flatpak on Nvidia GPU | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | YanEx <yanexbug> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | xaver.hugl, yanexbug |
Priority: | NOR | ||
Version First Reported In: | 6.1.2 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
inxi -Fzxx, dnf list installed \*nvidia\*, flatpak run com.valvesoftware.Steam
Screenshot error |
Description
YanEx
2024-07-20 14:44:15 UTC
Created attachment 171826 [details]
Screenshot error
May be useful: https://bugzilla.rpmfusion.org/show_bug.cgi?id=7004 https://github.com/flatpak/flatpak/issues/5802 https://github.com/NVIDIA/open-gpu-kernel-modules/issues/698 As it turned out, this issue affects not only Fedora but also Arch, specifically CachyOS Based on my tests, this seems to be exclusively a KDE issue, as the problem does not occur in other DEs, such as GNOME. Interestingly, in GNOME, you don’t even need to enter any commands in the launch parameters for games to forcefully use Nvidia instead of Intel. Additionally, if you connect the laptop to an external monitor, this error does not occur in KDE, as Nvidia is used directly, as far as I understand. If you enable the nvidia-persistenced daemon by running: "sudo systemctl enable nvidia-persistenced --now", it seems to resolve this issue. Additionally, you no longer need to add "__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia" to the launch parameters to force games to use the Nvidia GPU instead of Intel. However, I don't fully understand the exact purpose of this daemon. Moreover, it's not required in other desktop environments, where it's disabled by default. If this isn't a KDE-specific issue, I'd like to understand where to look for answers and who I can reach out to for help. Thank you. > However, I don't fully understand the exact purpose of this daemon. Moreover, it's not required in other desktop environments, where it's disabled by default. It is required by the NVidia driver for suspend. I'm not sure either what's going on here, but I think the best place you could get answers is https://forums.developer.nvidia.com/c/gpu-graphics/linux (In reply to Zamundaaa from comment #6) > > However, I don't fully understand the exact purpose of this daemon. Moreover, it's not required in other desktop environments, where it's disabled by default. > It is required by the NVidia driver for suspend. > > I'm not sure either what's going on here, but I think the best place you > could get answers is https://forums.developer.nvidia.com/c/gpu-graphics/linux This issue is already being discussed here: https://github.com/NVIDIA/open-gpu-kernel-modules/issues/698 But so far, we don't have any ideas on why exactly it's happening. Are you sure the report should be closed? Yes. KWin doesn't really have anything to do with Flatpak or what the Vulkan driver is doing under the hood. |