noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[BUG] Full desktop briefly visible while locked with lockscreen transitions enabled

Open ChrHorn opened this issue 2 months ago • 15 comments

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

  1. Enable lockscreen transitions
  2. Close laptop lid, wait a few secs until it locks and the screen turns off
  3. Open the laptop lid again
  4. 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

ChrHorn avatar Sep 28 '26 11:09 ChrHorn

Worth noting that this is a regression and doesn't happen on v5.1.0

BBaoVanC avatar Sep 29 '26 00:09 BBaoVanC

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.

lyra-seren avatar Sep 29 '26 09:09 lyra-seren

Same story started after 5.2.0 + Niri on CachyOS.

f0xdr0 avatar Sep 29 '26 11:09 f0xdr0

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.

Aitor42 avatar Sep 30 '26 20:09 Aitor42

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.

etrigan63 avatar Oct 01 '26 13:10 etrigan63

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.

polycatenane avatar Oct 05 '26 02:10 polycatenane

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.

ChrHorn avatar Oct 05 '26 04:10 ChrHorn

Yes, it seems as if it doesn't inhibit long enough for the lock screen transition to complete before suspend

BBaoVanC avatar Oct 05 '26 06:10 BBaoVanC

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.

TheSkyentist avatar Oct 06 '26 15:10 TheSkyentist

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 avatar Oct 06 '26 23:10 polycatenane

@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 = []

BBaoVanC avatar Oct 07 '26 00:10 BBaoVanC

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.

polycatenane avatar Oct 07 '26 03:10 polycatenane

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

ismay-tue avatar Oct 07 '26 06:10 ismay-tue

It could be an issue with specific compositors; personally I'm on Niri

BBaoVanC avatar Oct 07 '26 21:10 BBaoVanC

Confirmed fixed on latest release.

ChrHorn avatar Oct 16 '26 13:10 ChrHorn