Bug 487284 - multi-monitor sleep on-wake the windows size and positioning is all over
Summary: multi-monitor sleep on-wake the windows size and positioning is all over
Status: RESOLVED DUPLICATE of bug 461886
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 6.0.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-20 15:42 UTC by Henrik Hudson
Modified: 2024-05-21 12:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Hudson 2024-05-20 15:42:13 UTC
Fedora 40 KDE spin running updates-testing. 99% of the time I'm in Konsole, browsers (Fedora, Edge and Chromium) and VS Code.  My system does not hibernate or sleep. The only thing I do is set the monitors to turn off. I have a 2nd system plugged into the DP ports of the monitors also running Fedora 40 KDE spin running updates-testing and I haven't noticed the issue there (but I only really use that for Steam gaming, so don't have enough windows open to really test it), so I think it's specific to the "HDMI" handling code.

The monitors do sleep now in KDE 6 (thanks devs), but when waking from monitor "off" the Konsole windows and browsers windows tend to be all over, but in repeatable fashion. I tend to have 1 screen with 1/2 Konsole (left side) and then 2 1/4 Konsole windows (right top and bottom) and the 1/2 window tends to shrink to 1/4 and then go halfway off the top left of the screen in the same spot every time. On other virtual desktops the windows will go full screen or move to the other side. The firefox browser sometimes moves completely off screen to the right or goes full screen (it's usually 1/2 screen) and the Edge instance tends to move left to the other monitor. I don't have "scientific" data, but my gut is that the "math" calculating Window positions on-wake is wrong and/or what it's using to "ID" the monitors is wrong and it gets confused. The fact it's also resizing windows is odd.

note: KDE used to (pre-6.x) identify the monitors with the same "ID", but they appear to ID differently now.

Nothing is crashing and everything "works". I just have to move my windows back to where I want them every time the monitors sleep. It would be nice to not do that. This has been happening to me since KDE6 launch (i started with F40 beta as soon as it dropped).

monitors: 2 x Dell U2719D via HDMI

Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.10-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700 CPU @ 3.20GHz
Memory: 31.1 GiB of RAM
Graphics Processor: AMD Radeon RX 550 / 550 Series
Manufacturer: Dell Inc.
Product Name: OptiPlex 7060
Comment 1 Zamundaaa 2024-05-21 12:28:12 UTC

*** This bug has been marked as a duplicate of bug 461886 ***