Bug 475142 - Lock screen does not blur background image if it is activated twice in a row
Summary: Lock screen does not blur background image if it is activated twice in a row
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: plasmashell
Classification: Plasma
Component: Theme - Breeze (show other bugs)
Version: 5.27.4
Platform: Ubuntu Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 18:34 UTC by elydgolden
Modified: 2024-09-11 11:26 UTC (History)
4 users (show)

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


Attachments
expected behaviour on double locking as well (3.10 MB, video/x-matroska)
2023-10-12 21:53 UTC, elydgolden
Details
actual double locking behaviour (3.02 MB, video/x-matroska)
2023-10-12 21:53 UTC, elydgolden
Details
Screen locking settings (693.37 KB, image/png)
2023-10-17 18:45 UTC, elydgolden
Details
Sleep settings (682.23 KB, image/png)
2023-10-17 18:45 UTC, elydgolden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description elydgolden 2023-10-02 18:34:12 UTC
SUMMARY
***
Pretty much the title. If the screen is locked twice in a row, the background does not blur when attempting to enter the user password to unlock the screen. This is hard to replicate without manually locking the screen twice in the command line, but it occurs when the "Lock screen automatically" option is enabled in settings both after a fixed time and when the computer goes to sleep, and the time intervals for automatic sleep and screen locking and the same.
***

STEPS TO REPRODUCE
1. Open Settings > Workspace Behavior > Screen Locking
2. Turn Automatic Screen Locking on, both for a specific time interval (say 15 minutes) and "after waking from sleep". Make sure that the computer is set to automatically go to sleep after the exact same interval of time.
3. Wait for the computer to fall asleep

OBSERVED RESULT
The lock screen does not blur the background when entering a password

EXPECTED RESULT
The lock screen blurs the background when entering a password as normal

ADDITIONAL INFORMATION
This bug can also be replicated with commands. Running `loginctl lock-session` in a terminal window locks the screen as normal, but running `loginctl lock-session ; loginctl lock-session` twice in a row causes the buggy behaviour. Also note that `loginctl lock-session ; sleep 1 ; loginctl lock-session` locks the screen as normal, but `loginctl lock-session ; sleep 0.01 ; loginctl lock-session`  causes the buggy behaviour, so there must be some time window in which locking the screen in quick succession causes the buggy behaviour.
Comment 1 Nate Graham 2023-10-12 18:36:30 UTC
I'm not able to reproduce this in Plasma 6 right now, but it seems like it's a bit fiddly to make happen; can you please attach a screen recording or a phone video that shows the issue happening?
Comment 2 elydgolden 2023-10-12 21:53:03 UTC
Created attachment 162261 [details]
expected behaviour on double locking as well
Comment 3 elydgolden 2023-10-12 21:53:58 UTC
Created attachment 162262 [details]
actual double locking behaviour
Comment 4 elydgolden 2023-10-12 21:54:48 UTC
(In reply to Nate Graham from comment #1)
> I'm not able to reproduce this in Plasma 6 right now, but it seems like it's
> a bit fiddly to make happen; can you please attach a screen recording or a
> phone video that shows the issue happening?

Done. Note that I tested this in DistroSea's Kubuntu 23.04
Comment 5 Nate Graham 2023-10-13 18:59:35 UTC
Thanks. Does it work as expected if you run loginctl lock-session twice, one at a time, instead of chaining them together?
Comment 6 elydgolden 2023-10-14 13:33:34 UTC
(In reply to Nate Graham from comment #5)
> Thanks. Does it work as expected if you run loginctl lock-session twice, one
> at a time, instead of chaining them together?

What do you mean? If I run loginctl lock-session once only, then the screen locks so I can't run loginctl again. But if you mean to say running it once, unlocking the screen, and then running it again, then yes in that case the behaviour is as expected.
Comment 7 Nate Graham 2023-10-16 17:00:16 UTC
Thanks. In that case I don't think there's a bug here, since it works in normal, intended, supported usage.
Comment 8 elydgolden 2023-10-17 05:44:43 UTC
(In reply to Nate Graham from comment #7)
> Thanks. In that case I don't think there's a bug here, since it works in
> normal, intended, supported usage.

Well like I said it occurs when the lock screen settings are set to auto lock the screen after a certain period of time (say n minutes) and also on sleep, and the power settings are also set to go to sleep after n minutes
Comment 9 Nate Graham 2023-10-17 17:23:07 UTC
Hmm, ok. I can't reproduce the issue when the time intervals for automatic sleep and screen locking and the same.
Comment 10 elydgolden 2023-10-17 17:32:44 UTC
(In reply to Nate Graham from comment #9)
> Hmm, ok. I can't reproduce the issue when the time intervals for automatic
> sleep and screen locking and the same.

Do you have it set to lock the screen "upon waking from sleep"? (This actually locks the screen before going to sleep)
Comment 11 Nate Graham 2023-10-17 17:38:23 UTC
Yes. In fact that's the default setting for it.
Comment 12 elydgolden 2023-10-17 18:45:24 UTC
Created attachment 162381 [details]
Screen locking settings
Comment 13 elydgolden 2023-10-17 18:45:45 UTC
Created attachment 162382 [details]
Sleep settings
Comment 14 elydgolden 2023-10-17 18:46:44 UTC
(In reply to Nate Graham from comment #11)
> Yes. In fact that's the default setting for it.

See the attached files. The bug occurs when both settings are checked in the screen locking settings, and the computer is set to go to sleep in the same amount of time
Comment 15 elydgolden 2024-07-05 22:24:40 UTC
(In reply to Nate Graham from comment #1)
> I'm not able to reproduce this in Plasma 6 right now, but it seems like it's
> a bit fiddly to make happen; can you please attach a screen recording or a
> phone video that shows the issue happening?

Update: I can confirm that this still happens on Plasma 6.1.2, currently running openSUSE Tumbleweed. It happens both on X11 and Wayland. I also noticed that my .face icon was not properly cropped into a circle as well. Running `loginctl lock-session ; loginctl lock-session` will simulate the behaviour as mentioned previously. How can I record the behaviour as it occurs naturally, as the computer will suspend (preventing recording)?
Comment 16 Justin Zobel 2024-09-11 11:26:16 UTC
Can you please record it using a smartphone camera and upload so we can see the exact sequence of events?