Bug 487968

Summary: Custom panel menu sizes reset to default sizes after external monitor turned off or goes to sleep
Product: [Plasma] plasmashell Reporter: Will Ng <conspibro>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dmitry, jared, materka, nate, niccolo.venerandi, yule2000
Priority: NOR Keywords: multiscreen, wayland
Version: 6.0.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Before and after of App Launcher menu
Before and after of System Tray menu

Description Will Ng 2024-06-03 15:17:21 UTC
Created attachment 170094 [details]
Before and after of App Launcher menu

Drop-down menu sizes keep resetting after locking for a while (>10 mins ?) or upon restart. 

Started noticing this behaviour after update to Plasma 6.0.5; did not happen in versions prior. Recently updated to 6.0.5.1, and still having this issue.

OS: EndeavourOS (x64)
Plasma ver (current): 6.0.5.1
Comment 1 Will Ng 2024-06-03 15:17:51 UTC
Created attachment 170095 [details]
Before and after of System Tray menu
Comment 2 Nate Graham 2024-06-11 20:25:42 UTC
I suspect this is related to Bug 481113. Are you not using Systemd at all, or not using Plasma's systemd launch integration?
Comment 3 Will Ng 2024-06-11 22:29:51 UTC
(In reply to Nate Graham from comment #2)
> I suspect this is related to Bug 481113. Are you not using Systemd at all,
> or not using Plasma's systemd launch integration?

I am using systemd.

How may I check the latter though? 

Thanks.
Comment 4 Nate Graham 2024-06-12 15:48:43 UTC
Paste the contents of /etc/xdg/startkderc or ~/.config/startkderc (or both, if they both exist) and let's have a look!
Comment 5 Will Ng 2024-06-12 16:06:20 UTC
(In reply to Nate Graham from comment #4)
> Paste the contents of /etc/xdg/startkderc or ~/.config/startkderc (or both,
> if they both exist) and let's have a look!

I don't have to have either of those files here.
Comment 6 Will Ng 2024-06-12 16:06:43 UTC
(In reply to Will Ng from comment #5)
> (In reply to Nate Graham from comment #4)
> > Paste the contents of /etc/xdg/startkderc or ~/.config/startkderc (or both,
> > if they both exist) and let's have a look!
> 
> I don't have to have either of those files here.

I don't seem* to have either of those files here.
Comment 7 Nate Graham 2024-06-12 16:13:32 UTC
Ok, then you are indeed using the systemd integration feature, since it's on by default. In that case my theory goes out the window. :o

Does it happen on X11, or Wayland, or both?
Comment 8 Will Ng 2024-06-12 17:05:57 UTC
(In reply to Nate Graham from comment #7)
> Ok, then you are indeed using the systemd integration feature, since it's on
> by default. In that case my theory goes out the window. :o
> 
> Does it happen on X11, or Wayland, or both?

I'm on Wayland so far, have not tested on X11 yet. I'll try it out later.
Comment 9 Will Ng 2024-06-12 20:26:59 UTC
(In reply to Nate Graham from comment #7)
> Ok, then you are indeed using the systemd integration feature, since it's on
> by default. In that case my theory goes out the window. :o
> 
> Does it happen on X11, or Wayland, or both?

Just tried on X11, issue did not occur after repeated periods of testing.
Comment 10 Nate Graham 2024-06-13 15:00:43 UTC
Thanks. Some more questions:
1. It affects all Panel popups that you try, right?
2. Are you seeing that the popups are being reset to their *default* sizes* or just their *previous* sizes which somehow got saved in the past?
3. Does this happen in a new clean user account on the same machine?
Comment 11 Will Ng 2024-06-14 00:58:35 UTC
(In reply to Nate Graham from comment #10)
> Thanks. Some more questions:
> 1. It affects all Panel popups that you try, right?
> 2. Are you seeing that the popups are being reset to their *default* sizes*
> or just their *previous* sizes which somehow got saved in the past?
> 3. Does this happen in a new clean user account on the same machine?

1. Yes
2. Default size; they were never set to those sizes by me before
--
3. I will try it later and report back.
Comment 12 Will Ng 2024-06-14 19:20:25 UTC
(In reply to Nate Graham from comment #10)
> 3. Does this happen in a new clean user account on the same machine?

Just done testing it. 

Exact same issues on the new user account, all stock theming etc.

I set it and it'd persist after logout and shutdown. But locking it past 15(?) minutes, upon logging back in from lockscreen, I'd get an additional Unlock button and also the panel item sizes are all reset.
Comment 13 Nate Graham 2024-06-14 21:20:20 UTC
Strange. Are you using Systemd and the Systemd Plasma launch integration?
Comment 14 Will Ng 2024-06-14 23:43:54 UTC
(In reply to Nate Graham from comment #13)
> Strange. Are you using Systemd and the Systemd Plasma launch integration?

Yes (ref: comment 7)
Comment 15 Nate Graham 2024-06-17 16:37:18 UTC
Looks like I'm going senile already
Comment 16 veggero 2024-06-20 15:31:36 UTC
> , I'd get an additional Unlock button

What do you mean exactly by additional Unlock button?
Comment 17 Will Ng 2024-06-21 00:00:09 UTC
(In reply to veggero from comment #16)
> > , I'd get an additional Unlock button
> 
> What do you mean exactly by additional Unlock button?

On the lockscreen (after being locked >15 mins), after entering my password, it should log me straight in. Instead, there is a Unlock button after that I have to click/'Enter' before it logs me back into my session.
Comment 18 Will Ng 2024-06-21 15:53:16 UTC
(In reply to veggero from comment #16)
> > , I'd get an additional Unlock button
> 
> What do you mean exactly by additional Unlock button?

Follow up to my prior reply
Ref: https://ibb.co/8MmXrgN
Comment 19 Nate Graham 2024-06-21 18:43:57 UTC
How strange. I am at a loss to explain what could be causing this.

Can you upgrade to Plasma 6.1 and see if it's still happening there?
Comment 20 Will Ng 2024-06-22 01:11:59 UTC
(In reply to Nate Graham from comment #19)
> How strange. I am at a loss to explain what could be causing this.
> 
> Can you upgrade to Plasma 6.1 and see if it's still happening there?

Will do so in a few days for my weekly updates and report back
Comment 21 Will Ng 2024-06-24 19:23:35 UTC
(In reply to Nate Graham from comment #19)
> How strange. I am at a loss to explain what could be causing this.
> 
> Can you upgrade to Plasma 6.1 and see if it's still happening there?

Just upgraded to 6.1; still seeing this issue (together with the Unlock button)

Is there some kind of log that covers lockscreen and/or panel sizes that perhaps I can pull up?
Comment 22 Nate Graham 2024-06-26 19:59:22 UTC
If you disable screen locking (just screen locking), does it stop happening?
Comment 23 Will Ng 2024-06-27 00:13:24 UTC
(In reply to Nate Graham from comment #22)
> If you disable screen locking (just screen locking), does it stop happening?

'Lock screen automatically' is already set to 'Never'
Comment 24 Nate Graham 2024-06-27 16:12:49 UTC
So you are manually locking the screen, then? Like, by clicking "Lock" somewhere or hitting Meta+L?
Comment 25 Will Ng 2024-06-27 18:50:40 UTC
(In reply to Nate Graham from comment #24)
> So you are manually locking the screen, then? Like, by clicking "Lock"
> somewhere or hitting Meta+L?

That is correct.
Comment 26 Nate Graham 2024-07-02 17:39:48 UTC
Thanks. What kind of GPU are you using?
Comment 27 Will Ng 2024-07-02 18:22:53 UTC
(In reply to Nate Graham from comment #26)
> Thanks. What kind of GPU are you using?

I'm running a hybrid setup:
Main: AMD Radeon 680M
Discrete, but not in use: RTX 3070 Ti Laptop
Comment 28 Timothy B 2024-07-09 14:48:53 UTC
I was able to reproduce this same exact behavior by putting the monitor to sleep (automatically or using a shortcut or the power button) and immediately waking it up. It happens regardless of the lock screen showing up at wakeup. Because of this, I've disabled monitor sleep settings until this gets resolved.

Unlike the original reporter, I use a desktop with a dedicated GPU and only one monitor plugged in.

On a sidenote, I was affected by bug #480026 that prevented my monitor to stay in sleep mode, so I discovered this behavior when I successfully tested the fix for the mentioned bug in 6.0.5.

Operating System: EndeavourOS
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 6750 XT
Comment 29 Will Ng 2024-07-10 04:24:28 UTC
(In reply to Timothy B from comment #28)
> I was able to reproduce this same exact behavior by putting the monitor to
> sleep (automatically or using a shortcut or the power button) and
> immediately waking it up. It happens regardless of the lock screen showing
> up at wakeup. 

Interesting... It happens on my system regardless of whether my monitor is left on throughout the entire period of being on lockscreen, or manually switched off. I've not turned on any sleep settings for my setup.

Thought to add on more detail on my display setup:
- Laptop's internal display set to 'Disabled'
- External monitor connected via DP Alt (USB-C to DP)
So essentially, only displaying through the external monitor upon logging in.
Comment 30 dmitry 2024-07-11 20:46:34 UTC
I have exactly same issue with Application Launcher resetting to default size after monitor wakes up from sleep. Plasma 6.1.2 on Wayland.
Comment 31 Will Ng 2024-07-13 08:26:28 UTC
On further testing, I concur with the other users.

All I had to do is to lock session, turn off my monitor, turn it back on after a short moment, log back in and the menu sizes are all reset.

The 'unlock button' issue does not seem to have a bearing on this bug at all. Neither does time in between locking and unlocking.
Comment 32 Will Ng 2024-07-13 08:30:39 UTC
(In reply to Will Ng from comment #31)
> On further testing, I concur with the other users.
> 
> All I had to do is to lock session, turn off my monitor, turn it back on
> after a short moment, log back in and the menu sizes are all reset.
> 
> The 'unlock button' issue does not seem to have a bearing on this bug at
> all. Neither does time in between locking and unlocking.

To add on further:

Bug occurs even without locking. I can reproduce it by just turning off my monitor while logged into my session, then turning it back on, sizes reset.
Comment 33 Will Ng 2024-07-13 08:35:36 UTC
Addendum #2:

I'm not able to reproduce this bug with the internal (laptop) display by turning it off and on (i.e. closing and opening the lid). Menu sizes remain unchanged.
Comment 34 Nate Graham 2024-07-24 17:24:52 UTC
What kind of monitor is it, and how is it connected? I can't reproduce this using an HDMI monitor.
Comment 35 dmitry 2024-07-24 18:35:47 UTC
I have this issue with external USB-C (Thunderbolt) monitor connected to Lenovo Thinkpad laptop, always reproducible. As soon as the external monitor goes to power save mode, the issue is manifested.
Comment 36 Will Ng 2024-07-26 15:01:07 UTC
(In reply to Nate Graham from comment #34)
> What kind of monitor is it, and how is it connected? I can't reproduce this
> using an HDMI monitor.

27-inch 1440p@60Hz, IPS LCD
Connected via DisplayPort
Comment 37 Nate Graham 2024-07-31 16:29:09 UTC

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