Bug 501306 - windows no longer remember location after dual monitor sleep
Summary: windows no longer remember location after dual monitor sleep
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.3.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-10 17:06 UTC by Henrik Hudson
Modified: 2025-10-20 13:17 UTC (History)
3 users (show)

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


Attachments
drm_info output (92.19 KB, text/plain)
2025-03-11 15:36 UTC, Henrik Hudson
Details
kscreen_doctor output (2.61 KB, text/plain)
2025-03-11 15:36 UTC, Henrik Hudson
Details
drm_info output (125.20 KB, text/plain)
2025-09-09 11:45 UTC, strudelkuchen
Details
kscreen_doctor output (2.34 KB, text/plain)
2025-09-09 11:46 UTC, strudelkuchen
Details
kscreen_doctor output (1.72 KB, text/plain)
2025-09-09 11:47 UTC, strudelkuchen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Hudson 2025-03-10 17:06:11 UTC
This was working fine with 6.2.x and even 6.3.0 (if I remember right), but it's gotten worse with 6.3.1 and now 6.3.2 is really bad. I run dual monitors. They're identical monitors and both are hooked up via HDMI. Dell U2719D . When the monitors sleep and I come back all the windows are either a) re-sized or b) switched monitor or both.

STEPS TO REPRODUCE
Have dual monitors and let them sleep and wake up.

OBSERVED RESULT
windows are all over the place.

EXPECTED RESULT
windows stay where they were.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.6-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700 CPU @ 3.20GHz
Memory: 31.1 GiB of RAM
Graphics Processor 1: AMD Radeon RX 550 / 550 Series
Graphics Processor 2: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: OptiPlex 7060
Comment 1 Henrik Hudson 2025-03-10 17:07:01 UTC
This was the same problem in 6.1, but somewhere in 6.2.x  it got fixed and was working great.
Comment 2 Zamundaaa 2025-03-10 21:18:11 UTC
Please attach the output of kscreen-doctor -o and drm_info.
Comment 3 Henrik Hudson 2025-03-11 15:36:07 UTC
Created attachment 179308 [details]
drm_info output
Comment 4 Henrik Hudson 2025-03-11 15:36:39 UTC
Created attachment 179309 [details]
kscreen_doctor output
Comment 5 Henrik Hudson 2025-03-11 15:38:01 UTC
I'm only using the AMD / ATI card. It is DP out, but using mini-DP -> HDMI cables to use HDMI on the monitor side. Sorry, forgot the card side was DP.
Comment 6 Bug Janitor Service 2025-03-26 03:46:53 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Henrik Hudson 2025-04-08 18:16:28 UTC
updated version. still a problem in 6.3.4 .
Comment 8 Henrik Hudson 2025-07-17 17:14:05 UTC
This is still a problem in 6.4.2 . Same hardware, but a clean install of Fedora 42 .
Comment 9 Zamundaaa 2025-07-17 17:29:17 UTC
Are the windows that get misplaced tiled, or in some other "special" window state? I can confirm that it's broken with custom tiled windows, but quick tiled and maximized works fine.
Comment 10 Henrik Hudson 2025-07-17 17:49:02 UTC
Errr, I open an app (konsole, browsers or kate 95% of the time), focus on it (i use focus follows mouse) and use window key+arrow keys or window key + page up (maximize window) to move them around / adjust them. So, I don't know what that qualifies as.

The browser windows are maximized or 50 / 50 split screen. The 50 / 50 ones move around. I "think" the max ones stay in place. konsole is either 50 / 50 split or 25 / 25 / 25 / 25 (2 x 2). 

The max browsers and konsole do forget the start bar is there and will maximize under it and have to resize them to be able to see the "bottom" text or browser status bar.
Comment 11 Zamundaaa 2025-07-18 13:24:13 UTC
hmm, quick tiled (side by side) windows are supposed to be restored properly, and this is tested in CI: https://invent.kde.org/plasma/kwin/-/blob/v6.4.2/autotests/integration/outputchanges_test.cpp?ref_type=tags#L1943

I'll try reproducing this problem in the test with your specific display setup, maybe it just doesn't happen with the one in CI.
Comment 12 Oliver Beard 2025-09-09 11:34:48 UTC
FWIW I believe I am seeing this after two identical monitors go to sleep and come back, where windows quick-tiled (by dragging them into the side of the screen) appear on the wrong monitor.

This happens on a different desktop, it is not known to me if this happens on the current desktop.
Comment 13 strudelkuchen 2025-09-09 11:45:26 UTC
Operating System: CachyOS Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.16.5-2-cachyos (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce RTX 5080
Left Display (PG279QE): 1440x2560 in 27", 144 Hz
Right Display (MSI4CD7): 3840x2160 @ 1.5x in 27", 240 Hz [Main]

I have this, or a similar issue for a long time now, I can't remember when it last worked correctly (if ever on Wayland).

My setup looks like this: []== the left monitor is rotated 90°counterclockwise, and the main monitor has no rotation (see attached: kscreen-doctor.txt and drm_info.txt).

The windows that seem to cause the most (only?) issues are on the left monitor.
They are all snapped into zones with Super+LMB drag, that I've configured with the Tiles Editor (Super+t).

The left monitor wakes up faster than the right one, if that makes a difference...
I wait for both to wake up before unlocking, but that probably doesn't matter.
Comment 14 strudelkuchen 2025-09-09 11:45:58 UTC
Created attachment 184839 [details]
drm_info output
Comment 15 strudelkuchen 2025-09-09 11:46:13 UTC
Created attachment 184840 [details]
kscreen_doctor output
Comment 16 strudelkuchen 2025-09-09 11:47:32 UTC
Created attachment 184841 [details]
kscreen_doctor output
Comment 17 strudelkuchen 2025-09-09 13:43:06 UTC
When I don't snap the windows into the zones and lock -> monitors sleep -> 5 min later unlock, the windows are in the correct place.
Comment 18 strudelkuchen 2025-10-20 13:17:33 UTC
Anything one can do to help with this? This issue happens every day multiple times...