flathub / org.freedesktop.Platform.VulkanLayer.gamescope

https://flathub.org/apps/details/org.freedesktop.Platform.VulkanLayer.gamescope
16 stars 4 forks source link

gamescope only works with com.valvesoftware.Steam.CompatibilityTool.Proton-GE #138

Open un-couteau opened 7 months ago

un-couteau commented 7 months ago

cs2 does not want to work with gamescope, although with gamescope-git from AUR there are no problems with it

image

image although the proton games seem to be working fine.

also gamescope works with Half Life, but does not work with CS 1.6.

ColinKinloch commented 7 months ago

I've got a hunch SDL3 is defaulting to wayland try either:

un-couteau commented 7 months ago

SDL_VIDEODRIVER=x11 I tried, but it didn't help (I think it's only relevant for SDL2)

--expose-wayland didn't help me either.

Looking at the logs, I saw this: image

I also tried mesa-git.

orowith2os commented 7 months ago

SDL_VIDEODRIVER should be working with any SDL version, there's no reason for them to try anything new. The SDL3 FAQ also says SDL_VIDEODRIVER.

un-couteau commented 7 months ago

as mentioned https://github.com/flathub/org.freedesktop.Platform.VulkanLayer.gamescope/issues/6 the error is the same, in carx I used proton-ge from flatpak, but for cs2 this method will not help.

I have no ideas how to fix it in my head

ColinKinloch commented 7 months ago

Could you change the issue title to something a bit more descriptive like: "Counter-Strike 2 maps window outside gamescope"

Eckoa commented 6 months ago

Just to add a bit to this, Ive found that i simply cant get flatpak gamescope working with any game not just CS2 when using it with steams own proton with Flatpak Steam (everything works on native). I have tried on a fresh install of Arch, Fedora, and Tumbleweed. It works with the proton flatpaks but those have all been abandoned between May last year and January this year making this tool effectively unusable for Flatpak Steam unless you want to use the unmaintained flatpaks which will stop working eventually or you build your own.

Seeing as this tool is used fine by other flatpak applications and the current abandoned state of the proton flatpaks it might be wise to add a note to the readme that this tool currently will not function as expected for steam flatpak as the previously mentioned issue https://github.com/flathub/org.freedesktop.Platform.VulkanLayer.gamescope/issues/6 which has been around for 2 years now seems to suggest this is a limitation with flatpak at the moment in regards to Steam.

zastrixarundell commented 4 months ago

I don't see how it #6 as any other game launcher using proton doesn't have an issue. Heroic works, Lutris works. Should this be reported to the steam flatpak itself?

Eckoa commented 4 months ago

I don't see how it #6 as any other game launcher using proton doesn't have an issue. Heroic works, Lutris works. Should this be reported to the steam flatpak itself?

steam uses sub sandboxing for the proton versions you download through steam which the other flatpaks dont do. This is part of how proton works and is what is causing the issues with gamescope as far as i read in the other issue and the original issue from the original steam gamescope flatpak. It works if you use the proton flatpaks but those are abandoned now which makes for problems.

This is not something that can be solved by the steam flatpak or this gamescope flatpak as it is a core flatpak issue (maybe even an X11 issue in regards to flatpak)

This sort of issue is known about already in the steam flatpak