Bug 452075 - Wallpaper reset to default and all widgets disappear after new start
Summary: Wallpaper reset to default and all widgets disappear after new start
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (show other bugs)
Version: 5.24.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-03-30 12:28 UTC by Syiad
Modified: 2023-06-16 21:47 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Syiad 2022-03-30 12:28:36 UTC
SUMMARY
***
Every time I start or reboot, I am presented with the default wallpaper and on my primary display and all widgets are gone. This does not happen, if I have manually restored wallpaper and widgets and then only restart the plasmashell. However, it's all back to default on the next start or reboot.
***


STEPS TO REPRODUCE
1. Start or reboot computer
2. 
3. 

OBSERVED RESULT
Default wallpaper on primary and secondary display.
No desktop widgets
Panel as last customised

EXPECTED RESULT
My custom wallpaper on primary display and default wallpaper on secondary display
Desktop widgets on primary display, as set up before shutdown or reboot
Panel as last customised


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
(available in About System)
KDE Plasma Version: 5.24.4 (Problem also present in 5.24.3)
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I have a two displays. The primary (laptop) is HiDPI with 200% scaling, the secondary is to the left at 100%.
Comment 1 galder 2022-03-30 16:20:42 UTC
Hello, 
Are you in  x11 or Wayland?
Comment 2 Syiad 2022-03-30 17:46:15 UTC
Sorry, forgot to mention: Wayland.

It used to work OK up until 5.24.2, but then the two screens always got messed up (renumbered). This problem has been fixed with 5.24.3, but now the primary screen keeps losing its wallpaper and widget settings.
Comment 3 galder 2022-03-30 20:14:48 UTC
which gpu driver are you using?

looping Nate
Comment 4 Syiad 2022-03-30 20:26:52 UTC
The latest Nvidia proprietary driver is installed, but normally the graphics are handled by the default Intel driver.
Comment 5 galder 2022-03-30 20:59:59 UTC
I have similar setup. Nvidia in Kubuntu 21.10 plasma 5.24.4
The only difference is that my laptop  has a normal screen and an
 external monitor Is the primary. The external monitor at the left and laptop at the right.
