ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.15k stars 213 forks source link

Gamescope don't work anymore Fedora 41 #1618

Open nambarn opened 1 week ago

nambarn commented 1 week ago

Is there an existing issue for this?

Are you using any gamescope patches or a forked version of gamescope?

Current Behavior

Steps To Reproduce

Hardware information

- Distro: Fedora Linux 41 (Workstation Edition)
- CPU: 6-core Intel Core i7-6800K 
- GPU: NVIDIA Corporation TU104 [GeForce RTX 2080 Rev. A] [10de:1e87] (rev a1)
- Driver Version: Nvidia 565.57.01 Mesa  24.2.6 (LLVM 19.1.0)

Software information

- Desktop environment: 
- Session type: x11
- Gamescope version: console: gamescope version  (gcc 14.2.1)
- Gamescope launch command(s): gamemoderun gamescope -w 1920 -h 1080 -W 2560 -H 1440 -F fsr -f --backend %command%

Which gamescope backends have the issue you are reporting?

Logging, screenshots, or anything else

No response

Wartybix commented 1 week ago

Unless you copy-pasted wrong, I imagine gamescope is crashing for you because you haven't supplied an argument to --backend. From gamescope's --help output:

--backend                      select rendering backend
                                   auto => autodetect (default)
                                   drm => use DRM backend (standalone display session)
                                   sdl => use SDL backend
                                   openvr => use OpenVR backend (outputs as a VR overlay)
                                   headless => use headless backend (no window, no DRM output)
                                   wayland => use Wayland backend

As you are on X11, I would just go with auto or sdl.

Myrdincx commented 6 days ago

Switched to Fedora 41 (KDE) yesterday, having the same issue (specifically with CS2). My launch option is: gamescope -W 1920 -H 1080 -w 1440 -h 1080 -S stretch -f -e -r 144.0 --force-grab-cursor --backend auto %command% The game instantly crashes for me.

EDIT: Running gamescope -- %command% does launch the game, so I'm not really sure what is causing all of this EDIT2: Running gamescope -W 1920 -H 1080 -w 1440 -h 1080 -S stretch -f -e -r 144.0 --force-grab-cursor -- %command% worked for me and starts the game :)

@nambarn let me know if it works for you, if not, I can try to do some testing as well :)

SolidTux commented 6 days ago

EDIT: My mistake as well was the missing -- separator.

For me with Fedora 41, gamescope crashes both under KDE (Wayland) and Sway, no matter the flags. I tried both sdl and wayland backends and also tried setting the SDL backend to X11 (that was for me a necessary fix under Fedora 40).

Here are some logs (the game tested is Northgard, DirectX version, with GE-Proton9-18)

gamescope %command% gamescope --expose-wayland %command% gamescope --backend sdl %command% SDL_VIDEODRIVER=x11 gamescope --backend sdl %command% (this one worked on Fedora 40) gamescope --backend wayland %command% gamescope --backend wayland --expose-wayland %command%

matte-schwartz commented 6 days ago

These are still incorrect, it needs to be gamescope -- %command%

SolidTux commented 6 days ago

I'll try later. Is this a new thing with gamescope or is it related with some Steam change? I didn't need that separation before.

matte-schwartz commented 6 days ago

If it worked without that separation in the past, it was dumb luck afaik. Maybe the recent Steam for Linux client Steam runtime changes caused this, but what goes on with the Steam client is a mystery to me as well.

SolidTux commented 6 days ago

It does work with the separation, sorry for the confusion! It indeed worked without separation all the time, so I assume something has changed with how steam does stuff.

TheEpicNoobZilla commented 2 days ago

If it worked without that separation in the past, it was dumb luck afaik. Maybe the recent Steam for Linux client Steam runtime changes caused this, but what goes on with the Steam client is a mystery to me as well.

It worked without separation for at least a year. This literally "broke" after updating to Fedora 41.

Myrdincx commented 1 day ago

If it worked without that separation in the past, it was dumb luck afaik. Maybe the recent Steam for Linux client Steam runtime changes caused this, but what goes on with the Steam client is a mystery to me as well.

It worked without separation for at least a year. This literally "broke" after updating to Fedora 41.

Yeah it's a weird issue, but it should work with the -- now!