Bug 450062

Summary: Plasma 5.25 + Wayland: When disconnecting 2nd monitor, icon positions get reset
Product: [Plasma] plasmashell Reporter: NIk <nik.kaiser87>
Component: FolderAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: hein, jason600.groome, kimna, nate, nik.kaiser87, plasma-bugs, reg06
Priority: NOR    
Version: 5.27.0   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.27
Sentry Crash Report:

Description NIk 2022-02-12 01:11:21 UTC
SUMMARY
Following situation:
- Main monitor connected to iGPU via HDMI, same monitor connected to GTX 1660S via DVI (GTX is bound to vfio-pci but shouldnt matter for this)
- When starting a VM, the "2nd monitor" aka GTX @ DVI gets effectively disconnected from the host. When coming back to Plasma after shutting down the VM, all my desktop icons (default folder view) get reset the the top of the screen. Happens 100% of the time and only under wayland

STEPS TO REPRODUCE
Procedure either as above or:
1. Disconnect 2nd screen when running Wayland
2. Reconnect it
Note: It MAY be the case that this only happens, when 2 screens are connected to two different GPU devices instead to just one, but I couldnt test this. 

OBSERVED RESULT
Desktop icons get reset to default positions (populating the top of the screen)

EXPECTED RESULT
Everything should stay as it was before


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220207
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-04-21 23:09:45 UTC
Shoud be fixed with a combination of the fix for Bug 354802 (which is in Plasma 5.24.5) and other multi-monitor-related bugfixes for 5.25 that were backported to 5.24, but some are still only in 5.25. Please re-open if you upgrade to Plasma 5.25 and find that its not fixed yet. Thanks!
Comment 2 NIk 2022-04-21 23:55:32 UTC
(In reply to Nate Graham from comment #1)
> Shoud be fixed with a combination of the fix for Bug 354802 (which is in
> Plasma 5.24.5) and other multi-monitor-related bugfixes for 5.25 that were
> backported to 5.24, but some are still only in 5.25. Please re-open if you
> upgrade to Plasma 5.25 and find that its not fixed yet. Thanks!

Thank you very much!
Comment 3 NIk 2022-05-15 17:55:30 UTC
(In reply to Nate Graham from comment #1)
> Shoud be fixed with a combination of the fix for Bug 354802 (which is in
> Plasma 5.24.5) and other multi-monitor-related bugfixes for 5.25 that were
> backported to 5.24, but some are still only in 5.25. Please re-open if you
> upgrade to Plasma 5.25 and find that its not fixed yet. Thanks!

This is not fixed at all. Reopening.
Comment 4 NIk 2022-05-15 17:59:04 UTC
Note: This is reopened for 5.24.5 on my machine. 
Ill monitor this until 5.25 arrives, but imo should remain reopened since the bug is effectively not fixed yet.
Brb switching back to X and reordering my icons ;)
Comment 5 Nate Graham 2022-05-15 18:49:13 UTC
Not everything has been backported yet. Please re-test with 5.25.
Comment 6 NIk 2022-06-15 07:42:06 UTC
(In reply to Nate Graham from comment #5)
> Not everything has been backported yet. Please re-test with 5.25.

Retested under 5.25 - still not fixed. The nature of the bug itself didnt change, behavior is stll the same as under 5.24.X. 
Reopening :/
Comment 7 Jason 2022-08-30 00:42:57 UTC
Same thing happens on my laptop when I connect to an external monitor, the desktop icons get reset after disconnecting the monitor.

This only happens to me when using 'Switch to Extenal Monitor' ie Laptop LCD off, external monitor on.
This does not happen if I mirror (unify outputs) the display to the external monitor or extend the monitor 'Extend to Left/Right'
And obviously, this only happens in wayland.

Using Opensuse Tumbleweed, KDE 5.24.5, Kernel 5.18.15, GPU: Intel HD Graphics 620
Comment 8 Jason 2022-08-30 00:46:49 UTC
(In reply to Jason from comment #7)
> Same thing happens on my laptop when I connect to an external monitor, the
> desktop icons get reset after disconnecting the monitor.
> 
> This only happens to me when using 'Switch to Extenal Monitor' ie Laptop LCD
> off, external monitor on.
> This does not happen if I mirror (unify outputs) the display to the external
> monitor or extend the monitor 'Extend to Left/Right'
> And obviously, this only happens in wayland.
> 
> Using Opensuse Tumbleweed, KDE 5.24.5, Kernel 5.18.15, GPU: Intel HD
> Graphics 620

Sorry, I meant KDE 5.25.4. Also, couldn't find the edit message button!
Comment 9 NIk 2022-10-14 17:15:02 UTC
5.26, retested, still not fixed .. :)
Comment 10 Nate Graham 2022-10-14 17:36:58 UTC
Yes, I can reproduce it too. It's quite bad. The team is working on a whole new, better, simpler way of assigning Plasma containments to screens which will fix this automatically. See Bug 450068. Marking this as a duplicate since fixing that will automatically fix this too.

*** This bug has been marked as a duplicate of bug 450068 ***
Comment 11 NIk 2023-02-14 13:40:55 UTC
(In reply to Nate Graham from comment #10)
> Yes, I can reproduce it too. It's quite bad. The team is working on a whole
> new, better, simpler way of assigning Plasma containments to screens which
> will fix this automatically. See Bug 450068. Marking this as a duplicate
> since fixing that will automatically fix this too.
> 
> *** This bug has been marked as a duplicate of bug 450068 ***

5.27 - not fixed .. :(
Just tested it. Switched to Wayland, logged in, all icons were first GONE, then logged out and in again and every icon got shuffled around. 
Theres something the coders arent seeing I guess. Maybe it has to do with the fact Im using an Intel iGPU? I dont know ..
Comment 12 Nate Graham 2023-02-14 17:43:21 UTC
So the issue you're reporting now is different from the one you originally reported, and it should actually be the same as Bug 465536 which was just fixed today for Plasma 5.27.1.
Comment 13 dr0phx 2023-02-14 18:56:28 UTC Comment hidden (spam)
Comment 14 C. Kimna 2023-04-18 20:04:10 UTC Comment hidden (spam)
Comment 15 C. Kimna 2023-04-18 20:06:18 UTC Comment hidden (spam)
Comment 16 Nate Graham 2023-04-18 20:06:55 UTC Comment hidden (spam)