My background doesn't disappear and my single panel always appears in the primary screen.
Comment 6 galder 2022-03-31 13:28:28 UTC
possible duplicate of 
https://bugs.kde.org/show_bug.cgi?id=427861
Comment 7 Syiad 2022-03-31 13:38:52 UTC
(In reply to galder from comment #6)
> possible duplicate of 
> https://bugs.kde.org/show_bug.cgi?id=427861

Yes, looks pretty much so. Too bad this other bug has been running for such a long time without a fix. :-(

*** This bug has been marked as a duplicate of bug 427861 ***
Comment 8 galder 2022-03-31 14:07:20 UTC
(In reply to Syiad from comment #2)
> Sorry, forgot to mention: Wayland.
> 
> It used to work OK up until 5.24.2, but then the two screens always got
> messed up (renumbered). This problem has been fixed with 5.24.3, but now the
> primary screen keeps losing its wallpaper and widget settings.

I'm confuse with this statement. 
5.24.2 broke, 5.24.3 was fixed and finally 5.24.4 is broken again?
Comment 9 Syiad 2022-03-31 14:20:42 UTC
(In reply to galder from comment #8)
> (In reply to Syiad from comment #2)
> > Sorry, forgot to mention: Wayland.
> > 
> > It used to work OK up until 5.24.2, but then the two screens always got
> > messed up (renumbered). This problem has been fixed with 5.24.3, but now the
> > primary screen keeps losing its wallpaper and widget settings.
> 
> I'm confuse with this statement. 
> 5.24.2 broke, 5.24.3 was fixed and finally 5.24.4 is broken again?

Err, no. 5.24.2 had a different problem. The two displays got messed up all the time, because they were being renumbered in a config file. That problem got fixed with 5.24.3, but then this new problem described here first occurred with 5.24.3. To sum it up: The problem described here appeared with 5.24.3 and is also present with 5.24.4.
Comment 10 galder 2022-03-31 14:46:27 UTC
ok, so this regression started in 5.24.3 and still present in 5.24.4

Is important not to mix issues in tickets, so we don't confuse developers.

I'm not sure if this is a duplicate because you said it was working in 5.24.2.

did you play reassigning the screens. like activating and deactivating to force to regenerate config files?
Comment 11 Syiad 2022-03-31 15:01:56 UTC
Yes it was working in 5.24.2 and before. However, I may just have been lucky...

I haven't tried de-activating/activating screens to see if that helps, because I'm happy that my screen setup now works the way I want, so don't want to mess with a running system. However, I may try starting the laptop undocked to see if the problem also appears with only the onboard display. Restarting only the plasmashell does not fix the problem; I've tried that several time without success.
Comment 12 Syiad 2022-03-31 16:01:03 UTC
The selected wallpaper and the widgets are all as they should be, when starting the laptop undocked.

When I then dock it, the primary display gets messed up: What was on the entire primary display before gets moved to the top left quarter of the primary display as the secondary display starts. I suppose, this is because the secondary display is at 100% scale and that is where the (top left corner) origin of the combined displays sits afterwards. The primary display (to the right of the secondary) is set to 200% scale.
This messed up primary display can be fixed by restarting the plasmashell with 'kquitapp5 plasmashell && kstart5 plasmashell &> /dev/null &'

When I reboot again with the dock connected, its back to default wallpaper and no widgets.
Comment 13 galder 2022-03-31 18:40:54 UTC
sorry when you say"laptop docked", are you saying
that you are connecting the external monitor to the laptop with 
a usb dock station? If yes, whats happens if you connect the 
monitor to a hdmi?
Comment 14 Syiad 2022-04-01 09:03:59 UTC
Yes, the external monitor is connected via DisplayPort to a Dell D6000 docking station. The docking station connects using the DisplayLink USB 5.5.0-59.151 driver.

If I connect the external monitor directly via HDMI several things happen:
1. It is correctly identified by its name
2. [ScreenConnectors] in plasmashellrc now has a new entry "2=DP-3". The other entries are "0=eDP-1", the primary display and "1=DVI-I-1" the external monitor via docking station.
3. The resolution of the external monitor is limited to Full HD (1920 x 1080) or lower, while the actual max capability of the monitor is 2560 x 1440. The max resolution is not on offer in the KDE screen settings. This makes it the same height as the primary, which is 3840 x 2160 @ 200%
4. The wallpaper and widgets on the primary are now still as set up after a restart with the second monitor connected via HDMI
5. The external monitor was placed to the left of the primary when I hotplugged it via HDMI. After restart (still connected via HDMI) it is to the right of the primary.

So a workaround may be to start the laptop undocked, then connect the docking station with the external monitor connected via DisplayPort (to get the full resolution), then restart plasmashell to fix the primary screen contents being moved to the top left quarter of the primary screen.
Comment 15 galder 2022-04-01 11:45:48 UTC
looping Aleix,
maybe he knows what was change in 5.24.3

Regards
Comment 16 galder 2022-04-02 10:38:10 UTC
Just a thought,
Could be it that for some reason when the screen is connected with a dock, plasma is recognizing it with 
a diferent id and that's why in each session can't apply the existing settings?
It would be good to check if the screens ids are changing.
regards
Comment 17 Syiad 2022-04-02 13:22:12 UTC
No, the screen connectors in plasmashellrc are unchanged:

    [ScreenConnectors]
    0=eDP-1
    1=DVI-I-1
    2=DP-3

where 0 is the built-in primary display, 1 is the external monitor connected via dock (DisplayLink), and 2 is the same external monitor directly connected via HDMI for trial purposes. Obviously the external monitor is 1 XOR 2.

This problem here first appeared with 5.24.3, which has the fix for bug 427278 backported. It may be pure coincidence or might be related to that fix.
Comment 18 galder 2022-04-02 14:46:20 UTC
So they asked you to open a new issue.
Im going to change the state to reported again and we wait for their answer.
Comment 19 BingMyBong 2022-08-23 13:42:27 UTC
This has been happening since "safe landing" has became the "default" wallpaper on my machine.  It is intermittent.
I'm using X11.
I've now changed the wallpaper to one i prefer a few times and every now and again it gets reset to "safe landing".


opensuse:tumbleweed:20220820
Qt: 5.15.5 KDE Frameworks: 5.97.0 - KDE Plasma:  5.25.4 - kwin 5.25.4
kmail2 5.21.0 (22.08.0) - akonadiserver 5.21.0 (22.08.0) - Kernel:  5.19.2-1-default  - xf86-video-nouveau:  1.0.17
Comment 20 Jerzy Witwinowski 2022-10-05 18:53:30 UTC
I have a similar problem on Kubuntu 22.04 (but I'm using X11, not Wayland) - every now and then the wallpaper gets restored to the default after a reboot... I'm storing my wallpaper in /home/myusername/ and of course it can be brought back by four mouse clicks, but yet it starts to annoy me...
Comment 21 Hari 2023-01-01 07:50:01 UTC
Just started happening to me after switching my laptop to wayland at login on Kubuntu 22.10.
Comment 22 Nate Graham 2023-01-01 15:35:21 UTC
This is almost certain to have been fixed for Plasma 5.27, where we rewrite how multimonitor setups asre handled in Plasma to hugely increase their robustness against this kind of situation.
Comment 23 Avery.Em@protonmail.com 2023-02-01 10:13:11 UTC
I'm experiencing this issue with Kubuntu 22.04 while using the open source AMD drivers.

(In reply to Nate Graham from comment #22)
> This is almost certain to have been fixed for Plasma 5.27, where we rewrite
> how multimonitor setups asre handled in Plasma to hugely increase their
> robustness against this kind of situation.

Wonder if there's a chance that these fixes will be backported to 5.24? We won't be seeing a new LTS update for more than a year.
Comment 24 BingMyBong 2023-02-02 07:41:13 UTC
On Wednesday, 1 February 2023 10:13:11 GMT Avery.Em@protonmail.com wrote:
> https://bugs.kde.org/show_bug.cgi?id=452075
> 
> Avery.Em@protonmail.com <Avery.Em@protonmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> CC|                            |Avery.Em@protonmail.com
> 
> --- Comment #23 from Avery.Em@protonmail.com <Avery.Em@protonmail.com> ---
> I'm experiencing this issue with Kubuntu 22.04 while using the open source
> AMD drivers.

ot

Not sure why this was sent to me directly.  Its not happening to me anymore.

> (In reply to Nate Graham from comment #22)
> 
> > This is almost certain to have been fixed for Plasma 5.27, where we
> > rewrite
> > how multimonitor setups asre handled in Plasma to hugely increase their
> > robustness against this kind of situation.
> 
> Wonder if there's a chance that these fixes will be backported to 5.24? We
> won't be seeing a new LTS update for more than a year.


opensuse:tumbleweed:20230130
Qt: 5.15.8 KDE Frameworks: 5.102.0 - KDE Plasma:  5.26.5 - kwin 5.26.5
kmail2 5.22.1 (22.12.1) - akonadiserver 5.22.1 (22.12.1) - Kernel:  6.1.8-1-
default  - kernel-firmware-radeon  20230110
Comment 25 Nate Graham 2023-02-05 19:52:18 UTC
Unfortunately the changes were enormous and invasive, and requires alterations to multiple layers of the stack. They aren't safely backportable.

That said, Plasma 5.27 is going to be a new LTS release, so it might be feasible for the Kubuntu packagers to ship it as an update for users of the Kubuntu 22.04 release. That would be up to them, of course.
Comment 26 Dennis 2023-06-16 21:47:09 UTC
Hey, I have to chime in since I'm experiencing similar behavior since around 2-4 weeks on both, my work and my private machines.
I'm on X however with Plasma 5.27.5. I'm noticing that my wallpaper and my panel configuration reset on every reboot. It's indeed very annoying.