Bug 506483

Summary: Not reliably reloading display arrangement when pulling out HDMI cable
Product: [Plasma] kwin Reporter: Henning <boredsquirrel>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.4.1   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Henning 2025-07-02 11:46:24 UTC
I have a Laptop and connect it to a TV via HDMI. This is detected well, and a custom arrangement is restored automatically (in this case "external display only").

But when pulling the cable out, the arrangement does not automatically switch reliably, often my laptop monitor stays black.

To workaround this I need to plug in the HDMI cable again, nothing has changed to the output is still "external display only", on there I go into systray, display configuration, "internal screen only", then pull out the HDMI cable.

I will try to get logs when reproducing this, any tips on how to get the right ones?

Operating System: NixOS 25.11 unstable
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.12.34 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Comment 1 Zamundaaa 2025-07-02 17:05:11 UTC
KWin's log would be the first thing to check:
> journalctl --user-unit plasma-kwin_wayland --boot 0

Also useful could be the output
> drm_info
and
> kscreen-doctor -o
once when the monitor is connected, and once when it's not connected and the laptop screen doesn't work. For the latter case, you can get it by putting "sleep 10;" in front of the commands.
Comment 2 Bug Janitor Service 2025-07-17 03:47:28 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-08-01 03:46:34 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.