I wanted to file this on bugs.kde.org (product kwin, component platform-drm), but bugs.kde.org gives me 403 Forbidden at the moment, so I am posting it here. Happy to move it to Bugzilla once I can access it.
Description
I have a Samsung ViewFinity S9 5K (S27C90P) connected over Thunderbolt 4. When KWin turns the screens off (DPMS off, e.g. from the PowerDevil idle timeout), the monitor enters standby. About 15 seconds later it sends a long HPD pulse to the laptop. During that pulse the monitor doesn’t answer EDID reads yet. The kernel logs EDID has corrupt header, the connector keeps status connected, and it is left without an EDID (only fallback modes up to 640x480).
KWin then:
- Turns all screens back on, although there was no user input. The laptop panel and the monitor both wake up seconds after blanking, and power management stops working.
- Treats the output as a new monitor. It gets a different output UUID, the saved mode, scale (1.5) and position are lost, and it comes up at 640x480. When the EDID becomes readable a few seconds later and a hotplug uevent arrives, KWin still treats it as a new output and doesn’t re-apply the saved configuration.
I’d expect the following:
- An HPD event while outputs are DPMS-off shouldn’t wake outputs that were already on, or at least not when the connector stayed
connected. - A temporarily missing or unreadable EDID on a connector that stayed
connectedshouldn’t replace the output’s identity and saved configuration. Ideally KWin would keep the last known EDID until a valid new one is read.
The same monitor works correctly on Windows on this machine. On Linux the monitor’s EDID is also often unreadable for 20 to 40 seconds after plug-in or boot, which leaves it at 640x480. With an external workaround (re-probing the connector, writing change to /sys/class/drm/card0/uevent and re-applying the layout with kscreen-doctor), it reaches 5120x2880@60.
Steps to reproduce
- Connect a monitor that briefly drops HPD and serves no EDID while entering standby (in my case a Samsung S27C90P over Thunderbolt 4).
- Run
kscreen-doctor --dpms off, or wait for the idle timeout. - Wait about 15 to 20 seconds without touching any input device.
Observed result
All screens turn on again. The external monitor runs at 640x480 with a new output UUID and default scale and position.
Expected result
The screens stay off until there is user input. The monitor keeps its saved mode, scale and position.
Timeline from logs (kernel + my monitoring script)
14:07:02 usb 2-1.4: USB disconnect <- monitor enters standby after DPMS off (hub in monitor powers down)
14:07:06 DP-1 pipe off (DPMS off)
14:07:19 kernel: EDID has corrupt header <- long HPD pulse from monitor, connector stays "connected", EDID empty
14:07:20 all outputs are on again; DP-1 at 640x480 (link 1.62 Gbps x1)
Second occurrence:
14:52:49 usb 2-1.4: USB disconnect <- standby after `kscreen-doctor --dpms off`
14:53:05 kernel: EDID has corrupt header <- HPD pulse, no EDID
14:53:08 eDP-1 active=yes, DP-1 640x480 <- KWin woke both outputs without input
kscreen-doctor -o before and after shows a different UUID for DP-1 (1a1d2915-… → bb4d1873-…), with the scale reset to 1 and positions swapped.
Software / hardware
- KWin (Wayland) 6.7.4, Plasma 6.7.4, KDE Frameworks 6.30.0, Qt 6.10.2
- Linux 7.2.6 (Debian forky/sid), Mesa 26.1.6, libdrm 2.4.134, i915
- Dell Precision 7560 (Tiger Lake-H, Intel UHD + NVIDIA T1200, the external display is driven by the Intel GPU), BIOS 1.50.0
- Monitor: Samsung ViewFinity S9 5K S27C90P, connected over Thunderbolt 4 (USB4, 40 Gb/s)
I can provide full DRM debug logs (drm.debug=0x106) on request.