https://bugs.kde.org/show_bug.cgi?id=528875

            Bug ID: 528875
           Summary: Closing the lid makes the external monitor primary;
                    opening it does not restore the laptop screen as
                    primary (panel stays on external)
    Classification: Plasma
           Product: kwin
      Version First 6.8.2
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: multi-screen
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
On a laptop with an external HDMI monitor, closing the lid makes KWin promote
the external
monitor to priority 1 (primary), even though lid action is suppressed and the
internal screen
stays enabled. When the lid is opened again, the previous priorities are not
restored: the
external monitor stays primary. Because the Plasma panel lives on the primary
screen, the
panel "moves" to the external monitor and stays there.

STEPS TO REPRODUCE
1. Laptop screen (eDP-1) at priority 1, external monitor (HDMI-A-1) at priority
2, panel on the laptop screen.
2. Close the lid (lid action is suppressed because an external monitor is
present).
3. Wait a while (screen locks / system may suspend), then open the lid and
unlock.

OBSERVED RESULT
At the moment the lid closes, priorities swap: HDMI-A-1 becomes priority 1,
eDP-1 becomes
priority 2. Both outputs remain enabled. After the lid opens, the priorities
stay swapped and
the panel remains on HDMI-A-1. Running `kscreen-doctor output.eDP-1.priority.1`
fixes it until
the next lid close.

EXPECTED RESULT
Opening the lid should restore the configuration that was active before the lid
was closed
(eDP-1 primary), or closing the lid should not change priorities while the
internal screen
stays enabled.

RECORDED TIMELINE (kscreen-doctor polled every second)
09:39:57  HDMI-A-1 enabled, priority 2 | eDP-1 enabled, priority 1 | panel on
eDP-1
09:49:04  systemd-logind: "Lid closed."
          powerdevil: "Lid action was suppressed because an external monitor is
present"
          kernel: "ACPI: button: [Firmware Bug]: Unexpected lid state reported
by firmware"
09:49:04  HDMI-A-1 enabled, priority 1 | eDP-1 enabled, priority 2 | panel on
HDMI-A-1
09:54:59  screen locked
10:04:58  system suspended (idle)
12:05:36  resume; systemd-logind: "Lid opened."
12:05:47  unlocked: HDMI-A-1 still priority 1 | eDP-1 still priority 2 | panel
still on HDMI-A-1

Note the "[Firmware Bug]: Unexpected lid state" kernel message at lid close, in
case it is relevant.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
Kernel: 7.2.14-arch1-1
KDE Plasma: 6.8.2 (kwin 6.8.2-2, plasma-workspace 6.8.2-1)
Qt: 6.12.0
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Hardware: Dell G15 5520, hybrid graphics: Intel Iris Xe (Alder Lake-P, drives
eDP-1)
+ NVIDIA RTX 3050 Mobile (drives HDMI-A-1), nvidia-open 615.78.08, mesa 26.2.6.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to