Skip to content
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

Gamescope don't work anymore Fedora 41 #1618

Open
5 of 6 tasks
nambarn opened this issue Nov 9, 2024 · 9 comments
Open
5 of 6 tasks

Gamescope don't work anymore Fedora 41 #1618

nambarn opened this issue Nov 9, 2024 · 9 comments

Comments

@nambarn
Copy link

nambarn commented Nov 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

  • launch game on steam with parameter -gamemoderun gamescope -w 1920 -h 1080 -W 2560 -H 1440 -F fsr -f --backend %command% and game won't launch

Steps To Reproduce

  • launch game on steam with parameter -gamemoderun gamescope -w 1920 -h 1080 -W 2560 -H 1440 -F fsr -f --backend %command% and game won't launch

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?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

No response

@Wartybix
Copy link

Wartybix commented Nov 9, 2024

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
Copy link

Myrdincx commented Nov 10, 2024

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
Copy link

SolidTux commented Nov 11, 2024

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
Copy link

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

@SolidTux
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants