Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AMD GPU display flicker #8208

Open
TianZerL opened this issue Oct 13, 2023 · 7 comments
Open

[BUG] AMD GPU display flicker #8208

TianZerL opened this issue Oct 13, 2023 · 7 comments

Comments

@TianZerL
Copy link

TianZerL commented Oct 13, 2023

Describe the bug

LE12 with AMD GPU will cause flicker, see photo in Context.

I have tested with lots of nightly builds (Generic.x86_64, date from 9.2 to 10.10), all got same issue.

I also tested with tow different computers, but no luck:

  • Laptop with Ryzen 3500u and Vage8, which has a built-in 1080p 60 hz screen.
  • Desktop with i7 8700K and 5700XT, which conneted to a 1080p 144hz screen via DP.

In the desktop, I tried change resolution and fresh rate, it can suppress the flicker somtimes but reappears if I go to another page (eg. from settings to main page).

Not sure if it is an AMD GPU only issue, I don't have an Intel GPU machine to test.

How to reproduce

Steps to reproduce the behavior:

  1. Boot a LE12 Generic.x86_64 nightly build with an AMD GPU. (I use live mode)

Information

  • LibreELEC Version: 12
  • Hardware Platform: X86

Log file

http://ix.io/4IV3 (From 3500U laptop with LibreELEC-Generic.x86_64-12.0-nightly-20230902-8bfd54e.img.gz)

Context

security_IMG_20231014_003250729_HDR

@lrusak
Copy link
Member

lrusak commented Oct 13, 2023

Possibly related https://gitlab.freedesktop.org/mesa/mesa/-/issues/7977

Might be able to use the env variable mesa_glthread=false

@TianZerL
Copy link
Author

@lrusak

Might be able to use the env variable mesa_glthread=false

Thanks for reply. I can confirm it works.

related https://gitlab.freedesktop.org/mesa/mesa/-/issues/7977

This should be fixed in mesa 22.3.5, but it doesn't seem to be in branch 23.

Is there a way that I can set mesa_glthread=false before installing?
I tried add a .config/kodi.conf file in my USB media's storage partition, but it is not work.

@lrusak
Copy link
Member

lrusak commented Oct 14, 2023

@lrusak

Might be able to use the env variable mesa_glthread=false

Thanks for reply. I can confirm it works.

related https://gitlab.freedesktop.org/mesa/mesa/-/issues/7977

This should be fixed in mesa 22.3.5, but it doesn't seem to be in branch 23.

Is there a way that I can set mesa_glthread=false before installing?

I tried add a .config/kodi.conf file in my USB media's storage partition, but it is not work.

Not really. We should probably pull the fix into our tree or set the env variable in the build.

@mglae
Copy link
Contributor

mglae commented Oct 14, 2023

Boot a LE12 Generic.x86_64 nightly build with an AMD GPU. (I use live mode)

Is there a way that I can set mesa_glthread=false before installing?
I tried add a .config/kodi.conf file in my USB media's storage partition, but it is not work.

Use "run" mode - but start with unmodified storage partition.

@RobGries
Copy link

RobGries commented Nov 8, 2023

I am also having the same trouble on the latest nightly build on an HP EliteDesk 705 G4 (Ryzen 5 PRO 2400GE APU with Vega 11 Graphics) .

I am trying to set the mesa_glthread=false environment variable, but I am afraid that it is not affecting the problem with flicker/graphics corruption. I tried setting it as an environment variable with export mesa_glthread=false and restarting kodi from ssh with systemctl restart kodi but that did nothing.

EDIT: I figured it out. To everyone having this problem, follow these steps:

  1. Edit /storage/.config/kodi.conf with your editor of choice
  2. Add the following line: mesa_glthread=false and save the file
  3. Restart Kodi: systemctl stop kodi && systemctl start kodi
  4. You should no longer see graphics corruption in Kodi with the AMD APUs.

@heitbaum
Copy link
Contributor

Is this issue still occurring with latest LE12 20240311-86dba4b images?

@dod38fr
Copy link

dod38fr commented Mar 16, 2024

This LE12 20240311-86dba4b image is working fine on my AMD system (with or without export mesa_glthread=false).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants