blade-shadow-beta icon indicating copy to clipboard operation
blade-shadow-beta copied to clipboard

Black Screen with AMD GPU and Linux Mint 20

Open ghost opened this issue 4 years ago • 8 comments
trafficstars

Describe the bug Getting a complete blackscreen when using the Standard AppImage from the Shadow Costumer area. Sometime I see a little flickering but most of the time it's just a black screen. When using the Software Decoding stream is working, but not very smooth

System

  • OS: Linux Mint
  • OS Version: 20
  • Kernel: 5.8.0-41-generic
  • Environment: Cinnamon
  • Application: AppImage
  • Application Version: Launcher 4.22.9 | Client 3.9.8

Configuration

  • The user is in input group: Yes
  • The environment uses Xorg: Yes
  • VA API detects H264: Yes And H265: No

To Reproduce Start Shadow Launcher, start stream and seeing Blackscreen. When chancing to Software Decoding, Picture is displayed correctly.

Additional context libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.7 (libva 2.6.0) vainfo: Driver version: Mesa Gallium driver 20.2.6 for Radeon RX 580 Series (POLARIS10, DRM 3.38.0, 5.8.0-41-generic, LLVM 11.0.0) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc

ghost avatar Feb 17 '21 18:02 ghost

Been a while since I posted this issue and I tried some different things. I verified that the VDPAU is working. all drivers etc. are installed, verified the drirc file is correct and even tried out Shadowcker. In Shadowcker I get the same problem. I also wanted to try out the Shadow Live OS with NixOS but sadly I didn't get my PC to boot from the USB Stick with this Image. PC Immediately turned off after selecting the USB Stick with Shadow LiveOS as One-Time Boot Device.

Nevertheless I can reproduce the Black Screen with the AppImage and the Docker Image. Especially with the Docker-Image this seems kind of strange.

Researching the Internet I found some different directions. Maybe the mesa-driver Version is not working with the AppImage, even found some comments that cinnamon as the Window Manager isn't working with some Applications and the vdpau.

ghost avatar Mar 17 '21 19:03 ghost

Update on this:

Used the official amdgpu "all-free" Drivers from the AMD Website. Now Hardwaredecoding is working properly

libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.7 (libva 2.6.0) vainfo: Driver version: Mesa Gallium driver 20.1.6 for Radeon RX 580 Series (POLARIS10, DRM 3.38.0, 5.8.0-45-generic, LLVM 10.0.1) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc

Driver-Version changed from 20.2.6 to 20.1.6 after installing the packages.

ghost avatar Mar 17 '21 20:03 ghost

Hi guys ! I can confirm this is due to Mesa drivers 20.2.6. However video hardware acceleration is still working in Google Chrome.

The issue occurs on Ubuntu 20.04.2+ as well https://forum.shadow.tech/technical-assistance-7/ubuntu-20-04-update-to-linux-kernel-5-8-broke-hardware-video-decoding-2058

nicocti avatar Apr 04 '21 16:04 nicocti

@Klauerstoff can you link the drivers you used ?

nicocti avatar Apr 04 '21 16:04 nicocti

Problem also occurs with Mesa 21+

nicocti avatar Apr 06 '21 15:04 nicocti

Had some Problems with my System running official AMDGPU Drivers version 20.45 and Kernel 5.8. Upgraded to version 20.50 yesterday. Kernel Problems are fixed and shadow app is still working with hardware decoding.

https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-50

Mesa drivers got updated to 20.2.4. Seems like they are still working.

libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.7 (libva 2.6.0) vainfo: Driver version: Mesa Gallium driver 20.2.4 for Radeon RX 580 Series (POLARIS10, DRM 3.40.0, 5.8.0-48-generic, LLVM 11.0.1) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc

ghost avatar Apr 09 '21 06:04 ghost

Thanks @Klauerstoff ! I can confirm this works on Ubuntu 20.04.2 as well after installing 20.50 amdgpu drivers from here: https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-50 :)

nicocti avatar Apr 11 '21 20:04 nicocti

Shadow screen also flickering somtimes if recording the screen/Desktop; "only for note"

Sok00 avatar Apr 11 '21 20:04 Sok00