SUMMARY *** Every time I plug in my external display, the laptop display is resized to its top left quarter and garbled up. Restarting plasma fixes the problem. The external monitor is set to 100% magnification, the laptop screen is set to 200%. The external monitor is connected via DisplayLink. I'm running Wayland. The display of the external monitor is set to be above the laptop display; i.e. the location of 0,0 moves from the laptop screen to the external screen, when it's plugged in. *** STEPS TO REPRODUCE 1. Start laptop and log in --> laptop display is as it should be. 2. Plug in the dock (DisplayLink) 3. OBSERVED RESULT External monitor comes live and its display is as it should be. Laptop display moves to its top left quarter and gets garbled up. EXPECTED RESULT External monitor comes live and its display is as it should be. Laptop display remains unchanged (i.e. as it was at step 1). SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Kubuntu 22.04 (available in About System) KDE Plasma Version: 5.24.6 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION Running Wayland. External monitor connected via DisplayLink dock.
> the laptop display is resized to its top left quarter and garbled up Can you take a screenshot of what the laptop display shows when this happens? I'd like to make sure I understand what exactly you mean, as there are unfortunately quite a lot of things that can go wrong here.
Created attachment 150994 [details] Laptop screen before docking This is what the laptop screen looks like before docking ...
Created attachment 150995 [details] Laptop screen after docking ... and this is what it looks like with the docking station plugged in (with me being mirrored in the dark part ;-)
Created attachment 150996 [details] Both screens after docking This picture also shows the second display on top of the primary (laptop) display.
I've added some pictures showing the laptop screen before and after docking, and together with the secondary display on top after docking. Didn't use spectacle, because I was afraid that that might interfere even more with the screens. As you can see, I have a script with an icon on the desktop to restart plasma especially to work around this issue. After a plasma restart, the laptop screen looks as before docking again. The script also copies '~/.config/plasma-org.kde.plasma.desktop-appletsrc' from a back-up copy to ensure the widgets are restored (different bug https://bugs.kde.org/show_bug.cgi?id=427861).
Wow that's super crazy. Is your cursor able to exit that top-right corner where the desktop has been resized to, or is it stuck in there?
Created attachment 151051 [details] Laptop screen after docking with dolphin window open from before
> Is your cursor able to exit that top-right corner where the desktop has been resized to, or is it stuck in there? No, I can move the cursor around freely on the entire real estate of both screens. Just plugged in the docking station with dolphin already open on the right half of the laptop screen; the dolphin window held its position after docking (see screenshot attached). It seems that only the plasma desktop gets messed up. Funny thing: After hot-unplugging the docking station with the laptop screen still garbled up, I was left with only the default wallpaper--firstly monochrome only, then colour fading in--and nothing else. I.e. no dolphin window, no control bar, no mouse pointer, nothing. Luckily I could still access a yakuake window. However, restarting plasma didn't work, so all I could do was to "sudo reboot".
Yep, seems like this is Plasma's fault, not KScreen's fault. Or at least, it's not *entirely* KScreen's fault. Any chance you can try Plasma 5.25 and see if it's fixed there? We did a lot of multiscreen work in that release.
Plasma 5.25 will unfortunately not be back-ported to Kubuntu 22.04 LTS. Therefore, I'll have to wait for Kubuntu 22.10 to get KDE 5.25. This is my working laptop, so I don't want to mess with the 5.25 beta ppa for 22.04.
(In reply to Nate Graham from comment #9) > Any chance you can try Plasma 5.25 and see if it's fixed there? We did a lot > of multiscreen work in that release. Now that 5.25.4 has been backported to Kubuntu 22.04, I could give it a try: The problems still persists.
With Kubuntu 22.10 comes ... Plasma 5.25.5 Frameworks 5.98.0 Qt 5.15.6 Something of those has fixed the issue, which Plasma 5.25.4 alone did not fix. Anyway, the screens now behave as expected when hotplugging the the dock.