You are not logged in.

#1 2023-03-04 09:08:53

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

[Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Hello there

hope I'm right here. Recently upgraded my Kernel from 6.1 to 6.2 (currently back to 6.1 lts and that is fine at least), but and as soon I start 6.2 and try to use X11 I get a flickering Display: After Login to X11

The SDDM is fine on first boot. but can make the issue too if you try to sign out / switch users. And as soon I switch the Wayland on the SDDM and login with that, it works fine (except when you do the logout thing).
Anyone any idea where the issue could come from? Checked Systemctl, Journalctl and xorg logs but found nothing special in them, even compared to logfiles created with booted Kernel 6.1lts.

E.g dmesg:
1. Boot with 6.2: https://clbin.com/7y2Jo
2. Boot with 6.2: https://clbin.com/MjC7U
3. Boot with 6.1lts: https://clbin.com/1p4sj

Xorg logs:
6.2: https://clbin.com/fGRgh
6.1: https://clbin.com/0YWlb

Any ideas where I could start to look at and to get further information about the issue, or maybe create a bug report with that too?
System:
DE: KDE
GPU: 7950x iGPU with AMDGPU drivers from Kernel

Thank you for the advise and inputs
Note: Kernel 6.1 before LTS and now with 6.1 LTS I did not had any issues like that it starts as soon I start 6.2 - so it has to be something related to kernel smile

E: d*** could use something like https://drive.google.com/drive/folders/ … xG3U1mur62 but for 6.1 to 6.2 maybe loqs has that too *hope/pray*

Last edited by Kenny.ch (2023-03-04 10:34:57)

Offline

#2 2023-03-04 09:42:40

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

What if you drop xf86-video-amdgpu?

Offline

#3 2023-03-04 09:49:41

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

you mean drop = pacman -R xf86-video-amdgpu, or just unload the amdgpu driver?
But then I would only have tty / no gpu to display on -> or do you mean I should test if tty is flickering to? (Or do I miss here something)

checked with pacman: xf86-video-amdgpu-23.0.0-1 would be installed / seems to be up to date
lsmod: https://clbin.com/aLJX0 (from booted 6.1)

Thank you for the replay smile

Last edited by Kenny.ch (2023-03-04 09:53:32)

Offline

#4 2023-03-04 09:54:06

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

you mean

Yes.

then I would only have tty / no gpu

No, you'd use the modesetting driver on top of the kernel module.

grep -ri amdgpu /{etc,usr/share}/X11/xorg.conf*

to make sure the ddx driver isn't referenced in any config files (in that case Xorg would indeed fail)

Offline

#5 2023-03-04 10:12:50

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Removed xf86-video-amdgpu and rebooted to 6.2 and as soon I logged into X11 it started again with the flickering
lsmod "shows amdgpu": https://clbin.com/cSysO

Pain to watch ^^: https://imgur.com/TKhXO5l
https://imgur.com/kWZx7Nl

Last edited by Kenny.ch (2023-03-04 10:13:43)

Offline

#6 2023-03-04 10:22:55

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

What happens if you suspend the compositor (SHIFT+alt+F12)?

lsmod is unrelated to the ddx driver, you'll need the kernel module - that's fine.

Offline

#7 2023-03-04 10:28:16

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

seth wrote:

What happens if you suspend the compositor (SHIFT+alt+F12)?

And we found the cause compositor is the issue on 6.2 (also just updated to 6.2.2-arch1-1, just to test that too)

Booted that and using X11 to write this - no flickering anymore... KDE compositor then Thank you for the help to narrow it down

Last edited by Kenny.ch (2023-03-04 10:29:16)

Offline

#8 2023-03-04 15:08:57

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Do you get the flicker w/ picom and
1. the glx backend?
1. the xrender backend?

Offline

#9 2023-03-05 19:49:53

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Have a look in the next days - will have to figure out how to get that working picom / other backends (never bothered with that yet)

Last edited by Kenny.ch (2023-03-05 19:50:42)

Offline

#10 2023-03-05 20:47:09

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Feel free to "bump" the thread then with a new post (technically it's not as you're providing new information) - I'll typipcally not frequentyl revisit old threads for updating edits.

Offline

#11 2023-03-16 19:06:54

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Can do, but as I never have 'bothered' to switch from x backend to picom / dont want to kill my setup - any 'recent' guides or wiki to switch from kde compositor to picom that is 'usable'? - would not mind some adaption from distro x way to arch tho.


Would love to find issues/causes for it to provide here: https://bugs.kde.org/show_bug.cgi?id=466820
Also (other am5 igpu users / other amd or even nv/intel gpu users with kde) a feedback could help - maybe just a bleeding edge - cutting edge issue - but would be curios to read other users feedback on kde (latest) with 6.2+
Also have to test the up most updates / boot to 6.2 instead of lts and retest smile

Last edited by Kenny.ch (2023-03-16 19:08:11)

Offline

#12 2023-03-16 21:37:50

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Suspending/disabling the kwin compositor and running "picom" will do.
picom will default to xrender and "picom --backend glx" will launch it w/ the glx backend.

Offline

#13 2023-03-19 15:57:48

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Just suspended (SHIFT+alt+F12) kwin and installed picom (pacman -Syu picom) and did run both commands above -> both of them resulted in a static white screen. No flicker but yeah not more than that.
Updated the system to the latest Kernel/Packages 6.2.7-arch1-1 and LTS kernel and its the same as before (6.1.20-1-lts fine -> 6.2+ broken)

Last edited by Kenny.ch (2023-03-19 15:59:52)

Offline

#14 2023-03-19 20:37:04

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

run both commands above -> both of them resulted in a static white screen

Did you mayhaps try that in a wayland session? (Cause that's not gonna work)

Offline

#15 2023-03-21 06:47:07

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

no pretty sure I was in X11, as I do use main X11 here - "have some issues with wayland and looking-glass.io" as start window in full screen mode etc pp, thus not bothering yet with wayland.
And I got greeted by my kwin flicker compositor and had to suspended it first to even use my de, and on wayland the compositor does not flicker smile

Offline

#16 2023-03-21 08:31:36

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Does picom print anything to stdout/err?
I cannot even imagine how you'd end up w/ a "static while screen" unless the gamma ramps get altered (for no reason)
Do you still see the mouse cursor?

Offline

#17 2023-03-23 13:16:00

ioagel
Member
Registered: 2023-03-23
Posts: 3

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

I have exactly the same problem with kernel 6.2 and 7950x igpu (white screens in both of my 4k monitors). With lts kernel 6.1 everything works fine.
The problem occurs either with picom enabled or disabled.

Last edited by ioagel (2023-03-23 13:17:42)

Offline

#18 2023-03-23 14:08:36

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

The OPs problem is flicker because of the kwin compositor, the picom situation is for now some curiosity.
Random white screen in a completely unspecified context are note related ex ante.
Open a new thread and describe the environment where you experience the symptoms (display server, window manager, …)

Offline

#19 2023-03-25 11:12:38

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

seth wrote:

Does picom print anything to stdout/err?

not that I saw anything in console directly hmm

seth wrote:

I cannot even imagine how you'd end up w/ a "static while screen" unless the gamma ramps get altered (for no reason)

yeah strangely enough if I start it I just see a white screen and have to ctrl+c to get back to any usable state

seth wrote:

Do you still see the mouse cursor?

unfortunately no and using a black courser

ioagel wrote:

I have exactly the same problem with kernel 6.2 and 7950x igpu (white screens in both of my 4k monitors). With lts kernel 6.1 everything works fine.

At least a similar issue (I guess) but - "glad to hear that I'm not the only one" with compositor issues (also please link to your thread Interested - as I can reproduce white screens too with picom (but just when I start it, as I tested it here for my compositor issue)

Last edited by Kenny.ch (2023-03-25 11:17:50)

Offline

#20 2023-03-25 12:18:17

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

unfortunately no and using a black courser

Means it's not actually the compositor.
Does picom behave the same under the "good" 6.1 kernels?

Offline

#21 2023-03-25 12:48:08

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

No with 6.1 it works like it should / you would expect.

Last edited by Kenny.ch (2023-03-25 12:49:33)

Offline

#22 2023-03-28 05:18:30

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

Update: just updated my PC and packages and have "some issues with lts kernel now while booting" and thus tried my installed 6.2.8-arch1-1 kernel - I was welcomed in a flicker free KDE DE. Seems a recent update fixed the issue.
Not sure which one was it but I think on of these: upgraded kwin (5.27.3-1 -> 5.27.3-2), upgraded vulkan-radeon (23.0.0-3 -> 23.0.1-1), upgraded mesa (23.0.0-3 -> 23.0.1-1),  upgraded mesa-utils (8.5.0-2 -> 9.0.0-1)
the other packages like Qemu / Coreutils etc I don't think they had something to do -> Pacman update log https://pastebin.com/aEBgRf7Y

Last edited by Kenny.ch (2023-03-28 07:02:12)

Offline

#23 2023-03-28 10:20:12

ioagel
Member
Registered: 2023-03-23
Posts: 3

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

I fixed the problems with 7950x igpu in kernel 6.2 by adding the following additional parameter to kernel: 'amdgpu.sg_display=0'

Edit file: /etc/default/grub and add it to GRUB_CMDLINE_LINUX_DEFAULT then run: sudo update-grub

Offline

#24 2023-04-19 05:31:53

Kenny.ch
Member
Registered: 2023-02-24
Posts: 17

Re: [Solved] Display Flickers w Kernel 6.2 on X11, not on Wayland

ioagel wrote:

I fixed the problems with 7950x igpu in kernel 6.2 by adding the following additional parameter to kernel: 'amdgpu.sg_display=0'

Edit file: /etc/default/grub and add it to GRUB_CMDLINE_LINUX_DEFAULT then run: sudo update-grub

Thank you too for that tipp -> recently booted again to 6.2 and flicker was back (it seemed) just added the amdgpu part you mention and since then it is perfectly fine!

Aka if anyone has that issue kernel: 'amdgpu.sg_display=0' may does the job

Last edited by Kenny.ch (2023-04-19 05:44:54)

Offline

Board footer

Powered by FluxBB