Question

Ubuntu 20.04 update to linux kernel 5.8 broke hardware video decoding

  • 9 January 2021
  • 4 replies
  • 125 views

Hello,

I’m running Shadow on Ubuntu 20.04, with an AMD CPU. Unfortunately, the latest HWE update to linux kernel 5.8 broke hardware video decoding (I end up with a black screen unless I switch to software decoding).

Hardware video decoding used to work fine with the following .drirc setup:

<driconf>
<device driver="radeonsi">
<application name="Shadow" executable="Shadow">
<option name="allow_rgb10_configs" value="false" />
<option name="radeonsi_clear_db_cache_before_clear" value="true" />
</application>
</device>
<device driver="radeon">
<application name="Shadow" executable="Shadow">
<option name="allow_rgb10_configs" value="false" />
</application>
</device>
<device driver="iris">
<application name="Shadow" executable="Shadow">
<option name="allow_rgb10_configs" value="false" />
</application>
</device>
</driconf>

Ubuntu updated packages for the new 5.8 kernel:

Install:
linux-modules-5.8.0-36-generic:amd64 (5.8.0-36.40~20.04.1, automatic),
linux-hwe-5.8-headers-5.8.0-36:amd64 (5.8.0-36.40~20.04.1, automatic),
linux-image-5.8.0-36-generic:amd64 (5.8.0-36.40~20.04.1, automatic),
linux-headers-5.8.0-36-generic:amd64 (5.8.0-36.40~20.04.1, automatic),
linux-modules-extra-5.8.0-36-generic:amd64 (5.8.0-36.40~20.04.1, automatic)
libxcb-xfixes0:i386 (1.14-2, automatic),
libllvm11:amd64 (1:11.0.0-2~ubuntu20.04.1, automatic),
libllvm11:i386 (1:11.0.0-2~ubuntu20.04.1, automatic)

Upgrade:
linux-headers-generic-hwe-20.04:amd64 (5.8.0.34.37~20.04.20, 5.8.0.36.40~20.04.21),
linux-libc-dev:amd64 (5.4.0-59.65, 5.4.0-60.67),
linux-image-generic-hwe-20.04:amd64 (5.8.0.34.37~20.04.20, 5.8.0.36.40~20.04.21),
linux-generic-hwe-20.04:amd64 (5.8.0.34.37~20.04.20, 5.8.0.36.40~20.04.21),
# graphics stuff:
libdrm-nouveau2:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-nouveau2:i386 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-amdgpu1:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-amdgpu1:i386 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm2:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm2:i386 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-intel1:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-intel1:i386 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-radeon1:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-radeon1:i386 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-dev:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1),
libdrm-common:amd64 (2.4.101-2, 2.4.102-1ubuntu1~20.04.1)
xserver-common:amd64 (2:1.20.8-2ubuntu2.6, 2:1.20.9-2ubuntu1.1~20.04.1),
libegl1:amd64 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
xserver-xorg-core:amd64 (2:1.20.8-2ubuntu2.6, 2:1.20.9-2ubuntu1.1~20.04.1),
libegl-mesa0:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libgl1:amd64 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
libgl1:i386 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
libglapi-mesa:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libglapi-mesa:i386 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
xserver-xorg-legacy:amd64 (2:1.20.8-2ubuntu2.6, 2:1.20.9-2ubuntu1.1~20.04.1),
libxatracker2:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libegl1-mesa:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libgles2:amd64 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
libgbm1:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
xserver-xephyr:amd64 (2:1.20.8-2ubuntu2.6, 2:1.20.9-2ubuntu1.1~20.04.1),
xwayland:amd64 (2:1.20.8-2ubuntu2.6, 2:1.20.9-2ubuntu1.1~20.04.1),
libglx0:amd64 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
libglx0:i386 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
libgl1-mesa-dri:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libgl1-mesa-dri:i386 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libgl1-mesa-glx:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libgl1-mesa-glx:i386 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
mesa-vdpau-drivers:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
mesa-vulkan-drivers:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
mesa-vulkan-drivers:i386 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
mesa-va-drivers:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libglx-mesa0:amd64 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libglx-mesa0:i386 (20.0.8-0ubuntu1~20.04.1, 20.2.6-0ubuntu0.20.04.1),
libglvnd0:amd64 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1),
libglvnd0:i386 (1.3.1-1ubuntu0.20.04.1, 1.3.2-1~ubuntu0.20.04.1)

My CPU:

Architecture:                    x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 16
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 96
Model name: AMD Ryzen 7 4800H with Radeon Graphics
Stepping: 1
Frequency boost: enabled
Virtualization: AMD-V

I just wanted to make sure the bug was reported, and if you plan to work on updating the client for the new kernel ?

 

Cheers !


4 replies

Oh crap! So that’s what happened? No workaround to be able to use it?

You can switch to software video decoding in settings > testing > software decoding, but it’s an heavy load for the CPU.

 

Are you running on an intel or AMD CPU ? so I can better understand what’s happening

I am having a Lenovo T460 with a Intel HD520 GPU, and i have the same problem, but is not a black screen, it is a PINK screen and i can see the desktop...

@JaviTecH It’s probably something else, related to those issues:

 

Poor stream or color quality

Due to a bad driver configuration, the stream will not be decoded correctly. You should execute the following command:

curl https://gitlab.com/NicolasGuilloux/shadow-live-os/raw/arch-master/airootfs/etc/drirc -o ~/.drirc

Please restart your computer after executing it.

 

Red screen

Please try to activate / deactivate "Low-end configuration" in Launcher parameters.

 

As explained here: https://help.shadow.tech/hc/en-gb/articles/360011233839-Known-Issues-for-the-Official-Version-of-Shadow

Reply