NicolasGuilloux / blade-shadow-beta

Various documentation and tools for Shadow on Linux maintained by community
MIT License
119 stars 21 forks source link

Black Screen with AMD GPU and Linux Mint 20 #83

Open ghost opened 3 years ago

ghost commented 3 years ago

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

Configuration

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 commented 3 years ago

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 commented 3 years ago

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.

nicocti commented 3 years ago

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 commented 3 years ago

@Klauerstoff can you link the drivers you used ?

nicocti commented 3 years ago

Problem also occurs with Mesa 21+

ghost commented 3 years ago

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

nicocti commented 3 years ago

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 :)

Sok00 commented 3 years ago

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