| Summary: | Screen cycles 22 seconds off, 4 seconds on, only with Wayland | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | cantabile <cantabile.desu> |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nate, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 5.24.5 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
drm debug messages
messages from kwin_wayland |
||
|
Description
cantabile
2022-06-02 15:57:57 UTC
That's a WTF bug for sure. I found this kinda similar Gnome bug, which they fixed: https://gitlab.gnome.org/GNOME/mutter/-/issues/1991 I don't know if it's useful. It might have been fixed by accident, since no commit is mentioned. In order to show what KWin and the kernel are doing, you can execute > kwriteconfig5 --file startkderc --group General --key systemdBoot true then reboot, then execute > echo 0xFF | sudo tee /sys/module/drm/parameters/debug and > sudo dmesg -w > dmesg.log (leave it running) then turn the screen off, let it happen once and cancel the dmesg command. Then upload that dmesg.log and also the output of > journalctl --boot 0 --user-unit plasma-kwin_wayland Also, if you put KWIN_DRM_NO_AMS=1 into /etc/environment, does the behavior change? Created attachment 149591 [details]
drm debug messages
Created attachment 149592 [details]
messages from kwin_wayland
I put KWIN_DRM_NO_AMS=1 in /etc/environment and rebooted. The behaviour didn't change, so I removed it and rebooted again. Then I obtained journalctl.log and dmesg.log as you instructed. They are attached. hmm, the driver is reporting hotplugs when the screen has been turned off for a bit. While I have never heard of it happening with eDP, it is somewhat common with external monitors. I think this one can be sanely worked around in KWin though However, in the 4 seconds in between two hotplugs, I don't see KWin doing anything... So it might not be KWin's doing after all. Do you have the Xorg driver xf86-video-intel installed? If so, if you remove it, does it still work correctly on Xorg? I don't have xf86-video-intel. I removed it a long time ago because of some other bug(s). Updating everything did not magically fix it. KDE Plasma Version: 5.25.4 KDE Frameworks Version: 5.97.0 Qt Version: 5.15.5+kde+r174-1 / 6.3.1 Wayland version: 1.21.0 Kernel version: 5.19.3-arch1-1 Plasma 6 ships with a workaround for such buggy hotplug notifications, so this should no longer happen |