[BUG] Full desktop briefly visible while locked with lockscreen transitions enabled
Submission checklist
- [x] I have searched existing issues and confirmed this is not a duplicate.
- [x] I am using the latest available version of Noctalia.
Bug description
After opening my laptop lid the whole desktop is briefly visible for about half a second before it shows the lock screen.
Steps to reproduce
- Enable lockscreen transitions
- Close laptop lid, wait a few secs until it locks and the screen turns off
- Open the laptop lid again
- Full desktop is visible for a brief moment
Expected behavior
Never show the desktop in a locked state.
Actual behavior
Desktop visible after laptop lid opens.
Logs / error output
Noctalia version
v5.2.0
Compositor
Niri
Distribution
Other
Environment information
Installation method: moss, aerynOS volatile
Additional context
No response
Worth noting that this is a regression and doesn't happen on v5.1.0
I'm having the same issue with noctalia + umbriel.
Deselecting all the transition effects in the settings causes this issue to stop, but it also seems to make the lock applying become inconsistent. So with them all selected, if I close my laptop lid, it inconsistently locks the laptop, so sometimes when I open it there's no lockscreen at all, and sometimes when I open it there's the expected lockscreen with no flash of the desktop.
edit: testing more, the inconsistency seems to be if I try to open and close the laptop relatively quickly, right after it's been opened/unlocked, and in that case it won't lock properly.
Another issue that I think might be related is that often after unlocking, the screen just freezes for 5 to 10 seconds on the lockscreen before loading the desktop.
Same story started after 5.2.0 + Niri on CachyOS.
edit: testing more, the inconsistency seems to be if I try to open and close the laptop relatively quickly, right after it's been opened/unlocked, and in that case it won't lock properly.
This should be resolved in the latest update to PR #4618. Feel free to test it and let me know if it still happens.
Another issue that I think might be related is that often after unlocking, the screen just freezes for 5 to 10 seconds on the lockscreen before loading the desktop.
If it happens every time you authenticate with a password, it could be caused by PAM waiting on biometric authentication (like Howdy) before timing out and falling back to password auth.
Confirmed on RakuOS (Fedora 44 immutable base) with Niri + Noctalia v5.2.0. Symptoms: opening laptop lid after suspend shows the full desktop visible for ~1-2 seconds before the lockscreen appears - regression from v5.1.0. Issue is reproducible with lockscreen transitions enabled. The fix in PR #4618 (skip enter transition on lock-and-suspend/prepare-for-sleep) addresses this exact case.
The transitions are currently very slow, which might be what is causing the race to happen. Locking freezes the screen for a seconds before and after unlock. #4618 doesn't fix the root cause regression from v5.1.
The issue seems to have something to do with suspend/wake up. I switched from suspend to only lock on lid close and now the desktop never shows while locked.
Yes, it seems as if it doesn't inhibit long enough for the lock screen transition to complete before suspend
I'm on Arch + Niri and I tested on main with PR #4618 and I can confirm it fixed the issue for me, i.e. I no longer see my desktop when resuming from suspend (or hibernate) on lid-open after it is triggered with lid-close.
I disabled all animations, but I still see the issue sporadically. So, the session only locks after the computer resumes and the screen is unlocked for 1-2 seconds.
@polycatenane did you disable the lock screen transitions? I believe it's separate from the animations config. I applied this change a week ago and haven't had this issue since:
[lockscreen]
transition = []
Yes, I have this config set. Without that line, this bug happens reproducibly after every resume. With it set, the bug still happens but very rarely.
People have reported similar issues with swaylock. I wonder if there's a common cause (or solution):
- https://github.com/swaywm/swaylock/issues/472
- https://github.com/swaywm/swaylock/issues/435
- https://github.com/swaywm/swaylock/issues/118
- https://github.com/swaywm/swaylock/issues/99
It could be an issue with specific compositors; personally I'm on Niri
Confirmed fixed on latest release.