Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Black Screen with AMD GPU and Linux Mint 20 #83

Open
ghost opened this issue Feb 17, 2021 · 8 comments
Open

Black Screen with AMD GPU and Linux Mint 20 #83

ghost opened this issue Feb 17, 2021 · 8 comments
Assignees
Labels
Application The community can't fix it, it is Blade's work bug Something isn't working

Comments

@ghost
Copy link

ghost commented Feb 17, 2021

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

@NicolasGuilloux NicolasGuilloux added Application The community can't fix it, it is Blade's work bug Something isn't working labels Mar 17, 2021
@ghost
Copy link
Author

ghost commented Mar 17, 2021

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
Copy link
Author

ghost commented Mar 17, 2021

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
Copy link

nicocti commented Apr 4, 2021

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
Copy link

nicocti commented Apr 4, 2021

@Klauerstoff can you link the drivers you used ?

@nicocti
Copy link

nicocti commented Apr 6, 2021

Problem also occurs with Mesa 21+

@ghost
Copy link
Author

ghost commented Apr 9, 2021

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
Copy link

nicocti commented Apr 11, 2021

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
Copy link

Sok00 commented Apr 11, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Application The community can't fix it, it is Blade's work bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants