Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

[Steam Deck] No video output on Gaming Mode #75

Open
MayorRev opened this issue Nov 22, 2022 · 15 comments
Open

[Steam Deck] No video output on Gaming Mode #75

MayorRev opened this issue Nov 22, 2022 · 15 comments
Labels
bug Something isn't working

Comments

@MayorRev
Copy link

MayorRev commented Nov 22, 2022

Been trying this out on the Steam Deck and it works great on desktop mode, but sadly a lot of the games I want to screenshare don't work on desktop mode, but do work with Gaming mode. Unfortunately when attempting to SS in gaming mode, only audio is output and the stream is black.

I hope I'm describing this correctly! I'm new to submitting these types of issues on github

@maltejur
Copy link
Owner

Hm sadly I do not have a Steam Deck and can't test this. But can the normal discord client/browser version stream on the Steam Deck?

@maltejur maltejur added the bug Something isn't working label Nov 22, 2022
@MayorRev
Copy link
Author

Hm sadly I do not have a Steam Deck and can't test this. But can the normal discord client/browser version stream on the Steam Deck?

The Discord app available on the deck's Discover app, works fine for the most part on both gaming and desktop mode, but it lacks audio when screensharing.

@Maciejka1
Copy link

Same on my deck

@brendenhoffman
Copy link

brendenhoffman commented Feb 7, 2023

@maltejur I hope I can shed some light on this. The reason the screen is black is simply because this client doesnt allow you to choose the video source. The way the Steam Deck uses gamescope, it renders everything per window, but the capture is just a black "desktop".

Is there a reason this client can't choose the video source like the normal client?

Edit: Just read some more issues and tried this on my laptop. We need to figure out how to open up the xdg-desktop-portal selection screen with the flatpak and using gamescope compositor, all on an immutable filesystem (so most everything is installed via flatpak)
Edit2: I have set up pacman to install in userspace, but I still can not get an xdg-desktop-portal window to come up. Not even in a wayland KDE session. However, I can't install xdg-desktop-portal-kde due to it pulling tons of plasma packages that interfere with the system ones a bit too much for my liking.
I hope this is enough of a lead for you... I actually don't know how to pull up an xdg-desktop-portal window to begin with.

@maltejur
Copy link
Owner

maltejur commented Feb 9, 2023

Is there a reason this client can't choose the video source like the normal client?

It is a general limitation of QtWebEngine, which is what discord-screenaudio is powered by (see #1). That you are able to select the window on Wayland is only thanks to a "hack" enabling the usage of desktop portals.

As far as I know, the game mode on the steam deck is using wayland though. So this probably really is a problem with the xdg-desktop-portal. Does doing this change anything?

And the desktop portal is probably now showing up in desktop mode because that is using X11, and thus cant use portals.

@brendenhoffman
Copy link

No, I can't install xdg-desktop-portal-kde due to it pulling the whole plasma package group (or without disabling read only), so setting XDG_CURRENT_DESKTOP=KDE doesn't work. However, if I could leverage a different portal such as xdg-desktop-portal-gtk or xdg-desktop-portal-wlr that would work, I have those installed. I don't know the requirements to launch any of the desktop portals applications though, especially for gamescope.

I don't see why this wouldn't be possible though, even if it requires you to have a chroot environment set up to install packages.

@TauAkiou
Copy link

it's probably more likely that Gamescope's current lack of support for Wayland clients is the culprit here, since any applications currently run in X11 mode where portals don't apply: ValveSoftware/gamescope#543

@brendenhoffman
Copy link

I see. I mean, there is still the issue of installing a usuable portal, but you might be right.

@TauAkiou
Copy link

my guess is that the Gamescope issue will be resolved at around the same time Valve decides migrates desktop mode over to Wayland, in which case they'll supply xdg-desktop-portal-kde by default.

@shigutso
Copy link

Any workarounds found while a fix is not possible?

@elheremes
Copy link

Any workarounds? The default discord screen sharing works in gaming mode, but the discord-screenaudio sharing don't. Works flawless on desktop mode.

@maltejur
Copy link
Owner

maltejur commented Jul 13, 2023

Not any that I know of, besides using both the official client and this client at the same time with different accounts to share video and audio independently :D. You could also follow this guide manually.

But as per #1 (comment), there is some work happening in QtWebEngine which could some day make this work properly.

@SSUPII
Copy link

SSUPII commented Jul 14, 2023

Desktop mode with the Flatpak works extremely well, but in my case in Game Mode the app doesn't launch at all spinning indefinitely.

I wanted to confirm if this bug was present on mine or not, but for the moment I can't.

@IsaacFehr
Copy link

Has anyone found a workaround for getting video to come through in gaming mode?

I'm seeing the same problem of not being able to choose a window as described above, and sharing the desktop just showing a black screen.

As a note: Vesktop and Webcord (installed through flatpak) can also share audio, but they can select a game window, even if it still shows up all black.

The official Discord client can share a game window in gaming mode, just without audio.

What is the difference between the clients that is causing this?

@5310
Copy link

5310 commented Apr 13, 2024 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants