https://bugs.kde.org/show_bug.cgi?id=522566
--- Comment #4 from Francisco H <[email protected]> --- Created attachment 198513 --> https://bugs.kde.org/attachment.cgi?id=198513&action=edit backends/drm: re-query outputs after resume Looking into the resume path for this: KWin only re-queries connectors when it gets a udev hotplug event or a session/device resume. On this machine nvidia-drm uses kernel suspend notifiers: UseKernelSuspendNotifiers: 1 nvidia-suspend.service / nvidia-resume.service: disabled so suspend doesn't switch VTs, and KWin gets neither deviceResumed nor a hotplug event on wake. nvidia-drm's resume path only re-detects DisplayPort connectors, and it only forces a re-probe + hotplug event for the SoC dGPU workaround (isSocDgpuDisplayNeedingWar), so an HDMI monitor disconnected during sleep is never re-probed by KWin. The connector still looks connected to KWin, and the output survives the wake. Session::awoke currently only forces a legacy modeset; it never updates the output list. The attached patch queries the outputs again after resume. updateOutputs() goes through DrmConnector::updateProperties() -> drmModeGetConnector(), which forces the driver to re-detect every connector; a removed output is destroyed and outputsQueried makes the workspace drop it and re-apply the remaining layout. The changed file compiles. I have not done a full suspend/unplug/wake test yet; a drm.debug=0x1FF log of that cycle would confirm the probe at awake returns the correct connector state. If it still reports connected, the remaining problem is nvidia-drm trusting a stale HPD state, and nv_drm_reprobe_connectors() would need to run for non-SoC GPUs too. -- You are receiving this mail because: You are watching all bug changes.
