Bug 488029 - Screen arrangement is lost/reset when changing output mode
Summary: Screen arrangement is lost/reset when changing output mode
Status: RESOLVED NOT A BUG
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 6.0.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-06-04 17:23 UTC by Andrea Ippolito
Modified: 2024-08-08 11:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
after (167.80 KB, image/png)
2024-06-04 17:23 UTC, Andrea Ippolito
Details
before (168.02 KB, image/png)
2024-06-04 17:24 UTC, Andrea Ippolito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ippolito 2024-06-04 17:23:47 UTC
Created attachment 170140 [details]
after

Start with this kind of layout from the Display&Monitor settings:
-------------------
|                 |----------------
|       ext       |               |
|                 |    laptop     |
|                 |               |
-----------------------------------

Notice how the laptop screen (secondary) is to the right of the external one, and slighlty lower.

Now Meta+P and select "Switch to external screen". Then, Meta+P again and select "Extend to left"

Expected result: previous layout is restored
Actual result: layout is reset. While the laptop screen is still to the right of the external one, their upper borders are not aligned.


------------------|----------------
|                 |               |
|       ext       |    laptop     |
|                 |               |
|                 |----------------
-------------------


Operating System: openSUSE Tumbleweed 20240531
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30,7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7
Comment 1 Andrea Ippolito 2024-06-04 17:24:12 UTC
Created attachment 170141 [details]
before
Comment 2 Andrea Ippolito 2024-06-06 16:14:26 UTC
(In reply to Andrea Ippolito from comment #0)
> Start with this kind of layout from the Display&Monitor settings:
> -------------------
> |                 |----------------
> |       ext       |               |
> |                 |    laptop     |
> |                 |               |
> -----------------------------------

> Actual result: layout is reset. While the laptop screen is still to the
> right of the external one, their upper borders are not aligned.
> 
> 
> ------------------|----------------
> |                 |               |
> |       ext       |    laptop     |
> |                 |               |
> |                 |----------------
> -------------------
Comment 3 Andrea Ippolito 2024-06-06 16:15:43 UTC
I also managed to lose the "primary screen" preference just by Meta+P and choosing different options.

I'm quite sure that the primary screen pref was remembered at some point and multimonitor was quite stable, it's a bit sad :(
Comment 4 Bug Janitor Service 2024-07-04 15:11:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreen/-/merge_requests/316
Comment 5 Zamundaaa 2024-07-04 15:12:26 UTC
(In reply to Andrea Ippolito from comment #3)
> I also managed to lose the "primary screen" preference just by Meta+P and
> choosing different options.
If you turn off one of the screens, that's expected.
Comment 6 Andrea Ippolito 2024-07-04 15:19:12 UTC
(In reply to Zamundaaa from comment #5)
> (In reply to Andrea Ippolito from comment #3)
> > I also managed to lose the "primary screen" preference just by Meta+P and
> > choosing different options.
> If you turn off one of the screens, that's expected.

I'm quite sure it's not

A lot of effort in recent releases has gone into ensuring displays are properly identified just to be able to restore their exact preferences when they are reconnected (scaling, resolution, refresh rate, relative positioning).

So IMO this is a bug

Also, I'm quite sure the relative positioning used to be maintained/restored under the same circumstances in previous releases.
Comment 7 Zamundaaa 2024-07-04 16:39:07 UTC
> A lot of effort in recent releases has gone into ensuring displays are properly identified just to be able to restore their exact preferences when they are reconnected (scaling, resolution, refresh rate, relative positioning).
I know, I wrote that code. Like you say, it revolves around reconnecting displays, not about restoring specific preferences depending on other preferences.

> IMO this is a bug
In terms of UX it can certainly be considered one. Please make a separate bug report for that. It might need a somewhat large amount of changes to fix it though, so it may take some time.