https://bugs.kde.org/show_bug.cgi?id=488005
--- Comment #27 from Utku BERBEROĞLU <[email protected]> --- I can reproduce this reliably on Kubuntu 26.04 (KDE Plasma 6, Wayland session) with an external monitor connected via HDMI. The following journal output captures the exact sequence of events: --- May 29 21:43:12 systemd-logind: Lid closed. May 29 21:43:12 org_kde_powerdevil: Lid action was suppressed because an external monitor is present May 29 21:43:14 systemd-logind: The system will suspend now! May 29 21:43:14 kwin_wayland_wrapper: Failed to delay sleep: The operation inhibition has been requested for is already running May 29 21:43:15 systemd-sleep: Performing sleep operation 'suspend'... --- This shows a clear race condition: PowerDevil correctly detects the external monitor and suppresses the lid action, but systemd-logind proceeds to suspend independently — before KWin can register its sleep inhibitor. KWin's attempt to delay sleep fails with "The operation inhibition has been requested for is already running", confirming the inhibitor arrives too late. Notably, this occurs even with the following settings explicitly set in /etc/systemd/logind.conf: HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore These settings are confirmed active via systemd-analyze cat-config, yet logind still triggers suspend. The only workaround that resolves the issue is additionally setting: LidSwitchIgnoreInhibited=no With this change, logind respects the inhibitor locks held by PowerDevil/KWin and no longer suspends when the lid is closed with an external monitor present. System info: - OS: Kubuntu 26.04 - KDE Plasma: 6.6.4 (Wayland) - systemd: 259 (259.5-0ubuntu3) - Kernel: 7.0.0-22-generic - Hardware: Lenovo ThinkPad (utku-20wms02r00) -- You are receiving this mail because: You are watching all bug changes.
