Created attachment 154083 [details] video showing window resize when powering on the screen SUMMARY Use case: when not in front of my desktop, I usually shut down the screen. So X11 is left without screen. When restarting the screen, I see strange windows resize. For some applications (mostly GTK), it leads to application freeze with this message: Gtk-WARNING **: infinite surface size not supported On screen powering _on_, I get this that seems interesting: nov. 27 14:45:31 dagobah kscreen_backend_launcher[1044]: kscreen.xrandr: Requested screen size is QSize(0, 0) nov. 27 14:45:31 dagobah kscreen_backend_launcher[1044]: kscreen.xrandr: Requested screen size is QSize(2560, 1440) I also have this : $ journalctl --user --identifier kwin_x11 nov. 27 14:45:30 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3283, resource id: 71941410, major code: 3 (GetWindowAttributes), minor code: 0 nov. 27 14:45:30 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 3284, resource id: 71941410, major code: 14 (GetGeometry), minor code: 0 nov. 27 14:45:31 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3525, resource id: 71941430, major code: 3 (GetWindowAttributes), minor code: 0 nov. 27 14:45:31 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 3526, resource id: 71941430, major code: 14 (GetGeometry), minor code: 0 nov. 27 14:45:31 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3663, resource id: 71941442, major code: 3 (GetWindowAttributes), minor code: 0 nov. 27 14:45:31 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 3664, resource id: 71941442, major code: 14 (GetGeometry), minor code: 0 nov. 27 14:45:32 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3738, resource id: 100663300, major code: 18 (ChangeProperty), minor code: 0 nov. 27 14:45:32 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3750, resource id: 100663307, major code: 18 (ChangeProperty), minor code: 0 nov. 27 14:45:32 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3820, resource id: 71941455, major code: 3 (GetWindowAttributes), minor code: 0 nov. 27 14:45:32 dagobah kwin_x11[153806]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 3821, resource id: 71941455, major code: 14 (GetGeometry), minor code: 0 STEPS TO REPRODUCE 1. Shut down screen and restart it. OBSERVED RESULT Strange windows resize, maximized one or not. sometime with application freeze. EXPECTED RESULT Windows are not resized. SOFTWARE/OS VERSIONS Operating System: Gentoo Linux 2.9 KDE Plasma Version: 5.26.3 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.5 Kernel Version: 6.0.9-gentoo (64-bit) Graphics Platform: X11 Processors: 12 × 12th Gen Intel® Core™ i5-12500 Memory: 31.1 Gio of RAM Graphics Processor: Mesa Intel® UHD Graphics 770 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: B660I AORUS PRO DDR4 System Version: -CF ADDITIONAL INFORMATION
For completeness on this : I did not have it with my previous computer (same installation, I moved the hard drive to a new hardware) Previous hardware not having issue: intel i5 4960 GPU (haswell generation) New hardware having the issue, as shown in my previous post: intel i5 12500 GPU (alderlake-S generation) So it could be a driver/xorg issue, not kwin. I workarounded the issue by adding this in my xorg configuration instead of relying on auto-configuration. Since I added, this, no more erratic windows resize when switching the monitor off/on # cat /etc/X11/xorg.conf.d/10-monitor.conf Section "Monitor" Identifier "DP-1" Option "PreferredMode" "2560x1440" EndSection Section "Device" Identifier "Intel" Driver "modesetting" Option "Monitor-DP-1" "DP-1" EndSection
I close it now. It seems that upgrade to 5.26.4 fixes this. I cannot reproduce any more. Maybe related to this commit about screen modes ? https://invent.kde.org/plasma/kwin/-/commit/bb99fb8aa4dd5c1ce0630081e424f1038c6b3dae Because it really looked like a race condition while reading the DDC modes when screen going back on. Anyway, fixed for me, thank’s!