Steam/Proton games crash immediately on Hyprland - fix: gamescope
Problem
Steam games using Proton crash immediately after launching (2-3 seconds, no window appears). Affects multiple games (EU5, CS2, etc.).
Environment
- Omarchy with Hyprland (Wayland)
- AMD GPU
Root Cause
Proton/Wine games expect X11 window management semantics (fullscreen handling, input grabbing, etc.) that Hyprland/Wayland doesn't provide directly. Games fail to initialize and crash silently.
Solution
1. Install required packages
sudo pacman -S vulkan-radeon lib32-vulkan-radeon lib32-mesa lib32-gnutls lib32-libpulse gamescope
2. Add launch option to Steam games
Right-click game → Properties → Launch Options:
gamescope -W 1920 -H 1080 -f -- %command%
Adjust resolution to match your monitor.
Why this works
Gamescope creates a nested compositor that:
- Provides a proper XWayland environment games expect
- Handles fullscreen mode translation between X11 and Wayland
- Manages input grabbing correctly
- Acts as a compatibility layer between Proton/Wine and Hyprland
Related
- Discussion #3602 (W.O.P.R. gaming launcher - includes gamescope)
Although I used gamescope initially to fix my problems I found it wasn't necessary in the end. Got all the problematic games working without it using:
unset SDL_VIDEODRIVER; %command%
Try it out, this fixed Arc Raider and Absolum for me.
Gamescope introduced other problems for me, such as mouse events not being handled correctly, and Steam overlay permanently losing focus. I think they are fixable but you really have to tweak gamescope options beyond just setting resolution.
I think this is because omarchy injects SDL_VIDEODRIVER env var this line in hypr/envs.conf:
env = SDL_VIDEODRIVER,wayland
I commented it out and all steam games just work
We now use env = SDL_VIDEODRIVER,wayland,x11. Can anyone check if they're still seeing issues with that?
@dhh I've tried the new SDL_VIDEODRIVER setting you suggested and the same games as above (Absolum and Arc Raiders) are still crashing on startup for me.
The upside is that I stopped getting this warning from steam:
steam.sh[4588]: warning: SDL_VIDEODRIVER='wayland' does not allow fallback, use 'wayland,x11' instead
Do those games run if you set it exclusively to x11?
No. These games will run with any of the following: unset SDL_VIDEODRIVER SDL_VIDEODRIVER=windows SDL_VIDEODRIVER=wayland,x11,windows
If I set the variable but omit windows, they both crash on startup
What happens if you set STEAM_FORCE_DESKTOPUI_SCALING=1, this forces steam to use xwayland because it doesnt run as well on wayland natively.
The gamescope fix works but breaks the Steam overlay — cursor is invisible and keyboard input doesn't work. This is because LD_PRELOAD (which contains the Steam overlay library) gets applied to gamescope itself instead of the game.
Fix: unset LD_PRELOAD for gamescope and re-apply it to the game command:
env -u LD_PRELOAD gamescope -W <WIDTH> -H <HEIGHT> -r <REFRESH> -f -- env LD_PRELOAD="$LD_PRELOAD" %command%
Tested on Hyprland 0.53.3, gamescope 3.16.19, kernel 6.18. Credit to ScopeBuddy for the technique.
The fix did not work for me. Games continue to insta crash on startup despite the launch option and installation of dependencies. running 3.3.3.
We have now removed the troublesome SDL_VIDEODRIVER env, so this should be fixed.
We have now removed the troublesome SDL_VIDEODRIVER env, so this should be fixed.
Thank you very much, indeed :)