Bug 459049 - Relayout is slow on dynamic enabling a display
Summary: Relayout is slow on dynamic enabling a display
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.24.6
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-13 09:40 UTC by tnizametdinov
Modified: 2022-11-11 08:04 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 tnizametdinov 2022-09-13 09:40:57 UTC
SUMMARY
***
Relayouting of windows is slow and sometimes hangs while enabling display (either by plugging in an external monitor or manually via Display Manager).
***


STEPS TO REPRODUCE
1. Open multiple windows of some apps.
1. Plug in an external monitor. Wait until relayout is finished.
2. Goto Display Configuration.
3. Disable display. Wait until relayout is finished.
4. Enable display.



OBSERVED RESULT
Relayout takes up to a minute(s).

EXPECTED RESULT
Relayout is done in second(s).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
5.24.6
KDE Frameworks Version: 
5.92.0
Qt Version: 
5.15.3
ADDITIONAL INFORMATION
OS: Pop!_OS 22.04 LTS
Kernel 5.19.0, X11
Graphics: Mesa Intel UHD Graphics 630
Comment 1 Vlad Zahorodnii 2022-09-14 09:43:54 UTC
Can you provide us more details? What does happen during that one minute?
Comment 2 tnizametdinov 2022-11-11 08:04:02 UTC
The background image appears on the second monitor,
on the main (laptop) monitor, relayouting starts (as the second monitor is a primary one),
during the relayout the taskbar moves to the middle,
system freezes,
after one minute unfreezes.

Also noticed even worst behavior - monitors sometimes go to sleep mode after one minute. Didn't recognize any patterns yet.

PS:
Sorry for the delayed answer.