steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

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

Open TomBayne opened this issue 2 years ago • 12 comments

Your system information

  • Steam client version (build number or date): March 14 2022
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: [Yes/No]: No
  • Have you checked for system updates?: [Yes/No]: Yes

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

TomBayne avatar Apr 30 '22 16:04 TomBayne

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:

  • Disabling steam overlay
  • Hardware accelerated encode/decode for host and client
  • Hardware accelerated encode for host and software accelerated decode for client
  • Software accelerated encode for host and hardware accelerated decode for client
  • Software accelerated encode for host and software accelerated decode for client
  • Running game on primary GPU and secondary GPU
  • Using amdvlk
  • Enabling/disabling game mode
  • Using flatpak version of Steam for the host
  • Linux, Android and Windows clients

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.

icedfiend avatar May 08 '22 01:05 icedfiend

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.

luisalvarado avatar May 13 '22 01:05 luisalvarado

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.

adolfotregosa avatar Jun 07 '22 16:06 adolfotregosa

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: @.***>

TomBayne avatar Jun 07 '22 19:06 TomBayne

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.

icedfiend avatar Jun 07 '22 22:06 icedfiend

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?

adolfotregosa avatar Jun 07 '22 23:06 adolfotregosa

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: @.***>

TomBayne avatar Jun 07 '22 23:06 TomBayne

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.

adolfotregosa avatar Jun 08 '22 07:06 adolfotregosa

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. … <#m_5839027614074329741_> 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: @.***>

TomBayne avatar Jun 08 '22 15:06 TomBayne

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 avatar Jun 11 '22 18:06 icedfiend

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

icedfiend avatar Jun 25 '22 21:06 icedfiend

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

RobViren avatar Sep 16 '22 14:09 RobViren

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.

rudism avatar Sep 14 '23 01:09 rudism

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.

EthanHarp avatar Oct 31 '23 16:10 EthanHarp