You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPU #872
Please describe your issue in as much detail as possible:
I have an NVidia dedicated GPU and an integrated GPU (AMD or Intel). Steam itself runs on the integrated GPU (my launcher apparently does not honor the use secondary GPU flag or the launcher) so I use a script that launches the command using several environment variables to push the games to the dedicated GPU.
Since the update from November 13, my games failed to render to the window: the window opens, the game actually uses the NVidia GPU and plays in the background, the audio plays but the window desperately remains all black or all white.
This has worked perfectly until last Friday, but the latest update broke my setup.
Steps for reproducing this issue:
Start Steam WITHOUT it using the dedicated NVidia GPU. e.g. open a terminal and start steam from the terminal.
Run a game using the dedicated graphics card, using prime-run or an equivalent script setting environment variables to use the secondary GPU
the window stays desperately blank, even though the game appears to run in the background
Your system information
Steam Runtime Version: Steam version 1794536281
Distribution (e.g. Ubuntu 18.04): Debian Testing
Link to your full system information (Help -> Steam Runtime Diagnostics) in a Gist:
I only get "XXX runtime container is not installed" for scout, soldier, sniper, legacy.
Have you checked for system updates?: Yes
What compatibility tool are you using?: Proton experimental
What versions are listed in steamapps/common/SteamLinuxRuntime/VERSIONS.txt? I don't have it
What versions are listed in steamapps/common/SteamLinuxRuntime_soldier/VERSIONS.txt? I don't have it
What versions are listed in steamapps/common/SteamLinuxRuntime_sniper/VERSIONS.txt? I don't have it
What versions are listed in steamapps/common/SteamLinuxRuntime_4/VERSIONS.txt?
#Name Version Runtime Runtime_Version Comment
depot 4.0.20261021.265997 # Overall version number
pressure-vessel 0.20261007.0
pressure-vessel-arm64 0.20261007.0
scripts 0.20261007.0 # from steam-runtime-tools
steamrt4 4.0.20261021.265997 steamrt4 4.0.20261021.265997 # steamrt4_platform_4.0.20261021.265997/
It looks like I spoke too early - the games do not start today, despite having tested this yesterday on two different computers. I am back to square one :(
changed the title [-]A Vulkan game will fail to render if the game is started with VK_DRIVER_FILES restrictions[/-][+]A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPU[/+]on Nov 17, 2026
a script that launches the command using several environment variables to push the games to the dedicated GPU
Please share that script. If you are using workarounds, Steam Runtime developers will need to know the specifics of what those workarounds are in order to be able to understand what is happening.
the problem can be reproduced without the script - Steam itself is launched from the terminal or a launcher that does NOT honor the "launch on secondary GPU" flag of the .desktop entry, so it is not using the secondary GPU.
steam itself, even without this script, chooses the NVidia GPU for the game.
Whenever Steam runs on the integrated GPU, and the game tries to run on the dedicated GPU, I get a fully black or white screen.
OK, so you're not usually forcing VK_DRIVER_FILES. That's an interesting data point.
Steam itself is launched from the terminal or a launcher that does NOT honor the "launch on secondary GPU" flag of the .desktop entry, so it is not using the secondary GPU
Which GPU is considered to be "secondary" here - discrete (Nvidia) or integrated?
Whenever Steam runs on the integrated GPU, and the game tries to run on the dedicated GPU, I get a fully black or white screen.
I wonder whether the Steam Overlay LD_PRELOAD module might be assuming that Steam and the game are on the same rendering path, rather than this being directly runtime-related?
OK, so you're not usually forcing VK_DRIVER_FILES. That's an interesting data point.
I do not anymore, I was confused because after editing my launch script looking for a combination of environment variables that would successfully bring the rendering to the window, I experienced the same as #871 and the game started working. I incorrectly assumed the last change that I made (not using VK_DRIVER_FILES) was the solution. I tried to scrub my bug report but I left a mention here, apologies. Has nothing to do with VK_DRIVER_FILES as far as I can tell - none of the environment variables that I use change anything, in fact Steam itself wants to offload the game to my NVidia GPU even if I don't use my script.
Which GPU is considered to be "secondary" here - discrete (Nvidia) or integrated?
"Secondary" is NVidia discrete - "primary" is integrated. I call it secondary because it is almost never used unless I explicitly enable it.
I wonder whether the Steam Overlay LD_PRELOAD module might be assuming that Steam and the game are on the same rendering path, rather than this being directly runtime-related?
I don't know if this is any proof of anything - but starting the game with LD_PRELOAD="" %command% does not fix the issue
I have looked into this and I can explain the root cause. The game fails to render properly if the device file /dev/nvidia-modeset is missing.
If nothing has created it by the time the game needs it, then the game will render but the surface used by the game won't be shared with the other GPU.
Running wine or any command that would use the NVidia GPU will create the file, but not the game in the container.
I do not know how this file gets created, it looks like it is created on demand by the driver? it can be created by calling nvidia-modprobe -m but it appears that it cannot be created from the steam container.
Just like #871 if any process is launched that would create it then the file appears and all games in Steam will work.
I have installed the udev rule that was submitted in that fix and I can report all my games work now. Creating the nvidia-modeset node is what makes it all work. Let me know if you would like me to test a different fix.
I think this is arguably a bug in the Nvidia proprietary driver: if it needs to load modules that are relevant to specific hardware, then it should be doing that from the kernel side or from a udev rule, rather than using a setuid-root tool to load them later. But hopefully we can work around it?
it can be created by calling nvidia-modprobe -m but it appears that it cannot be created from the steam container
This doesn't surprise me. nvidia-modprobe is setuid root, but a known limitation of unprivileged containers is that setuid binaries can't be run inside them (well, technically they can be run, but they'll run unprivileged and therefore usually not work).
Running wine or any command that would use the NVidia GPU will create the file, but not the game in the container
Yes, the Nvidia proprietary driver tries to do this on-demand, but that can't work if the first thing that tries to do this happens to be something that is already running inside a container.
My guess would be that in the old 32-bit Steam Client, the Steam Client did some accelerated rendering from outside the container, and this had the side-effect of running nvidia-modprobe -m or equivalent. But in the new 64-bit client, there's no accelerated rendering being done until we're already inside the container, by which time it's too late to do this.
And I think it's plausible that this doesn't normally affect single-GPU systems because on a single-GPU system, the desktop environment will usually be rendering on the Nvidia GPU, therefore will trigger the nvidia-modprobe -m before Steam has a chance to start; but on a dual-GPU system, if the rest of your desktop environment is rendering on the Intel/AMD integrated GPU, then 32-bit Steam would sometimes have been the first thing to use the Nvidia GPU.
There is code in pressure-vessel that will run nvidia-modprobe -u -c=0 (outside the container) if /sys/module/nvidia/version exists as a regular file, but /sys/module/nvidia_uvm doesn't exist as a directory. Probably we could do something similar, and run nvidia-modprobe -m if /sys/module/nvidia/version is a file but /sys/module/nvidia_modeset isn't a directory?
I have run with the "fix" a few times and on two different computers and everything appears to work.
I think this is arguably a bug in the Nvidia proprietary driver
I would say NVidia should fix this but usually saying that does not help because it's not clear at all if they would fix it and even if, Steam cannot rely on the correct NVidia version :( (I am quite familiar with the "it's their fault but I'd better fix it on my side" kind of problems)
alternatively the Steam packages can include the udev rules but I guess the packages are maintained by the distro maintainers, not Valve?
There is code in pressure-vessel that will run nvidia-modprobe -u -c=0 (outside the container) if /sys/module/nvidia/version exists as a regular file, but /sys/module/nvidia_uvm doesn't exist as a directory. Probably we could do something similar, and run nvidia-modprobe -m if /sys/module/nvidia/version is a file but /sys/module/nvidia_modeset isn't a directory?
that would probably be the best solution for this.
alternatively the Steam packages can include the udev rules but I guess the packages are maintained by the distro maintainers, not Valve?
Yeah. Valve can propose udev rules, but can't rely on them being backported into older distros like Debian stable and Ubuntu LTS (or accepted by distros at all); and anyway doing things during boot doesn't seem like something that should really be in-scope for the Steam Client.
Probably we could do something similar, and run nvidia-modprobe -m if /sys/module/nvidia/version is a file but /sys/module/nvidia_modeset isn't a directory?
that would probably be the best solution for this.
My colleague @ao2 is looking at this and will probably comment here at some point with a test-build for you to try (after reverting/disabling/commenting-out your own workaround, and rebooting).
@motor-dev can you please check what you have when you run ls -ld /sys/module/nvidia* right after boot without ever using the Nvidia GPU?
On a system with only the Nvidia GPU we expect /sys/module/nvidia/version to be there because at least nvidia.ko was loaded even if other modules have not, but I want to check what the initial situation is on a system with multiple GPUs when the NVidia one is a "secondary" GPU.
I have reverted the udev rule and this is the result. I booted Elden Ring and got greeted with the usual white screen with the game running but not showing on the window.
ls -ld /sys/module/nvidia*
drwxr-xr-x 7 root root 0 nov 18 17:30 /sys/module/nvidia
drwxr-xr-x 6 root root 0 nov 18 17:28 /sys/module/nvidia_drm
drwxr-xr-x 6 root root 0 nov 18 17:28 /sys/module/nvidia_modeset
drwxr-xr-x 6 root root 0 nov 18 17:28 /sys/module/nvidia_uvm
I didn't expect to see /sys/module/nvidia_modeset even when /dev/nvidia-modeset was missing, let's figure out why that might be.
But even if we don't find any info, since /sys/module/nvidia is there I think we can make a viable workaround looking for the missing /dev/nvidia-modeset instead.
@motor-dev I assume you meant nvidia-modprobe -m instead of nvidia-modprobe -r in your latest message.
yes all NVidia modules are loaded when I boot my desktop and my laptop, I have the option nvidia-drm.modeset=1 in my kernel command line but also options nvidia-drm modeset=1 ships as part of the nvidia driver package, my kernel command line is probably very old. I can retry without the command line but I expect the same result by now since NVidia should default to modesetting.
@motor-dev I assume you meant nvidia-modprobe -m instead of nvidia-modprobe -r in your latest message.
Indeed, the m was right next to the r on my keyboard... :(
yes I ran the -m one!
[edit] removed the outdated command line option, result is identical.
Success, I tried multiple time. The games work straight after boot when using the new pressure-vessel. The missing file appears at some point during the Steam boot, long before I start the game. The game starts properly with no udev rule file or any specific fix.
We will add this workaround to a future pressure-vessel release, I'll let you know when this becomes part of Steam so that you can remove any local changes.
Activity
motor-dev commentedon Nov 16, 2026
Logs - starting Steam on the integrated GPU then starting the game on the NVidia GPU
steam-logs-integratedGPU.tar.gz
motor-dev commentedon Nov 17, 2026
It looks like I spoke too early - the games do not start today, despite having tested this yesterday on two different computers. I am back to square one :(
[-]A Vulkan game will fail to render if the game is started with VK_DRIVER_FILES restrictions[/-][+]A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPU[/+]smcv commentedon Nov 17, 2026
Please share that script. If you are using workarounds, Steam Runtime developers will need to know the specifics of what those workarounds are in order to be able to understand what is happening.
motor-dev commentedon Nov 17, 2026
The script:
the problem can be reproduced without the script - Steam itself is launched from the terminal or a launcher that does NOT honor the "launch on secondary GPU" flag of the .desktop entry, so it is not using the secondary GPU.
steam itself, even without this script, chooses the NVidia GPU for the game.
Whenever Steam runs on the integrated GPU, and the game tries to run on the dedicated GPU, I get a fully black or white screen.
smcv commentedon Nov 17, 2026
OK, so you're not usually forcing
VK_DRIVER_FILES. That's an interesting data point.Which GPU is considered to be "secondary" here - discrete (Nvidia) or integrated?
I wonder whether the Steam Overlay
LD_PRELOADmodule might be assuming that Steam and the game are on the same rendering path, rather than this being directly runtime-related?motor-dev commentedon Nov 17, 2026
I do not anymore, I was confused because after editing my launch script looking for a combination of environment variables that would successfully bring the rendering to the window, I experienced the same as #871 and the game started working. I incorrectly assumed the last change that I made (not using VK_DRIVER_FILES) was the solution. I tried to scrub my bug report but I left a mention here, apologies. Has nothing to do with VK_DRIVER_FILES as far as I can tell - none of the environment variables that I use change anything, in fact Steam itself wants to offload the game to my NVidia GPU even if I don't use my script.
"Secondary" is NVidia discrete - "primary" is integrated. I call it secondary because it is almost never used unless I explicitly enable it.
I don't know if this is any proof of anything - but starting the game with
LD_PRELOAD="" %command%does not fix the issuemotor-dev commentedon Nov 18, 2026
Hi,
I have looked into this and I can explain the root cause. The game fails to render properly if the device file
/dev/nvidia-modesetis missing.If nothing has created it by the time the game needs it, then the game will render but the surface used by the game won't be shared with the other GPU.
Running wine or any command that would use the NVidia GPU will create the file, but not the game in the container.
I do not know how this file gets created, it looks like it is created on demand by the driver? it can be created by calling
nvidia-modprobe -mbut it appears that it cannot be created from the steam container.Just like #871 if any process is launched that would create it then the file appears and all games in Steam will work.
motor-dev commentedon Nov 18, 2026
omacom/omarchy#16379 appears to be a relevant explanation/fix
I have installed the udev rule that was submitted in that fix and I can report all my games work now. Creating the nvidia-modeset node is what makes it all work. Let me know if you would like me to test a different fix.
smcv commentedon Nov 18, 2026
Thanks, that's really useful information.
I think this is arguably a bug in the Nvidia proprietary driver: if it needs to load modules that are relevant to specific hardware, then it should be doing that from the kernel side or from a udev rule, rather than using a setuid-root tool to load them later. But hopefully we can work around it?
This doesn't surprise me.
nvidia-modprobeis setuid root, but a known limitation of unprivileged containers is that setuid binaries can't be run inside them (well, technically they can be run, but they'll run unprivileged and therefore usually not work).Yes, the Nvidia proprietary driver tries to do this on-demand, but that can't work if the first thing that tries to do this happens to be something that is already running inside a container.
My guess would be that in the old 32-bit Steam Client, the Steam Client did some accelerated rendering from outside the container, and this had the side-effect of running
nvidia-modprobe -mor equivalent. But in the new 64-bit client, there's no accelerated rendering being done until we're already inside the container, by which time it's too late to do this.And I think it's plausible that this doesn't normally affect single-GPU systems because on a single-GPU system, the desktop environment will usually be rendering on the Nvidia GPU, therefore will trigger the
nvidia-modprobe -mbefore Steam has a chance to start; but on a dual-GPU system, if the rest of your desktop environment is rendering on the Intel/AMD integrated GPU, then 32-bit Steam would sometimes have been the first thing to use the Nvidia GPU.There is code in pressure-vessel that will run
nvidia-modprobe -u -c=0(outside the container) if/sys/module/nvidia/versionexists as a regular file, but/sys/module/nvidia_uvmdoesn't exist as a directory. Probably we could do something similar, and runnvidia-modprobe -mif/sys/module/nvidia/versionis a file but/sys/module/nvidia_modesetisn't a directory?motor-dev commentedon Nov 18, 2026
I have run with the "fix" a few times and on two different computers and everything appears to work.
I would say NVidia should fix this but usually saying that does not help because it's not clear at all if they would fix it and even if, Steam cannot rely on the correct NVidia version :( (I am quite familiar with the "it's their fault but I'd better fix it on my side" kind of problems)
alternatively the Steam packages can include the udev rules but I guess the packages are maintained by the distro maintainers, not Valve?
that would probably be the best solution for this.
smcv commentedon Nov 18, 2026
Yeah. Valve can propose udev rules, but can't rely on them being backported into older distros like Debian stable and Ubuntu LTS (or accepted by distros at all); and anyway doing things during boot doesn't seem like something that should really be in-scope for the Steam Client.
My colleague @ao2 is looking at this and will probably comment here at some point with a test-build for you to try (after reverting/disabling/commenting-out your own workaround, and rebooting).
ao2 commentedon Nov 18, 2026
@motor-dev can you please check what you have when you run
ls -ld /sys/module/nvidia*right after boot without ever using the Nvidia GPU?On a system with only the Nvidia GPU we expect
/sys/module/nvidia/versionto be there because at leastnvidia.kowas loaded even if other modules have not, but I want to check what the initial situation is on a system with multiple GPUs when the NVidia one is a "secondary" GPU.Thanks.
smcv commentedon Nov 18, 2026
To be useful info, this would need to be after reverting/commenting-out the workarounds previously used here, I think?
ao2 commentedon Nov 18, 2026
Ah, yes, if the udev rule workaround is in place that should be reverted to gather info on the original status.
motor-dev commentedon Nov 18, 2026
I have reverted the udev rule and this is the result. I booted Elden Ring and got greeted with the usual white screen with the game running but not showing on the window.
I have then run
nvidia-modprobe -rand pasting here the same commands after:I have run the same command on another machine for a very very similar result.
[edit] I ran on another machine and as a matter of fact I got a slightly different result
nvidia_modeset was loaded anyway, and the nvidia-modeset device file was missing there too. nvidia_uvm was loaded after I started Steam/the game.
I can also confirm, of course, that
/sys/module/nvidia/versionwas present, no issue there.ao2 commentedon Nov 18, 2026
I didn't expect to see
/sys/module/nvidia_modeseteven when/dev/nvidia-modesetwas missing, let's figure out why that might be.But even if we don't find any info, since
/sys/module/nvidiais there I think we can make a viable workaround looking for the missing/dev/nvidia-modesetinstead.@motor-dev I assume you meant
nvidia-modprobe -minstead ofnvidia-modprobe -rin your latest message.ao2 commentedon Nov 18, 2026
Can you share the content of
/sys/module/nvidia_modesetright after boot?The issue does not seem to be about loading the module itself, but "only" about creating the device node.
motor-dev commentedon Nov 18, 2026
yes all NVidia modules are loaded when I boot my desktop and my laptop, I have the option
nvidia-drm.modeset=1in my kernel command line but alsooptions nvidia-drm modeset=1ships as part of the nvidia driver package, my kernel command line is probably very old. I can retry without the command line but I expect the same result by now since NVidia should default to modesetting.Indeed, the m was right next to the r on my keyboard... :(
yes I ran the -m one!
[edit] removed the outdated command line option, result is identical.
motor-dev commentedon Nov 18, 2026
I missed your previous comment
ao2 commentedon Nov 18, 2026
Yeah, so it looks like the module is loaded but for some reason the device node is not created.
@motor-dev can you please test a build of pressure-vessel with a candidate fix?
How to test:
$HOME/tmp:Thanks, Antonio
motor-dev commentedon Nov 18, 2026
Aye aye captain, on it
motor-dev commentedon Nov 18, 2026
Success, I tried multiple time. The games work straight after boot when using the new pressure-vessel. The missing file appears at some point during the Steam boot, long before I start the game. The game starts properly with no udev rule file or any specific fix.
ao2 commentedon Nov 18, 2026
Thanks for testing!
We will add this workaround to a future pressure-vessel release, I'll let you know when this becomes part of Steam so that you can remove any local changes.
smcv commentedon Nov 18, 2026
For the benefit of other dual-GPU users, it would perhaps be helpful to add this to the original report as an edit:
Workaround
Run
nvidia-modprobe -mbefore launching Steam.(The reporter of #871 said this worked for them, too.)
motor-dev commentedon Nov 18, 2026
I have edited the issue at the top with the workaround first, the description second and the system information last since the issue is now solved.
Thanks for implementing the workaround!