-
Notifications
You must be signed in to change notification settings - Fork 174
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 |
Thank u very much bro, it apparently works well, after install and run your command for search file, it dont found errors, and now I've installared my steam beta and works. NOTE IT WORK ONLY IF I RUN STEAM WITH THIS:
Thank uuu bro !!!! If the error occurs again I will let you know. |
Currently still an issue, however I need Steam to launch with the dGPU in specific circumstances, like when using VR. If the Steam client is launched with the iGPU but you launch SteamVR with the dGPU (for example when using ALVR), you get this garbled mess. Launching games still works fine (as long as you run them with DRI_PRIME=1) so it's not a showstopper, just a bit annoying. |
Quick note: today Steam started presenting the same behaviour, and indeed it was because, somehow, the integrated GPU was enabled. Had to reboot to UEFI and disable it, and Steam started working as expected again. Might have been the windows partition doing something to the UEFI config, I don't know. |
No idea about the relevance, but disabling integrated GPU on BIOS solved it for me. System:
Host: nobara.lab Kernel: 6.11.8-300.fc41.x86_64 arch: x86_64 bits: 64
Desktop: KDE Plasma v: 6.2.3 Distro: Fedora Linux 41 (KDE Plasma)
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: ProArt X670E-CREATOR WIFI v: Rev 1.xx
serial: <superuser required> UEFI: American Megatrends v: 2506
date: 10/28/2024
CPU:
Info: 8-core model: AMD Ryzen 7 7700X bits: 64 type: MT MCP cache: L2: 8 MiB
Speed (MHz): avg: 4799 min/max: 545/5573 cores: 1: 4799 2: 4799 3: 4799
4: 4799 5: 4799 6: 4799 7: 4799 8: 4799 9: 4799 10: 4799 11: 4799 12: 4799
13: 4799 14: 4799 15: 4799 16: 4799
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900
XTX/7900 GRE/7900M] driver: amdgpu v: kernel
Display: wayland server: Xwayland v: 24.1.4 compositor: kwin_wayland
driver: N/A resolution: 1: 2560x1440 2: 1920x1080
API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.2.7 renderer: AMD
Radeon RX 7900 XTX (radeonsi navi31 LLVM 19.1.0 DRM 3.59
6.11.8-300.fc41.x86_64)
API: Vulkan v: 1.3.296 drivers: N/A surfaces: xcb,xlib,wayland
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 31 HDMI/DP Audio
driver: snd_hda_intel
Device-2: Advanced Micro Devices [AMD] Family 17h/19h HD Audio
driver: snd_hda_intel
Device-3: Audient iD4 driver: hid-generic,snd-usb-audio,usbhid type: USB
API: ALSA v: k6.11.8-300.fc41.x86_64 status: kernel-api
Server-1: PipeWire v: 1.2.6 status: active
Network:
Device-1: Intel 82599ES 10-Gigabit SFI/SFP+ Network driver: ixgbe
IF: enp1s0 state: up speed: 10000 Mbps duplex: full mac: 00:1b:21:bc:9f:18
Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e
IF: wlp11s0 state: down mac: de:56:fe:88:28:d2
Device-3: Intel Ethernet I225-V driver: igc
IF: eno1 state: down mac: c8:7f:54:6a:3d:a0
Device-4: Aquantia AQtion AQC113CS NBase-T/IEEE 802.3an Ethernet [Antigua
10G] driver: atlantic
IF: eno2 state: down mac: c8:7f:54:6a:44:70
Bluetooth:
Device-1: Foxconn / Hon Hai Wireless_Device driver: btusb type: USB
Report: btmgmt ID: hci0 state: up address: D8:80:83:9C:6F:14 bt-v: 5.2
Drives:
Local Storage: total: 1.82 TiB used: 135.96 GiB (7.3%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 2TB size: 1.82 TiB
Partition:
ID-1: / size: 1.82 TiB used: 135.53 GiB (7.3%) fs: btrfs dev: /dev/nvme0n1p3
ID-2: /boot size: 973.4 MiB used: 427.6 MiB (43.9%) fs: ext4
dev: /dev/nvme0n1p2
ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
dev: /dev/nvme0n1p1
ID-4: /home size: 1.82 TiB used: 135.53 GiB (7.3%) fs: btrfs
dev: /dev/nvme0n1p3
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: 41.0 C mobo: 26.0 C gpu: amdgpu temp: 39.0 C
Fan Speeds (rpm): N/A gpu: amdgpu fan: 8
Info:
Memory: total: 32 GiB note: est. available: 30.97 GiB used: 4.96 GiB (16.0%)
Processes: 789 Uptime: 4m Shell: Zsh inxi: 3.3.36
|
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. |
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: