Bug 512268 - Pulling HDMI cable out - there are no outputs - black screen not changeable
Summary: Pulling HDMI cable out - there are no outputs - black screen not changeable
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.5.2
Platform: NixOS Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-17 22:10 UTC by Henning
Modified: 2025-12-03 03:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
journalctl reverse order (5.24 KB, text/x-log)
2025-11-17 22:10 UTC, Henning
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2025-11-17 22:10:43 UTC
Created attachment 186899 [details]
journalctl reverse order

I am using a laptop with a TV as monitor and audio output, connected via HDMI. I set it as "secondary screen only".

Quite often (maybe after a certain time, maybe not) when I remove the TV, my display does not reconfigure and my laptop screen stays black.

I have a Fn key to switch displays, pressing it has no effect, while it works normally if nothing is broken.

when attaching the screen again, the old "secondary screen only" layout is still there and I can switch to my laptop as only screen and then pull out.

I attach the log

Operating System: NixOS 25.11
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.12.57 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Comment 1 Henning 2025-11-17 22:11:51 UTC
This happens since the entirity of Plasma 6 I believe
Comment 2 potato 2025-12-03 03:29:09 UTC
I could be wrong but I don't remember this happening on 6.4.x. This started happening to me after upgrading to 6.5.2 on Fedora 43. I never used 6.5.0 or 6.5.1 since either Fedora didn't push them or I waited a long time before updates, so I can't speak for those versions. I use my laptop attached to an external monitor via HDMI sometimes. It isn't thru usb-c since my laptop doesn't support that, just plain HDMI, the barrel charger, and a usb keyboard plugged in individually but not sure that matters.

My procedure to reproduce are: 
1. Configure laptop to not sleep when plugged in and the lid is closed. 
2. Configure laptop to display only on external display when laptop is closed
3. Plug laptop into external display via HDMI and insert power plug
4. Close lid
5. At this point the laptop will only be displaying on the external display. In this state, unplug the laptop from HDMI and charger, laptop should sleep when power is unplugged.
6. Upon opening up and resuming from sleep, the laptop internal screen is black and cannot be used unless a hard reset is done or it is plugged back into the HDMI port.

To avoid this issue: Before unplugging any cables, open the laptop lid and verify display output.

Things I plan on testing soon:
1. When the laptop is being plugged in and about to be unplugged, does the order matter of unplugging the charger and the HDMI?
2. Does plasma 6.5 and 6.4.5 have this issue? I can probably find an ISO and install it on an external ssd to test.


Operating System: Fedora 43
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.8-300.fc43.x86-64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ 5 120U
Memory: 16 GiB of RAM (15.2 GiB usable)
Graphics Processor: Intel® Graphics
Product Name: ASUS Vivobook 15 X1504VAP_F1504VA