https://bugs.kde.org/show_bug.cgi?id=528875
--- Comment #1 from [email protected] --- Same underlying state on a different symptom, Plasma 6.6.6 (kwin-wayland 4:6.6.6-0ubuntu0.1, plasma-workspace 4:6.6.6-0ubuntu0.1), Ubuntu 26.04.1, kernel 7.0.0-43-generic. Hardware: Dell laptop, Intel TigerLake-H iGPU (8086:9a60) driving eDP-1 [email protected] scale 1.5 plus two external monitors via DP-MST (DP-9, DP-11, 3840x2160@60); NVIDIA RTX A3000 Mobile present but not driving these outputs. On my machine the internal panel is not merely deprioritised: after suspending by closing the lid and resuming with the lid open it stays *disabled* altogether, while the external outputs come back: kscreen-doctor: Output 1 eDP-1 ... disabled /sys/class/drm/card2-eDP-1: enabled=disabled, dpms=Off qdbus6 org.kde.KWin /KWin supportInformation: Screen 0 Name: eDP-1 Enabled: 0 At the same moment firmware and input layer both consider the lid open: /proc/acpi/button/lid/LID0/state -> state: open evtest --query /dev/input/event0 EV_SW SW_LID -> exit 0 (not active = open) journal: "systemd-logind: Lid opened." Timeline of this boot: 20:07:43 systemd-logind: Lid closed. 20:07:43 powerdevil: Lid action was suppressed because an external monitor is present 20:07:45 kernel: ACPI: button: The lid device is not compliant to SW_LID. 20:23:15 kernel: PM: suspend entry (s2idle) 04:14:19 kernel: PM: suspend exit; systemd-logind: Lid opened. 04:18:46 session unlocked; eDP-1 still disabled 04:19 kscreen-doctor output.eDP-1.enable brings it back instantly, so DRM/link is fine Evidence that KWin's LidSwitchTracker still holds "closed" while the lid is physically open: toggling eDP-1 from the CLI (kscreen-doctor output.eDP-1.disable / enable) rewrites the lidClosed=true entry of ~/.config/kwinoutputconfig.json, never the lidClosed=false one. src/lidswitchtracker.cpp only assigns m_isLidClosed from switchEvent() and never re-reads the switch, so a single SW_LID event lost during resume is permanent until the lid is physically cycled (or the session is restarted). I also tried to reset it with a synthetic switch device via /dev/uinput (EV_SW + SW_LID, created with UI_SET_SWBIT, appears as a normal input device with udev ID_INPUT_SWITCH=1): KWin does not react to SW_LID changes from it, so only a real lid cycle recovers. Suggestion: re-read the switch state (or emit lidStateChanged) when the output backend re-enumerates after resume. The same fix would cover both the priority-swap symptom reported here and the "internal display stays disabled" case above. -- You are receiving this mail because: You are watching all bug changes.
