Bug 467230 - Application windows moved to the wrong physical monitor on resume if suspend was done by closing the lid
Summary: Application windows moved to the wrong physical monitor on resume if suspend ...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 5.27.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2023-03-12 08:44 UTC by kdebugs@hirebzs.mozmail.com
Modified: 2024-07-29 21:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs@hirebzs.mozmail.com 2023-03-12 08:44:09 UTC
My laptop is attached to one other monitor on the HDMI port, with the laptop's builtin screen set as the primary monitor. When I suspend by closing the lid, application windows (tried Firefox and Logseq, both installed via Flatpak) placed on the external screen before suspend would get restored to the builtin screen. But if I suspend by using the "sleep" button in kickstart, application windows are restored to the correct physical monitor.


STEPS TO REPRODUCE
1. attach external monitor, place some windows there
2. close lid of laptop
3. open lid

OBSERVED RESULT
application windows assigned to the external screen before suspend are restored to the builtin screen

EXPECTED RESULT
windows assigned to the external screen before suspend are restored to the external screen

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37 Kinoite
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.14-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 6850U with Radeon Graphics
Memory: 14.4 GiB of RAM
Graphics Processor: AMD Radeon Graphics 680M
Manufacturer: LENOVO
System Version: ThinkPad T14s Gen 3

ADDITIONAL INFORMATION

❯ kscreen-doctor -o                                                                                                                                                took 99ms
Output: 1 eDP-1 enabled connected priority 1 Panel Modes: 0:1920x1200@60*! 1:1920x1080@60 2:1600x1200@60 3:1680x1050@60 4:1280x1024@60 5:1440x900@60 6:1280x800@60 7:1280x720@60 8:1024x768@60 9:800x600@60 10:640x480@60 11:1600x1200@60 12:1280x1024@60 13:1024x768@60 14:1920x1200@60 15:1280x800@60 16:1920x1080@60 17:1600x900@60 18:1368x768@60 19:1280x720@60 Geometry: 0,0 1920x1200 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 2 HDMI-A-1 enabled connected priority 2 HDMI Modes: 0:1920x1080@60*! 1:1920x1080@75 2:1920x1080@60 3:1920x1080@60 4:1920x1080@50 5:1680x1050@60 6:1280x1024@75 7:1280x1024@60 8:1440x900@60 9:1280x960@60 10:1280x800@60 11:1280x720@60 12:1280x720@60 13:1280x720@60 14:1280x720@50 15:1024x768@75 16:1024x768@70 17:1024x768@60 18:832x624@75 19:800x600@75 20:800x600@72 21:800x600@60 22:800x600@56 23:720x576@50 24:720x576@50 25:720x576@50 26:720x480@60 27:720x480@60 28:720x480@60 29:720x480@60 30:720x480@60 31:640x480@75 32:640x480@73 33:640x480@67 34:640x480@60 35:640x480@60 36:640x480@60 37:720x400@70 38:1280x1024@60 39:1024x768@60 40:1280x800@60 41:1920x1080@60 42:1600x900@60 43:1368x768@60 44:1280x720@60 Geometry: 1920,0 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: Never RgbRange: unknown
Comment 1 kdebugs@hirebzs.mozmail.com 2023-03-12 08:48:56 UTC
how can I get `kscreen-doctor` to output EDID info? I tried following https://notmart.org/blog/2023/02/how-to-report-multiscreen-bugs/ but if I just run `kscreen-doctor` it prints nothing to the console
Comment 2 Nate Graham 2023-03-13 21:19:16 UTC
EDID info is in `kscreen-console -bug` which is a separate thing for some reason.
Comment 3 Nate Graham 2023-03-13 21:21:13 UTC
Cannot reproduce the issue in Plasma 5.27.2 on Fedora KDE 37 with those exact steps on Wayland. I even have an HDMI monitor too.