ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.22k stars 174 forks source link

Steam Remote Play shows black screen on recieving client when using PRIME Offloading. #8560

Open TomBayne opened 2 years ago

TomBayne commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

When running steam under prime-run to use dGPU on a system with hybrid graphics, Steam Remote Play shows only a blank screen on the receiving client (Android TV, in this case). Controllers and sound work correctly, only video is the issue. Issue occurs regardless of hardware acceleration setting on both the host and the client. There are no abnormal logs from the terminal when the streaming is in progress. As far as both the client and host applications are concerned the streaming is successful, but the user sees no video output.

Steps for reproducing this issue:

System Requirements: Intel and NVIDIA GPU drivers installed, with PRIME Off-loading configured. X Server should be running on the Intel iGPU, with the NVIDIA GPU dormant until steam is launched using the process below.

  1. Run Steam using the command prime-run steam
  2. Connect to steam via Remote Play from a client device, such as a TV.
  3. See that there is no video output, just a black screen.
  4. Run steam without using prime-run
  5. Connect to Steam via Remote play from a client device.
  6. See that Remote Play is working as intended, confirming the issue is related to prime-run
icedfiend commented 2 years ago

Having a similar issure here but with AMD GPUs and no prime offloading (kind of). Funny thing is that some games stream fine (Iconoclast, Satellite Reign, seemingly games with native linux support) but games running through proton only show a black screen on the client (Doom Eternal, Darksiders Genesis, Castlevania Lords of Shadows, No Man's Sky). Some games work intermitently (ANNO: Mutationem)

So far I have tried the following with several games:

My system is up to date with kernel 5.17.5, mesa 22.0.3, AMD opensource driver and radv vulkan driver, VAAPI 1.14.0 Hardware specs are: Ryzen 9 5950X, Vega 64 and RX 6900XT (mostly used for pci passthrough)

Not sure if this is the best place to report this or if I should open another issue. If that's the case I will gladly do so.

luisalvarado commented 2 years ago

Similar to icedfiend. I tried literally everything but my case is Nvidia. Nvidia 1080 trying to play Sonic Mania on the Chromecast with Google TV that is about 3 meters away via a Netgear Orbi RBK50 router. Steam play REALLY sucks because I have up to today spent a month and half reading all the issues about it with the only people interested in fixing this the same players. No developer or someone from steam has addressed any of the issues so far.

adolfotregosa commented 2 years ago

Same over here. Black screen when steam host is running linux. Audio works though. Also mouse pointer changes to in game but rest is black.

TomBayne commented 2 years ago

Identical to my issue.

On Tue, 7 Jun 2022 at 17:56, adolfotregosa @.***> wrote:

Same over here. Black screen when steam host is running linux. Audio works though. Also mouse pointer changes to in game but rest is black.

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/steam-for-linux/issues/8560#issuecomment-1148928503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6H7UBZECWSXZEL3EFCODLVN55LXANCNFSM5UYRW2LA . You are receiving this because you authored the thread.Message ID: @.***>

icedfiend commented 2 years ago

On a side note, trying HoloISO (SteamOS 3.X packaged for desktop/laptop usage) on a secondary ssd I managed to stream without much issue from it to my phone (just for test porpuse) games that otherwise wouldn't work on my standard installation, so there must be something missing in my current system.

Meanwhile I tried Moonlight + Sunshine (hardware agnostic client + server implementation of nVidia gamestream stuff) and it works pretty well, still tweaking it though.

adolfotregosa commented 2 years ago

Sushine always give me distorted audio on the client. I have no idea why and compared to windows the latency is worst. How is your audio working?

TomBayne commented 2 years ago

Audio is flawless. Seems like an issue with the compositor to me.

On Wed, 8 Jun 2022 at 00:06, adolfotregosa @.***> wrote:

Sushine always give me distorted audio on the client. I have no idea why and compared to windows the latency is worst. How is your audio working?

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/steam-for-linux/issues/8560#issuecomment-1149256166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6H7UEWW25XQLMK6GC3NUDVN7IXJANCNFSM5UYRW2LA . You are receiving this because you authored the thread.Message ID: @.***>

adolfotregosa commented 2 years ago

Audio is flawless. Seems like an issue with the compositor to me. On Wed, 8 Jun 2022 at 00:06, adolfotregosa @.> wrote: Sushine always give me distorted audio on the client. I have no idea why and compared to windows the latency is worst. How is your audio working? — Reply to this email directly, view it on GitHub <#8560 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6H7UEWW25XQLMK6GC3NUDVN7IXJANCNFSM5UYRW2LA . You are receiving this because you authored the thread.Message ID: @.>

What is your sunshine host OS and desktop enviroment? Are you using pipewire with wireplumber or.. ?? I wanna replicate it because both my arch machines running latest everything and kde give me distorted audio on the client.

TomBayne commented 2 years ago

Arch linux, XOrg, XFCE, default compositor, just standard Pipewire for audio. Haven’t done any special configuration or anything, everything is mostly using OOTB configuration

On Wed, 8 Jun 2022 at 08:26, adolfotregosa @.***> wrote:

Audio is flawless. Seems like an issue with the compositor to me. … <#m5839027614074329741> On Wed, 8 Jun 2022 at 00:06, adolfotregosa @.> wrote: Sushine always give me distorted audio on the client. I have no idea why and compared to windows the latency is worst. How is your audio working? — Reply to this email directly, view it on GitHub <#8560 (comment) https://github.com/ValveSoftware/steam-for-linux/issues/8560#issuecomment-1149256166>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6H7UEWW25XQLMK6GC3NUDVN7IXJANCNFSM5UYRW2LA https://github.com/notifications/unsubscribe-auth/AG6H7UEWW25XQLMK6GC3NUDVN7IXJANCNFSM5UYRW2LA . You are receiving this because you authored the thread.Message ID: @.>

What is your sunshine host OS and desktop enviroment? Are you using pipewire with wireplumber or.. ?? I wanna replicate it because both my arch machines running latest everything and kde give me distorted audio on the client.

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/steam-for-linux/issues/8560#issuecomment-1149559680, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6H7UCJNOTWNUFIJY3ZULLVOBDI7ANCNFSM5UYRW2LA . You are receiving this because you authored the thread.Message ID: @.***>

icedfiend commented 2 years ago

Sushine always give me distorted audio on the client. I have no idea why and compared to windows the latency is worst. How is your audio working?

It was a quick test the other day and after going back... well... I have no audio using sunshine, still diagnosing the issue.

Also tried using a EndeavourOS live iso to test what would look like a fresh install (just updated relevant packages) but I can't stream video using the a linux host, only using HoloISO I've been able to make it work.

I tried using steam and stam-native-runtime packages and flatpak app in the live iso with the same result, audio and input work, but video is not.

icedfiend commented 2 years ago

Experimeting a little bit with HoloISO I found out that there is a small difference on how SteamOS 3.0 operates in "Console Mode" and "Desktop Mode". In "Console Mode" uses gamescope with pipewire to stream (I had video output on the client) but "Desktop Mode" uses OpenGL (same as on my normal installation, so no video output on the client on either of them).

I made a small experiment using gamescope tu run the game and voila! I had video, audio and input (at least on the single game I have tried so far).

If anyone decides to give it a try, use gamescope -e <more options here> to enable steam integration, otherwise controllers won't work

RobViren commented 2 years ago

Same issue here. Cannot get dedicated Nvidia GPU to show remote play as anything other than blank screen. It passes through audio and controls, but no video steam-runtime_0.20220802.0 https://termbin.com/0tp3

rudism commented 1 year ago

I have this problem too, running Steam on my host computer with Void Linux, kernel 6.3.13, a Nvidia GeForce RTX 3060 Ti with driver v535.104.05.

My X server renders on my Ryzen 5 5700G iGPU, so I launch Steam with prime-run steam to render games on the Nvidia card. Everything works fine locally. When I connect remotely from the Android Steam remote play client, it doesn't render the Steam UI, just a black screen. I get audio, and the Android's controller is working to move around and select items in Steam, but I have to be looking at my host's monitor to know what I'm doing.

The video stream starts working once I'm in a game (for all the games I've tried so far, at least, including some non-Steam games installed through Lutris) and I can play remotely just fine, but when I exit the game it goes back to a black screen instead of rendering the Steam UI and I'm flying blind again.

EthanHarp commented 11 months ago

I also have this problem where remote play is blank screen but audio and controls work, however once I launch a game then video starts. I did also run into an issue where if I launch a non-steam game only audio works, the video and controls do not work. I'm on NixOS KDE wayland witha Nvidia 2070 in offload mode where my desktop is given to my igpu and steam is given to my dgpu.