Summary: | When using DSC, 4K 144Hz screen does not display content after being turned off and back on again until switching VTs | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Arnaudb <abarisain> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | abarisain, akselmo, justin.slay, nate, xaver.hugl |
Priority: | NOR | Keywords: | wayland-only |
Version First Reported In: | 6.3.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
drm debug logs with vt switch
drm debug logs without vt switch partial kwin logs while switching |
Description
Arnaudb
2025-02-17 13:20:33 UTC
I have had similar problem with my screen LC34G55TWWPXEN, however it only has happened in regular Fedora Plasma session. It does not happen in the developer session. I will have to test this again to see if it happens for me in regular session before I can confirm this. Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.80 KDE Frameworks Version: 6.12.0 Qt Version: 6.8.2 Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon RX 6600 I have had this issue for a while now (~1 year). Disabling DSC did not resolve the issue for me. Not only, I have been running at 4k@120hz the entire time the issue has presented itself. This is on a single monitor PG48UQ setup. When the monitor comes back on, I will hear the device connected sound, then disconnected sound shortly thereafter. This repeats indefinitely until I switch virtual terminals and back. I can also repro this just by unplugging the HDMI cable from the GPU, and plugging it back in. I have had this issue since at least KDE 6.0, maybe even before it, but I can't remember exactly. Also having issues with SDDM crashing on the NVidia 570 driver, but I believe this is unrelated as it has only just started with the new driver. This just exacerbates the issue because when I would usually switch virtual desktops and back to get a picture/signal back, it now crashes SDDM and I lose my session. Using GDM, this particular issue does not occur. Arch/KDE 6.3 13900K with NVidia 4090 570.86.16 DKMS with kernel 6.13.2/6.13.3. Interestingly enough, KDE "About this system" shows that both my GPUs are my 4090, when that is incorrect. GPU 1 should be the i915 integrated graphics from the Intel chip, even though it is unused and no device plugged into the motherboard outputs. Operating System: Arch Linux KDE Plasma Version: 6.3.1 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.13.3-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 32 × 13th Gen Intel® Core™ i9-13900K Memory: 62.6 GiB of RAM Graphics Processor 1: NVIDIA GeForce RTX 4090/PCIe/SSE2 Graphics Processor 2: NVIDIA GeForce RTX 4090/PCIe/SSE2 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: Z790 AORUS MASTER System Version: -CF $ inxi -G Graphics: Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] driver: i915 v: kernel Device-2: NVIDIA AD102 [GeForce RTX 4090] driver: nvidia v: 570.86.16 Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5 compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris gpu: nvidia,nvidia-nvswitch resolution: 3840x2160~120Hz API: EGL v: 1.5 drivers: iris,nvidia platforms: gbm,wayland,x11,surfaceless,device API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: nvidia mesa v: 570.86.16 renderer: NVIDIA GeForce RTX 4090/PCIe/SSE2 API: Vulkan v: 1.4.303 drivers: N/A surfaces: xcb,xlib,wayland Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi wl: wayland-info x11: xdpyinfo, xprop, xrandr For what it's worth, when I plug the monitor via HDMI I get a different kind of brokenness, a lot like you describe. The DSC workaround is DisplayPort only. Please put KWIN_DRM_PREFER_COLOR_DEPTH=24 into /etc/environment and reboot. Does it still happen with that? If it does please follow the instructions at https://invent.kde.org/plasma/kwin/-/wikis/Debugging/Debugging-DRM-issues to get a drm debug log of the problem. Thanks. Unfortunately this does not fix it. I added three logs: - kwin logs for 3 cases. I set QT_LOGGING_RULES=kwin_*.debug=true. Once logged in, I started grepping journalctl for kwin and performed 3 tests which I detailed in the log file. - DRM logs with me turning the screen off and on, then switching to the X11 VT and back to Wayland (drm-debug-with-vt-switch.log) - DRM logs with me turning the screen off and on, then switching to the X11 VT and back to Wayland (drm-debug-with-vt-switch.log) KWIN_DRM_PREFER_COLOR_DEPTH=24 was set for both DRM logs but not the QT_LOGGING_RULES one. One thing I noticed is that my screen is YCbCr, I don't know how to force RGB (or if this is even possible with DSC): I'm used to this colorspace causing issues but this might be a bad lead. Created attachment 178654 [details]
drm debug logs with vt switch
Created attachment 178655 [details]
drm debug logs without vt switch
Created attachment 178656 [details]
partial kwin logs while switching
The log shows that KWin is doing new commits after the hotplug, and the driver applies them with not a single error message. I have no idea how this wouldn't also happen on Gnome, but given that KWin seems to be doing everything right, I'm certain this issue is on the driver side - or a monitor quirk that the driver has to work around. Please report it at https://forums.developer.nvidia.com/c/gpu-graphics/linux |