-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan/DXVK games in Flatpak on Nvidia GPU won't launch #327
Comments
Does this only affect Flatpak apps? E.g. do you have this problem if you install Steam/Bottles/Heroic through your distro's package manager? The problem also seems tricky to reproduce consistently, judging by how you've described it here:
In any case, can you try running Here are command line instructions for that (please post the output of the last command only): Testing Vulkan (x86_64 / x86)# RPM source: https://kojihub.stream.centos.org/koji/buildinfo?buildID=46408
curl -LO https://kojihub.stream.centos.org/kojifiles/packages/vulkan-tools/1.3.268.0/1.el9/x86_64/vulkan-tools-1.3.268.0-1.el9.x86_64.rpm
# Extract vulkaninfo from the rpm file
bsdtar -xf vulkan-tools-1.3.268.0-1.el9.x86_64.rpm --strip-components 3 --include usr/bin/vulkaninfo -O > vulkaninfo64
# Give it execute permission
chmod +x vulkaninfo64
# Run vulkaninfo within Flatpak'd Steam, and make sure that the output matches your GPU name/model, and not llvmpipe or something else
flatpak run --command=$PWD/vulkaninfo64 --filesystem=$PWD:ro com.valvesoftware.Steam --summary | grep -wm1 deviceName # RPM source: https://kojihub.stream.centos.org/koji/buildinfo?buildID=46408
curl -LO https://kojihub.stream.centos.org/kojifiles/packages/vulkan-tools/1.3.268.0/1.el9/i686/vulkan-tools-1.3.268.0-1.el9.i686.rpm
# Extract vulkaninfo from the rpm file
bsdtar -xf vulkan-tools-1.3.268.0-1.el9.i686.rpm --strip-components 3 --include usr/bin/vulkaninfo -O > vulkaninfo32
# Give it execute permission
chmod +x vulkaninfo32
# Run vulkaninfo within Flatpak'd Steam, and make sure that the output matches your GPU name/model, and not llvmpipe or something else
flatpak run --command=$PWD/vulkaninfo32 --filesystem=$PWD:ro com.valvesoftware.Steam --summary | grep -wm1 deviceName Testing OpenGL (x86_64 / x86)# RPM source: https://kojihub.stream.centos.org/koji/buildinfo?buildID=19862
curl -LO https://kojihub.stream.centos.org/kojifiles/packages/mesa-demos/8.4.0/5.20181118git1830dcb.el8/x86_64/glx-utils-8.4.0-5.20181118git1830dcb.el8.x86_64.rpm
# Extract glxinfo from the rpm file
bsdtar -xf glx-utils-8.4.0-5.20181118git1830dcb.el8.x86_64.rpm --strip-components 3 --include usr/bin/glxinfo -O > glxinfo64
# Give it execute permission
chmod +x glxinfo64
# Run glxinfo within Flatpak'd Steam, and make sure that the output does not say 'llvmpipe'
flatpak run --command=$PWD/glxinfo64 --filesystem=$PWD:ro com.valvesoftware.Steam -B | grep 'OpenGL renderer string:' # RPM source: https://kojihub.stream.centos.org/koji/buildinfo?buildID=19862
curl -LO https://kojihub.stream.centos.org/kojifiles/packages/mesa-demos/8.4.0/5.20181118git1830dcb.el8/i686/glx-utils-8.4.0-5.20181118git1830dcb.el8.i686.rpm
# Extract glxinfo from the rpm file
bsdtar -xf glx-utils-8.4.0-5.20181118git1830dcb.el8.i686.rpm --strip-components 3 --include usr/bin/glxinfo -O > glxinfo32
# Give it execute permission
chmod +x glxinfo32
# Run glxinfo within Flatpak'd Steam, and make sure that the output does not say 'llvmpipe'
flatpak run --command=$PWD/glxinfo32 --filesystem=$PWD:ro com.valvesoftware.Steam -B | grep 'OpenGL renderer string:' |
Yes, this issue is specific to Flatpak. It doesn't occur with the native versions of Steam or Heroic Games Launcher.
Vulkan
OpenGL
If I run |
Judging by both outputs, your NVIDIA GPU is not being used at all...? Unfortunately, I don't have a laptop with hybrid graphics to debug this, and I also have no idea how they're supposed to work in general, but I at least expected that the discrete GPU would be used unconditionally when running any 3D app...
But does it still say What output do you get if you run Also, please post the output for each of these commands: $ cat /sys/module/nvidia/version
$ flatpak --gl-drivers
$ flatpak info "org.freedesktop.Platform.GL.nvidia-$(cat /sys/module/nvidia/version | tr '.' '-')"
$ flatpak info "org.freedesktop.Platform.GL32.nvidia-$(cat /sys/module/nvidia/version | tr '.' '-')" |
It seems so, but I can’t say for sure. However, if you run
Yes, that's right.
565.77
nvidia-565-77
ID: org.freedesktop.Platform.GL.nvidia-565-77
ID: org.freedesktop.Platform.GL32.nvidia-565-77
|
Thank you for providing those. I still have no idea why that happens, but let's hope that someone who knows what's going on chimes in. |
This comment has been minimized.
This comment has been minimized.
If you have an Nvidia graphics card, try running the following command in the terminal:
If the service is disabled, enable it with:
It seems like this helped me, but I’d like to run a few more tests on other desktop environments. |
Hello everyone, I'm reaching out here because I have no idea where else to ask for help. I'm experiencing an issue with running games that use Vulkan (DXVK) in Flatpak—they simply won't launch. This affects applications like Steam, Bottles, and Heroic in Flatpak. Initially, I encountered this problem on Fedora 40 and couldn't find a solution. I decided to try CachyOS, but within just a couple of hours, the same issue appeared there as well.
I have a laptop with hybrid graphics, and the problem doesn’t occur when using an external monitor or when switching to an X11 session instead of Wayland. Games that use OpenGL also run without any issues.
Below, I've included links to my bug reports. Any help would be greatly appreciated!
flatpak/flatpak#5802
NVIDIA/open-gpu-kernel-modules#698
Here are screenshots of the errors that appear after launching the games:
The text was updated successfully, but these errors were encountered: