-
Notifications
You must be signed in to change notification settings - Fork 176
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
New steam UI does not open if run with DRI_PRIME=1 #9383
Comments
can you test
|
This works fine from flatpak sandbox with same runtime as Steam |
Hello @koresh-krasa, please copy your system information from Steam ( Blind guess that this is related to https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19101. |
Since I'm also seeing the same behavior, I figured I'd provide my own system information. But due to #9398, I cannot 😞 |
@kisak-valve System information from stable client DRI_PRIME=1 was working before this update. Also similar behavior was present with new gamepadui before (similar to #9190) |
@kisak-valve I see 2 issues here:
Solving issue 2 is pretty easy, just remove the options from the desktop file. I've sent a PR to fix that in the Flatpak package for now, until it's removed upstream: flathub/com.valvesoftware.Steam/pull/1086 |
Re-reading this issue report, it should be noted that the common case where |
Not sure if I necessarily executed the above workaround correctly, but I could not get it to work. What I was able to do was run Steam from the terminal with the argument My setup is Ubuntu 20.04 with Steam installed via the .deb package from here and I am opted into the Steam Beta releases. |
Hello @TimTheOverlord, with regards to this issue report, running |
Hey all, I'm sure you guys are all still cracking at it either way, but I just wanted to mention there's a specific use case for users deliberately launching steam under the DRM_PRIME=1 variable. https://help.steampowered.com/en/faqs/view/145A-FE54-F37B-278A |
I have no clue what
'v-gui' argument is the only way to get Steam to launch for me as well. 'DRI_PRIME' and modifying 'PrefersNonDefaultGPU=true' do absolutely nothing |
@Candyhands @TimTheOverlord are you guys by any chance using KDE or one of the other Qt-based DEs? If that's the case, besides removing Note that this test might require a logoff/login or a reboot because DEs often have trouble live reloading |
Can confirm that changing
|
I have done this, and no dice. I'm on xfce, so it's gtk based rather than qt based. Running 'steam-runtime --reset' fixed the problem for me, but only for once launch. When I closed it, I couldn't open it back up. |
Same problem here, with DRI_PRIME=1, steamwebhelper chash. OS: Fedora release 38 (Thirty Eight) x86_64 |
Removing |
experiencing this issue as well. Ever since switching from Nvidia to AMD I made a post #11560 but was rightfully closed for duplication. Notes might still be helpful. Would love to be able to run Steam properly. |
Bro, try add here more details of you error, how is you crash? logs or things that can help to understand your problem. Try running the steam over your terminal, and paste your logs here. |
Sorry man, more info is in my original post linked in my first comment on this page. I'm new to linux and when I tried to get support from steam, they just pushed me to here. I don't know exactly whats logs you are looking for but happy to provide whatever you need but I need some instruction. I assume you mean to run the steam command and copy/paste the output from terminal? |
What SO (distribution of linux) are u using? and send file here and/or paste code in code format |
Ubuntu Distro txt file with output attached when i run steam command. As for that error.log, I do not see such a thing at that location |
@eons93 The Steam "icon" ( |
just try test if work execute the command in terminal: try both, see if either solves your problem, if not then your problem is probably something else.
|
I see, then I will look into changing the flag and seeing if that fixes it. As for the other strangeness, I feel like there are a few things but the main one that comes to mind is that sometimes when I start a game, steam will try and shutdown (a steam styled window pops up saying "steam is shutting down" or something similar). I can play the game fine and nothing actually happens to the steam client. This might be tied to something else I'm noticing where the steam client will just close after I quit out of a game. |
Alright, changing the flag did not change anything. additionally tried running the commands Milor123 suggested and both commands worked just fine so whatever the issue is, its not that. |
Are you runing it in wayland? you should try: |
Like the command just like that? running steam from terminal always works. how could I add that to the .desktop file? just copy and paste that line (up until the ' ; ') ? Edit: I confirmed, I am running wayland. I did some quick googling on that parameter you mentioned and tried adding the line I dont see why it would be an issue but I'm opening the steam.desktop file and saving my changes without issue then running steam icon. Not closing text editor between changes, but only making and saving changes when steam is closed. Just want to confirm that isn't somehow not submitting the changes. |
Using # for open source drivers
DRI_PRIME=1 application
# nvidia's proprietary driver
optirun application
optirun -b primus application
primusrun application
prime-run application
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia application
# possibly others 😬 |
@eons93 If Steam is loading when launched from the terminal, but not from the desktop entry file, then I would assume you haven't removed the |
I think I am having a different issue. I removed that line and steam still isn't running properly. Essentially what happens when I run Steam from the desktop icon, steam is running in the background but the window will only blink in and out of existence for a split second, reattempting to open the window every 5 seconds I would guess. This continues until I quit the process by right clicking the icon on the top bar of my screen. Below is my desktop file if thats of any help. |
Try removing |
you need edit the file sudo nano /etc/environment
add it: SDL_VIDEODRIVER=unset |
Yep, this is the one that did it. Even had a backup of the steam.desktop file that was unaltered and used that. So my question now is, was my issue caused by not performing a step when I swapped from Nvidia to AMD? Everything I saw prior to the swap was that AMD runs much better and that i would just need to uninstall the nvidia drivers before I swapped (I might have unisntalled them after though). Trying to get a lesson out of this, haha. |
I'm having an identical issue. Distro: Solus 4.6 Convergence Running using either switcheroo-control (Prefers Non-Default GPU set to true in a .desktop file) or the When attempting to use the integrated Intel GPU, Steam works perfectly, but games run on the integrated GPU :( Doing Note that the DE and compositor are running on the integrated GPU. 2025-01-04.23-48-47.mp4 |
After some messing around in Kubuntu 24.10 I found a easy way to make it work like expected, if you go to the .desktop shortcut and do properties then click on run on dedicated gpu to disable it. It will boot fine and give no more issues. (I have attached my screenshot on how to get it working on Kubuntu) |
Yes, this issue is discussing Steam crashing when that specific option is enabled. That option (effectively) sets DRI_PRIME through switcheroo-control. |
I am in Zorin OS. PrefersNonDefaultGPU=true I changed the above line from true to false. My system does have an iGPU, but for whatever reason this line needs to be false. I had to restart my system for the change to take effect (though maybe you can just log out and log back in). |
This issue is discussing Steam crashing when that option is set to Edit: And yes I mostly copy-pasted this from my previous reply. Seems to be a commonly misunderstood subject 😁 |
Your system information
Please describe your issue in as much detail as possible:
Similar symptoms as #9381
Login prompt displayed correctly but than main window tries to appear but crashes and goes into loop.
This issue is happening if DRI_PRIME is set to non 0 (e.g. DRI_PRIME=1, DRI_PRIME=pci-0000_03_00_0) DRI_PRIME=0 works fine.
In journalctl I was able to find some error logs related to steamwebhelper crash.
steam_journalctl.txt
Optput from
DRI_PRIME=1 com.valvesoftware.Steam
steam_output.txt
Steam client is flatpak
System information:
https://gist.github.com/koresh-krasa/b9a7a4c486ff061b9823aea6ce44f65b
DRI_PRIME=1 was working before this update
Steps for reproducing this issue:
Screencast from 2023-04-28 11-23-06.webm
The text was updated successfully, but these errors were encountered: