Open koresh-krasa opened 1 year ago
I wrote a script that automates setting up a workaround for this.
You can find it here: https://gist.github.com/major-gnuisance/4fad491e37c5ac7efa72f9473d4e95bd
It sets up a shim script that adds the -cef-disable-gpu flag when the DRI_PRIME environment variable is set and installs a modified steam.desktop to use it. Tested on Fedora 40 Workstation, but I expect it to be nearly universally compatible.
@kisak-valve I see 2 issues here:
2. That Steam is requesting a non-default GPU in the first place is an issue in itself. There's no reason for Steam to wake-up a dGPU in a laptop, that's wasteful. Only games should require using a dGPU, and even then, not all games require that.
Hear, hear!
Ideally, Steam itself would always prefer to use the default GPU, to conserve power, and help the user manage GPU preferences for games.
I'd suggest adding a "default GPU" setting, looking something like this:
With an option to override the selection on a per-game basis, much like it works with Proton.
See the output of vulkaninfo --summary
for inspiration.
Namely, the deviceName and deviceType keys.
Lot of comments here so apologies if this has been said before, but I found a fix. If you can find a way to launch steam that works (for me launching it from console with the
steam
command works) and turn offEnable GPU accelerated rendering in web views
in the interface setting it will work again if launched with DRI_PRIME=1 or, for me, from the application launcher in KDE.
Yes! This is the only thing that fixed it for me, on Fedora 40 KDE Plasma 6. I removed the variables from the desktop file, but it only worked once I also turned this off. I don't know if my configuration needs both, or just the steam settings fix. I am not going to add the lines back to the desktop file to test it.
Got a solution, not sure if this has already been posted, but I have a feeling that this is indeed a problem on valves end. (Literally created this account to post this, because I spent the last 3hrs trying to figure this out, it is currently 02:17)
This started happening on my version of Kubuntu 24.04. Steam launched with an update pending, after the update, I completely lost the steam window and it would only launch from the terminal or by executing the launch script from the bin folder.
This is my fix in Kubuntu 24.04
Locate Steam.desktop (typically located in /usr/share/applications/ -or- /home/YourUsername/.local/share/applications/) Right Click Open with Kate Scroll until you find PrefersNonDefaultGPU=true Change =true to =false
(repeat this step for wherever you have the steam.desktop located)
This was able to fix my issue.
Replying to https://github.com/ValveSoftware/steam-for-linux/issues/9383#issuecomment-2155706555
yep fixed it for me as well
guys, nothing work for me, i am in kde plasma 6 in manjaro stable, with RTX 4070 in WAYLAND,
-vgui
instead of starting it through the desktop shortcut.PrefersNonDefaultGPU=true
from the Steam .desktop
file.DRI_PRIME=0
or DRI_PRIME=none
. or in 1-cef-disable-gpu
flag when the DRI_PRIME
environment variable is set.steam.desktop
, which uses a shim script that adds the -cef-disable-gpu
flag.steam
command.These solutions not work for me
could please something help me?
@Milor123
What CPU are you using?
@Milor123
What CPU are you using?
CPU: Intel i5-14500 (20) @ 5.000GHz GPU: Intel AlderLake-S GT1 GPU: NVIDIA GeForce RTX 4070 Steam client version (last installed from pacman today): Distribution (Manjaro Linux x86_64 Kernel: 6.6.32-1-MANJARO): Opted into Steam client beta?: No Have you checked for system updates?: yes Steam Logs: steam-logs.tar.gz GPU: Nvidia RTX 4070 (As secundary gpu, the main is the iGPU, but it always worked well)
@Milor123
You need to disable your iGPU in the BIOS. That's the permanent solution.
@Milor123
You need to disable your iGPU in the BIOS. That's the permanent solution.
It not a solution for me, I need work with my GPU and use it for passthrought in many situations
I was playing for a long time this way.
my iGPU loads kde plasma and my steam games use my nvidia card, it was always working in the past without any problems..
there is no reason to change it, it is a steam error, steam should open as it normally did.
Launching Steam from console with the
steam
command.
what's the output from this?
Launching Steam from console with the
steam
command.what's the output from this?
this
steam
steam.sh[159649]: Running Steam on manjarolinux 24.0.2 64-bit
steam.sh[159649]: STEAM_RUNTIME is enabled automatically
setup.sh[159722]: Steam runtime environment up-to-date!
steam.sh[159649]: Steam client's requirements are satisfied
[2024-06-25 20:44:26] Startup - updater built Jun 20 2024 17:13:49
[2024-06-25 20:44:26] Startup - Steam Client launched with: '/home/noe/.local/share/Steam/ubuntu12_32/steam' '-srt-logger-opened'
06/25 20:44:26 minidumps folder is set to /tmp/dumps
06/25 20:44:26 Init: Installing breakpad exception handler for appid(steam)/version(1718904662)/tid(159785)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2024-06-25 20:44:26] Loading cached metrics from disk (/home/noe/.local/share/Steam/package/steam_client_metrics.bin)
[2024-06-25 20:44:26] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2024-06-25 20:44:26] Using the following download hosts for Public, Realm steamglobal
[2024-06-25 20:44:26] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-06-25 20:44:26] Checking for update on startup
[2024-06-25 20:44:26] Checking for available updates...
[2024-06-25 20:44:26] Downloading manifest: https://cdn.steamstatic.com/client/steam_client_ubuntu12
[2024-06-25 20:44:26] Manifest download: send request
[2024-06-25 20:44:27] Manifest download: waiting for download to finish
[2024-06-25 20:44:27] Manifest download: finished
[2024-06-25 20:44:27] Download skipped: /client/steam_client_ubuntu12 version 1718904662, installed version 1718904662, existing pending version 0
[2024-06-25 20:44:27] Nothing to do
[2024-06-25 20:44:27] Verifying installation...
[2024-06-25 20:44:27] Performing checksum verification of executable files
[2024-06-25 20:44:28] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/noe/.local/share/Steam/logs
/home/noe/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_32/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /usr/lib32/libproxy/libpxbackend-1.0.so)
Failed to load module: /usr/lib32/gio/modules/libgiolibproxy.so
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xebcaadc0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xebca9500
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
Couldn't initialize SDL: wayland not available
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 159951
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
Couldn't initialize SDL: wayland not available
Failed to load module: /usr/lib32/gio/modules/libgiolibproxy.so
are you sure your problem is the same as in this issue?
from the arch wiki, Finding missing runtime libraries, could you please share the output from this command?
$ cd ~/.steam/root/ubuntu12_32
$ file * | grep ELF | cut -d: -f1 | LD_LIBRARY_PATH=. xargs ldd | grep 'not found' | sort | uniq
and make sure you [re]install required libs. I remember when I used Arch I had to do something similar:
pacman -S lib32-fontconfig lib32-freetype2 lib32-gdk-pixbuf2 lib32-gtk2 lib32-libice lib32-libnm lib32-libpulse lib32-sdl2 lib32-libva lib32-libvdpau lib32-libudev0-shim lib32-openal lib32-libsm
Failed to load module: /usr/lib32/gio/modules/libgiolibproxy.so
are you sure your problem is the same as in this issue?
from the arch wiki, Finding missing runtime libraries, could you please share the output from this command?
$ cd ~/.steam/root/ubuntu12_32 $ file * | grep ELF | cut -d: -f1 | LD_LIBRARY_PATH=. xargs ldd | grep 'not found' | sort | uniq
and make sure you [re]install required libs. I remember when I used Arch I had to do something similar:
pacman -S lib32-fontconfig lib32-freetype2 lib32-gdk-pixbuf2 lib32-gtk2 lib32-libice lib32-libnm lib32-libpulse lib32-sdl2 lib32-libva lib32-libvdpau lib32-libudev0-shim lib32-openal lib32-libsm
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:
env -u SDL_VIDEODRIVER steam
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.
Your system information
Please describe your issue in as much detail as possible:
Similar symptoms as https://github.com/ValveSoftware/steam-for-linux/issues/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.txtSteam 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: