Summary: | Desktop icons reset position when switching between laptop and external displays with different resolutions | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | i.Dark_Templar <idarktemplar> |
Component: | Folder | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexvkaam, boot.efi, dashonwwIII, EpicTux123, f.alexander.wilms, hein, idarktemplar, katonag, kdedev, linuxboy, lloyd.osten, matt.fagnani, mt190502, n2thew, nate, nk0885, notmart, pasdabonnements, postix, quanticcpu2100, rpc, sollacea, thomas, typingcat, waldostealthmode |
Priority: | VHI | Keywords: | multiscreen |
Version: | 6.2.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=433867 https://bugs.kde.org/show_bug.cgi?id=481807 https://bugs.kde.org/show_bug.cgi?id=471045 https://bugs.kde.org/show_bug.cgi?id=472137 https://bugs.kde.org/show_bug.cgi?id=449069 https://bugs.kde.org/show_bug.cgi?id=453314 https://bugs.kde.org/show_bug.cgi?id=493569 |
||
Latest Commit: | Version Fixed In: | 6.2.0 | |
Sentry Crash Report: | |||
Attachments: |
0001-tmp.patch
debug.filtered.log |
Description
i.Dark_Templar
2023-04-15 21:45:04 UTC
Created attachment 158136 [details]
0001-tmp.patch
Patch adding additional debugging information I used.
Created attachment 158137 [details]
debug.filtered.log
Output of plasma when built with previously attached patch. Moments I consider important:
PLASMADESKTOPDEBUG: Positioner::sourceDataChanged((37,0), (37,0))
PLASMADESKTOPDEBUG: Positioner::sourceRowsAboutToBeRemoved((-1, -1), 0, 42)
PLASMADESKTOPDEBUG: Positioner::setPerStripe(18)
PLASMADESKTOPDEBUG: Enter: Positioner::applyPositions
...
PLASMADESKTOPDEBUG: Exit: Positioner::applyPositions
PLASMADESKTOPDEBUG: Positioner::setPerStripe(19)
PLASMADESKTOPDEBUG: Positioner::sourceRowsAboutToBeInserted((-1, -1), 0, 42)
So, I assume when plasma switches to different display with different resolution, it first removes all columns and rows, and then inserts new ones, and resets icon positions while doing so.
Can reproduce the issue exactly with those steps on Wayland too, if I ensure that the screens have different logical resolutions. I'm having this same problem with the following setup under Wayland: Setup A: Monitor 1 (external primary): 2560x1440@125% Monitor 2 (external): 2560x1440@125% Monitor 3 (internal): disabled Setup B: Monitor 3 (internal): 3840x2160@200% I thought initially I could prevent the problem by reducing the display scale on monitor 3 to make it larger than the external ones, but that seems to be of questionable effectiveness when actually switching. I do notice that the problem goes away so long as monitor 3 is enabled before switching to it fully. So when switching to using the laptop screen you have to: 1. Open the laptop (or enable its internal display if it doesn't do so automatically) 2. Unplug the other external monitors Then when switching to the external monitors: 1. Plug in both monitors (ensure it is configured to extend to use all 3 displays so the internal one remains active) 2. Close the laptop lid which disables the internal display In essence, so long as the monitor that is to become the new primary display is active and part of the existing arrangement, icons remain where they were originally when last using that display as the primary before. If the destination monitor is inactive at the time of switching, then suddenly it forgets the arrangement and icons become jumbled. I hope this extra info will be helpful for anyone needing to reproduce this, and for anyone who's perhaps looking for a workaround until the issue can eventually be fixed. :) Reducing priority pending a bug-triage of all the Folder View bugs so we can prioritize what to fix here. There are multiple bugs describing the same or similar behavior for icon positioning on the desktop not being saved. Since this is the oldest I see, I'll use this as the main one. While Bug 433867 appears similar, I'm not sure if the root cause is the same. I'll add it as related but keep it open I tested using the reproduction steps from this report on: 6.1.3 using a laptop and external monitor, Wayland git-master using another laptop and different external monitor, Wayland RESULTS - 6.1.3 At step 5 the icon positioning is changed so they are all on the same row At step 7 they are also alphabetized - git-master If I switch to the external display and choose Keep on the confirmation, icon arrangements are kept. If I switch the external monitor on and the laptop screen off, but let that revert, the previously saved icon configuration is forgotten. The icons are in one row, alphabetized. If I then rearrange the icons on the laptop display and switch to the external display, that display has the icon arrangement from the laptop display and not the one I last saved on it If I switch from the external back to the internal, the icons are alphabetized and in one row again A compiled list of similar bugs from https://bugs.kde.org/show_bug.cgi?id=490891 482875 6 ? Desktop icons reset positions to alphabetical order after a long time from auto shut-off of screen (Wayland) 484806 6 ? Desktop icons rearrange when disconnecting and reconnecting external screen 486528 6 W Desktop icons being mixed sometimes after a reboot 483770 6 ? Icons position on the desktop get scrambled with multimonitor 482211 6 W Desktop icons sorted by name were occasionally unsorted when starting Plasma 476928 5 X Plasma Desktop Icons are regularly scrambled after boot 472137 5 ? Icons are changing positions after some time 471045 5 W Dolphin 24.02.2 - Plasma 6.04 Wayland is not respecting the positions of the icons on the desktop 469276 5 ? Desktop icons reset positions to alphabetical order at random time when fullscreen app is open 467405 5 ? Desktop Icons that were arranged in a custom order become alphabetically sorted automatically after a period of time 466869 5 X Desktop icons reset positions after changing screen setup 453314 5 ? When changing display resolutions, desktop icons should try to keep the same position as much as possible 469062 5 W Moving some icons on primary screen while secondary screen is unplugged resets icon positions on the secondary screen 468546 5 X Desktop icons reset position when switching between laptop and external displays with different resolutions 433867 5 ? Icons on rotated secondary screen reset to default positions or move to random positions on login/wake-from-sleep *** Bug 482875 has been marked as a duplicate of this bug. *** *** Bug 484806 has been marked as a duplicate of this bug. *** *** Bug 486528 has been marked as a duplicate of this bug. *** *** Bug 469276 has been marked as a duplicate of this bug. *** *** Bug 467405 has been marked as a duplicate of this bug. *** *** Bug 466869 has been marked as a duplicate of this bug. *** *** Bug 490891 has been marked as a duplicate of this bug. *** *** Bug 469062 has been marked as a duplicate of this bug. *** *** Bug 476928 has been marked as a duplicate of this bug. *** *** Bug 482211 has been marked as a duplicate of this bug. *** *** Bug 483770 has been marked as a duplicate of this bug. *** *** Bug 487865 has been marked as a duplicate of this bug. *** *** Bug 474370 has been marked as a duplicate of this bug. *** *** Bug 487051 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 492003 *** *** Bug 492003 has been marked as a duplicate of this bug. *** *** Bug 493856 has been marked as a duplicate of this bug. *** Marking confirmed again This might be fixed in Plasma 6.2 by the changes made to fix Bug 493569; I cannot reproduce it with the original steps anymore. If other folks who were or are experiencing the issue could test again with Plasma 6.2.0 when it's released next week, that would be super awesome. Thanks a lot! Note that the first time you switch a screen containing icons to a new resolution, the positions all get reset, which is a separate bug (bug 453314). So that's expected right now. But once you're-arrange them, their positions should be remembered after you switch back to the original resolution again, and then to second one. (also, raising priority to reflect the number of duplicates not) I just upgraded to Plasma 6.2 BETA and Ubuntu Base 24.02 - I will report back if it happens again. My configuration : Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 32767 x 32767 eDP1 connected (normal left inverted right x axis y axis) 1920x1080 60.02 + 59.93 47.99 1680x1050 59.88 1400x1050 59.98 1600x900 60.00 59.95 59.82 1280x1024 76.25 75.02 60.02 1400x900 59.96 59.88 1280x960 60.00 1368x768 60.00 59.88 59.85 1280x800 59.81 59.91 1280x720 59.86 60.00 59.74 1152x768 68.35 1024x768 98.16 74.81 60.00 60.00 1024x576 60.00 59.90 59.82 832x624 74.18 960x540 60.00 59.63 59.82 800x600 186.01 94.87 60.32 56.25 768x576 99.99 79.37 864x486 60.00 59.92 59.57 640x480 116.65 59.94 720x405 59.51 60.00 58.99 640x360 59.84 59.32 60.00 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP3 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 470mm x 300mm 1680x1050 59.88*+ 1280x1024 75.02 60.02 1440x900 74.98 59.90 1280x960 60.00 1280x800 74.93 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.03 70.07 60.00 832x624 74.55 800x600 72.19 75.00 60.32 56.25 720x576 50.00 720x480 60.00 59.94 640x480 75.00 72.81 66.67 60.00 59.94 720x400 70.08 HDMI3 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) The goal : the same on the two screens Bad Solutions tried : xrandr --output eDP1 --mode 1920x1080 --scale 1x1 --output HDMI2 --same-as eDP1 --scale 1.14x1.02 xrandr --output eDP1 --mode 1920x1080 --scale 1x1 --output DP1 --same-as eDP1 --scale 0.87x0.97 xrandr --output DP1 --mode 1680x1020 --output eDP1 -- primary --scale-from 1920x1050 Does not match : Icons are those srambled after Notice : Till 5 years I have on the desktop 20 icons at specific places . During the boot , when Icon will be scrambled they appear firstly a short time at the good place and suddenly they are scrambled at another place in 80% of the cases at the same wrong places. I'm not able to find what is making those changing at that instant in the plasma-org.kde.plasma.desktop-appletsrc file Sorry : bad file copy for my screen configuration (it was that one with laptop closed ) The correct one is : Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 32767 x 32767 eDP1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 340mm x 190mm 1920x1080 60.02 + 59.93 47.99 1680x1050 59.88* 1400x1050 59.98 1600x900 60.00 59.95 59.82 1280x1024 76.25 75.02 60.02 1400x900 59.96 59.88 1280x960 60.00 1368x768 60.00 59.88 59.85 1280x800 59.81 59.91 1280x720 59.86 60.00 59.74 1152x768 68.35 1024x768 98.16 74.81 60.00 60.00 1024x576 60.00 59.90 59.82 832x624 74.18 960x540 60.00 59.63 59.82 800x600 186.01 94.87 60.32 56.25 768x576 99.99 79.37 864x486 60.00 59.92 59.57 640x480 116.65 59.94 720x405 59.51 60.00 58.99 640x360 59.84 59.32 60.00 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP3 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 470mm x 300mm 1680x1050 59.88*+ 1280x1024 75.02 60.02 1440x900 74.98 59.90 1280x960 60.00 1280x800 74.93 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.03 70.07 60.00 832x624 74.55 800x600 72.19 75.00 60.32 56.25 720x576 50.00 720x480 60.00 59.94 640x480 75.00 72.81 66.67 60.00 59.94 720x400 70.08 HDMI3 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) bas > ..... when Icon will be scrambled they appear firstly a short time at the good place and suddenly they are scrambled at another place .....
I see that too when the problem occurs when I logon.
1) KDE logon logo
2) Desktop appear without panels, but with icons in correct place
3) Panels appear, and icons are scrambled, like they are moved down and there are not enough space for them so they are moved
I am on KDE 6.2 Beta now with openSUSE Tumbleweed. The problem is still present for me. The change was merged only a few days ago, so it's not in the 6.2 beta. It'll be in the final release of 6.2.0 though (in five days, eek!) Just updated to KDE 6.2 on openSUSE Tumbleweed and the issue is still present for me even after several set up icons-disconnect-set up icons- connect cycles. But there is progress after more testing. The screen connected to the dock seemed to be good for a while. However when I disconnected the dock, the laptop screen comes up with GOOD icon order, then flickers and the icons become scrambled. After touching the icon positions on the laptop screen, now the dock screen is also scrambled. There should be still some not defined state when switching screens. Sorry for multiply comments. Now I realized, that if I make software switch from external to internal screen (without disconnecting) with different resolution the icons KEEP their position. AND after this physically disconnecting and reconnecting also works. Before the software switch it was almost the same bad, but after a software switch it become stable. This is something which still needs fix, because usually people just disconnect. Nevertheless it seems to be a workaround now. I still got the beta logo on my desktop, but System Settings says 2.0. I have been logging on some times, and so far it works. 1) KDE logon logo 2) Desktop appear without panels, but with icons in correct place 3) Panels appear, and icons are scrambled 4) Icons move back 19 seconds video of the icons scrambling after logon, the difference is that [for now] they return to their proper positions: https://rpc-scandinavia.dk/api/webpage/GetFileResource/Public/2024-10-09%20KDE%20Neon%20Login.mp4 Originally, I opened another bug (https://bugs.kde.org/show_bug.cgi?id=482875), but it was merged with this one. So I'm posting my comment here, hoping I'm not making a mistake. The bug I reported in March/2024 is still present, even with Plasma version 6.2. Here's a summary of what's happening. STEPS TO REPRODUCE 1. Place your icons in your preferred position 2. Into Plasma Settings, configure your Power Management with "when inactive: " "Sleep" "After 10 minutes" 3. Configure your icons order Desktop->Icons->SortBy->Not Ordered 4. Leave the PC alone for 30-40 minutes OBSERVED RESULT 1. The screen goes off after 10 minutes 2. after 20-30 minutes further, move the mouse, unlock the PC and you will discover that the position of the icons has changed in a completely randomly way, often sort alphabetically from left to right. Please ignore my comment number 36, 2024-10-10 08:08:28 UTC. After writing it, I restarted the machine and rearranged the icons on the desktop as I like to see them Since then, I have been away from the PC for over 40 minutes on 2 occasions. In both cases the system went to sleep but, when it woke up, the icons were still all in their place. I don't understand why, before writing my previous comment, they didn't stay where I had put them. I will do further investigations. After 3 days of testing, I can say that the bug I reported (https://bugs.kde.org/show_bug.cgi?id=482875), then combined with this bug, has been definitively fixed. The issue is "SOLVED" for me. I can definitely say that the bug was not fixed in 6.2.0. It still happens to me with X11 + NVIDIA proprietary drivers. At this point, I think we should call *this* ticket fixed, and anyone still experiencing issues should open a new one. It's possible that one issue was fixed which helped many people, but others are still affected by a different issue. We will need to investigate them separately. Thanks everyone! And yes: if your bug report was marked as a duplicate of this one, but it's not fixed in Plasma 6.2, please do re-open it with a comment indicating as such. Thanks! |