https://bugs.kde.org/show_bug.cgi?id=521211
--- Comment #12 from [email protected] --- I can reproduce this reliably on Plasma 6.8.2 (Wayland). This is a laptop without a dock: the external monitor is plugged straight into HDMI. STEPS TO REPRODUCE 1. Fix the priorities (HDMI-A-1 = 1, eDP-2 = 2), e.g. with the kscreen-doctor command below. Laptop lid stays open the whole time. 2. Unplug HDMI. 3. Suspend (S3, "deep"). 4. While suspended, plug HDMI back in. 5. Wake the laptop. OBSERVED RESULT Both outputs have priority 1. This happens every time with these steps. Unplugging and replugging HDMI WITHOUT suspend does not trigger it: the priorities stay correct. EXPECTED RESULT HDMI-A-1 keeps priority 1 and eDP-2 keeps priority 2, as stored before. Like in comment #7, only the priority is wrong. Positions, modes and scale are kept. The cause seems to be the saved setup in ~/.config/kwinoutputconfig.json. After resume, KWin rewrites the setup entry for "eDP-2 + HDMI-A-1, lidClosed: false" with priority 1 for BOTH outputs and then keeps applying it. Since the bad setup is persisted, a reboot does not help (matching the original report). Setup entry written by KWin right after resume (the file is modified ~10 s after resume): {"lidClosed": false, "outputs": [ {"enabled": true, "outputIndex": 0, "position": {"x": 0, "y": 216}, "priority": 1}, {"enabled": true, "outputIndex": 1, "position": {"x": 1536, "y": 0}, "priority": 1}]} outputIndex 0 = eDP-2 (internal panel, BOE), outputIndex 1 = HDMI-A-1 (Dell). The matching "lidClosed": true entry for the same two outputs is fine (priority 2 / 1). Workaround: running kscreen-doctor output.HDMI-A-1.priority.1 output.eDP-2.priority.2 makes KWin write a correct setup (priority 2 / 1), until the steps above are repeated. I first noticed this a few days ago. I can't say for sure whether it started with 6.8.2. Attachments, as requested in comment #1: - attachment 198005: kscreen-doctor -o after the steps above (broken) - attachment 198006: kscreen-doctor -o after the manual fix (expected) - attachment 198007: kwinoutputconfig.json written by KWin after resume (broken) - attachment 198008: kwinoutputconfig.json after the kscreen-doctor fix Hybrid graphics: the internal panel eDP-2 is driven by the AMD iGPU, and HDMI-A-1 is wired to the NVIDIA dGPU. KWin uses the default primary GPU (KWIN_DRM_DEVICES is not set). The only non-default KWin env var is KWIN_ALLOW_VULKAN_MGPU_COPIES=1, a workaround for bug 527591. Operating System: CachyOS Linux KDE Plasma Version: 6.8.2 KDE Frameworks Version: 6.31.0 Qt Version: 6.12.0 Kernel Version: 7.3.0-4-cachyos (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics Memory: 32 GiB of RAM Graphics Processor 1: AMD Radeon Graphics (Cezanne) Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU, driver 615.78.08 Laptop: Lenovo Legion Outputs: eDP-2 1920x1080@165, scale 1.25, VRR automatic; HDMI-A-1 1920x1080@60, scale 1, no VRR -- You are receiving this mail because: You are watching all bug changes.
