Bug 466869

Summary: Desktop icons reset positions after changing screen setup
Product: [Plasma] plasmashell Reporter: akm <alexvkaam>
Component: FolderAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, boot.efi, hein, kdedev, mirthost, n2thew, nate, notmart, php4fan, sarahvca52, thomas
Priority: NOR Keywords: multiscreen
Version: 5.27.1   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: comment 5. Point 3
comment 5. Point 4
comment 5. Point 5
comment 5. Point 6

Description akm 2023-03-05 07:35:28 UTC
SUMMARY
***
Having laptop desktop duplicated to an HDMI screen, then closing laptop lid so HDMI screen becomes primary all icons lose their position.  Then opening laptop lid so screens get duplicated, it happens again.
***


STEPS TO REPRODUCE
1.  On laptop desktop to folder display, icons positioned where you want them and locked: layout A
2.  Hook up HDMI screen
3.  Desktop is duplicated and everything remains the same, so layout A 
4.  Close laptop lid so HDMI screen becomes the only one
5.  Icons get a random order, left to right
6.  unlock icons, place them in a desired order, but a little bit different from what you had, lock them: layout B
7.  open laptop lid so desktop is duplicated again
8.  Icons get a random order, left to right
9. Close laptop lid so HDMI screen becomes the only one
10.  Icons get a random order, left to right
11.  Unplug HDMI screen, random mess remains

OBSERVED RESULT

Icons get mixed up each and every single time

EXPECTED RESULT

Going to a new desktop/screen I can understand you need to set it up again, but after that when switching back to a previously know configuration you would expect it to be as it was.

Operating System: openSUSE Tumbleweed 20230228
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 2600X Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B87
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-03-06 23:25:47 UTC
Can reproduce exactly, without even locking icons.
Comment 2 Nate Graham 2023-03-08 18:34:05 UTC
Ah, that was on 5.27.2. With 5.27.3 I can't reproduce it anymore. Looks like it may have been fixed with the fix for Bug 464873.

*** This bug has been marked as a duplicate of bug 464873 ***
Comment 3 akm 2023-03-25 06:13:04 UTC
good morning

this was marked as a duplicate of bug 464873 which has been resolved in 5.27.3.
so as Tumbleweed rolled that out this week I tested the exact same steps, the good news is it sort of has changed.
The bad news is that it is not fixed though.

laptop & external screen both on:  icons in the wanted layout A
closed laptop lid:  icons on external screen all on the top row, layout B
with laptop still closed:  place icons again as wanted  A
open laptop lid:  icons now in a new layout, not all on the top line anymore but also on the second line, so layout C
closing and opening the lid does keep them on layout C, but soon as you move then into layout A it all jumps back again to B or C depending if you changed it with laptop lid open or closed.

Regards, Alex
Comment 4 Nate Graham 2023-03-27 18:07:52 UTC
> the good news is it sort of has changed. The bad news is that it is not fixed though.
Can you write new steps to reproduce for this new issue?
Comment 5 akm 2023-03-27 18:51:44 UTC
(In reply to Nate Graham from comment #4)
> > the good news is it sort of has changed. The bad news is that it is not fixed though.
> Can you write new steps to reproduce for this new issue?

sorry i was not clear enough.

1.  on laptop set icons as you please. layout A.
2. hook up external screen
3. screens gets duplicated and both show the same, all good
4. close laptop lid so external becomes only screen, all icons get reposisioned on the top row. let call this random mess layout B.
5. place icons as you please on the remote screen. layout C.
6. open laptop lid so both screens are duplicated again, icons are now in a diffrent layout, not A. B. or C.  but i guess layout D.  most on top row but also a few on 2nd row.  
7. this layout D. sticks now when opening and closing the lid, but its pretty useless and any change you make it will revert back to either B or D.

i made some picture to help explain.
also noticed that the 5min rotation on background picture get reset and open or close lid will give you a new background, no issue at all but maybe a clue :)
Comment 6 akm 2023-03-27 18:57:35 UTC
Created attachment 157637 [details]
comment 5. Point 3
Comment 7 akm 2023-03-27 19:00:06 UTC
Created attachment 157638 [details]
comment 5. Point 4
Comment 8 akm 2023-03-27 19:02:16 UTC
Created attachment 157640 [details]
comment 5. Point 5
Comment 9 akm 2023-03-27 19:08:44 UTC
Created attachment 157641 [details]
comment 5. Point 6
Comment 10 Nate Graham 2023-03-28 18:01:03 UTC
Thanks very much. I'll try to test that once Bug 460246 is fixed, as that issue prevents me from being able to use mirrored setups properly.
Comment 11 Nate Graham 2023-08-28 21:45:31 UTC
*** Bug 473832 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2023-08-28 21:45:35 UTC
*** Bug 473706 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2023-08-28 21:46:07 UTC
*** Bug 469256 has been marked as a duplicate of this bug. ***
Comment 14 php4fan 2024-06-03 15:39:07 UTC
I'm still observing this issue, I think not systematically but only from time to time.

The way it happens to me (but as I said, I think not always) is as follows:

0. I use an external monitor connected to the laptop as the only monitor all the time, with the built-in screen always disabled (and the lid closed)
1. I have a few icons on the desktop arranged as I like
2. Occasionally I need to take my laptop elsewhere to do some work, so I do one of the following:
2.A. Disconnect the external screen and open the laptop lid while my computer is on, and keep using my computer elsewhere with the built-in screen as the main and only. Then connect it back and close the lid, switching back to the original configuration. OR
2.B. Shut down, disconnect the external screen, power up and boot without the external screen, do some work, shut down, reconnect, power up and boot with the original configuration

And when I go back to my original configuration, my icons have been rearranged, all clumped-up to the top-left corner and in alphabetical order. It makes me want to kill somebody.

I'm not sure which one between 2.A or 2.B triggers the issue, it may be specifically and systematically one of the two, or one or both only sometimes. It's something that I don't do very often and it had been quite a long time since the last time I had observed the issue.

I can expect the icons to get moved when I switch to a smaller screen if their original position falls outside of the new screen (not all clumped up and reordered, though, I would expect them to be moved the least possible, although that might not be trivial), but when I switch back to a screen of a resolution that I have already used, I expect them to go back to where they were (if they still exist), and only icons that didn't exist before, or that were manually moved on the other screen can be in an "unexpected" (by me) position. I mean I can definitely see that there are cases where you are forced to make a decision of what to do where the answer may be up to personal preference, but not in most cases, and it's certainly possible to avoid destroying all the information.

Switching screens forth and back and not manually touching any icon definitely should not result in losing all the work of positioning my icons on the desktop.
Comment 15 TraceyC 2024-07-31 23:43:03 UTC
There are multiple bug reports about this behavior. I'm using 468546 as the main bug report.

*** This bug has been marked as a duplicate of bug 468546 ***