omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Steam/Proton games crash immediately on Hyprland - fix: gamescope

Open sebishogun opened this issue 11 months ago • 11 comments

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)

sebishogun avatar Dec 23 '25 14:12 sebishogun

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.

JakePi3 avatar Jan 08 '26 15:01 JakePi3

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

AlexEne avatar Jan 14 '26 10:01 AlexEne

We now use env = SDL_VIDEODRIVER,wayland,x11. Can anyone check if they're still seeing issues with that?

dhh avatar Feb 02 '26 20:02 dhh

@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

JakePi3 avatar Feb 02 '26 23:02 JakePi3

Do those games run if you set it exclusively to x11?

dhh avatar Feb 03 '26 06:02 dhh

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

JakePi3 avatar Feb 03 '26 15:02 JakePi3

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.

Mrid22 avatar Feb 09 '26 09:02 Mrid22

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.

limehawk avatar Feb 19 '26 21:02 limehawk

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.

realjuangalt avatar Feb 24 '26 19:02 realjuangalt

We have now removed the troublesome SDL_VIDEODRIVER env, so this should be fixed.

dhh avatar May 07 '26 11:05 dhh

We have now removed the troublesome SDL_VIDEODRIVER env, so this should be fixed.

Thank you very much, indeed :)

sebishogun avatar May 07 '26 11:05 sebishogun