Bug 507035 - External screen (with laptop in clamshell mode) does not wake up
Summary: External screen (with laptop in clamshell mode) does not wake up
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.4.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2025-07-14 16:55 UTC by james.a.hulme@gmail.com
Modified: 2025-11-15 11:58 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description james.a.hulme@gmail.com 2025-07-14 16:55:43 UTC
SUMMARY

KDE desktop is unreachable after some time idle

STEPS TO REPRODUCE

With the recent update to Plasma 6.4.x, I started seeing a new problem (not seen in 6.1.x):

* Laptop is connected to external display via HDMI.   
* Laptop lid is closed. Plasma power settings adjusted to ignore lid switch.  
* Leave laptop unattended for some time (e.g. overnight)  
* Try to wake external display using external keyboard   


OBSERVED RESULT

External display does not wake up.

EXPECTED RESULT

External display wakes up. Shows SDDM login prompt.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.12.35-1-lts
KDE Plasma Version: 6.4.x
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION

Laptop is reachable via ssh. Workaround is restarting SDDM via ssh. This recovers display & shows login screen okay.

I looked inside the journal. First message on attempt to wake via keyboard shows a kwin error:

* kwin\_wayland\[22936\]: kwin\_xwl: Could not find a matching X RandR CRTC/output to set as primary for KWin::DrmOutput(0x63655bdc06a0, name="eDP-1", geometry=QRect(0,0 1920x1080), scale=1)

After this first entry, there's a larger list of failures. Here's the next few  entries:

Jul 09 13:53:38 seranto-009 kwin_wayland[22936]: kwin_xwl: Could not find a matching X RandR CRTC/output to set as primary for KWin::DrmOutput(0x63655bdc06a0, name="eDP-1", geometry=QRect(0,0 1920x1080), scale=1)
Jul 09 13:53:38 seranto-009 kwin_wayland[22936]: kwin_scene_opengl: Could not delete render time query because no context is current
Jul 09 13:53:39 seranto-009 kded6[23144]: xsettingsd: Reloading configuration
Jul 09 13:53:39 seranto-009 kded6[23144]: xsettingsd: Loaded 16 settings from /home/james/.config/xsettingsd/xsettingsd.conf
Jul 09 13:53:39 seranto-009 polkit-kde-authentication-agent-1[23163]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 kactivitymanagerd[23155]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 insync[23332]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Jul 09 13:53:39 seranto-009 kdeconnectd[23262]: 2025-07-09T13:53:39 qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 ksecretd[22885]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 xdg-desktop-portal-kde[23165]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 yakuake[23335]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 konsole[23462]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 kded6[23051]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Jul 09 13:53:39 seranto-009 systemsettings[23463]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Comment 1 james.a.hulme@gmail.com 2025-08-14 21:06:28 UTC
Further observation: Fault manifests when external HDMI display has been switched off for a while. Actual duration is unclear.
Comment 2 The Luga 2025-10-24 15:50:04 UTC
I have the same problem.

I posted more info about it on the Forum from Arch Linux, as well what I already tried and some ideas: https://bbs.archlinux.org/viewtopic.php?pid=2268957

What is happening here: 

1. The Laptop Awakes.
2. kwin (?) sends some handshake to HDMI (monitor in stand-by).
3. The monitor starts turning on.
4. HDMI handshake request times out from KWIN.
5. The monitor is ON but it has no signal.
6. Monitor turns off again.
7. Placeholder screen has blocked input access. (Need to open lid, press enter, close lid)
8. HDMI monitor is ON again and everything is good until the next suspend state. 


How it could be mitigated: 
1. Increase the time-out to X seconds and try to reach the same monitor again or try to connect multiple times for X seconds.
2. Allow receiving input (keyboard, mouse) inside the placeholder screen itself. (If I could press enter, the monitor would wake up (like opening the lid)

Some logs from the forum post:

```
Oct 22 14:34:35 theluga plasmashell[1178]: requesting unexisting screen available rect -1
Oct 22 14:34:35 theluga plasmashell[1178]: requesting unexisting screen available rect -1
Oct 22 14:34:35 theluga plasmashell[1178]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga kscreenlocker_greet[2644]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga org_kde_powerdevil[1200]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga kwin_wayland[1013]: Could not find a matching X RandR CRTC/output to set as primary for KWin::DrmOutput(0x648acddd91c0, name="HDMI-A-1", geometry=QRect(0,0 1920x108>
Oct 22 14:34:35 theluga kwin_wayland[1013]: Could not find a matching X RandR CRTC/output to set as primary for KWin::DrmOutput(0x648acddd91c0, name="HDMI-A-1", geometry=QRect(0,0 1920x108>
Oct 22 14:34:35 theluga yakuake[1368]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga xdg-desktop-portal-kde[1408]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga ksecretd[1415]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga kdeconnectd[1361]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga kactivitymanagerd[1194]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga polkit-kde-authentication-agent-1[1199]: There are no outputs - creating placeholder screen
Oct 22 14:34:35 theluga kwin_wayland[1013]: Could not find a matching X RandR CRTC/output to set as primary for KWin::DrmOutput(0x648acddd91c0, name="HDMI-A-1", geometry=QRect(0,0 1920x108>
```
Comment 3 The Luga 2025-10-25 03:43:51 UTC
My problem was solved with the update of plasma-destop to 6.5.0-1.
Comment 4 Nate Graham 2025-10-25 05:04:54 UTC
Great news! How about you, James?
Comment 5 james.a.hulme@gmail.com 2025-10-25 10:15:07 UTC
(In reply to Nate Graham from comment #4)
> Great news! How about you, James?

I'm running the upgrade today; will update y'all tomorrow.
Comment 6 james.a.hulme@gmail.com 2025-10-26 06:41:43 UTC
My "overnight" test passed. 

Things are much improved. 

I'll keep an eye on things over the next few days.
Comment 7 james.a.hulme@gmail.com 2025-10-26 06:44:18 UTC
BTW. Upgraded system info is:

Operating System: EndeavourOS 
Kernel Version: 6.12.53-1-lts (64-bit)
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Graphics Platform: Wayland
Comment 8 james.a.hulme@gmail.com 2025-10-31 12:52:05 UTC
I've been running daily for a few days now. 

Problem has not been seen again. 

Looks good.
Comment 9 Bug Janitor Service 2025-11-15 03:47:44 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!