Gnome lock screen loads twice

Is it normal that the lock screen in Zorin 18.1 Core loads twice until it is shown? When I have enabled automatic screen lock and screen lock on suspend and wake the computer after suspend, I first see a screen with a big clock, then the lock screen (both very short), then the screen goes blank, and then the lock screen appears again and I can enter the password.

It is not very pleasant. I disabled all third party gnome extensions, but it made no difference.

I'm using gdm. Lightdm is shown as loaded, but inactive (dead). I'm not sure if that plays a role.

I have encountered exactly what you describe and I agree that it is not normal. Not uncommon, either.

I found it a mild annoyance, so have not done any troubleshooting on it but...
Off hand guess, I would speculate that a graphics load occurs, at that time during the moment you are reaching the desktop, causing that brief flicker.
Proprietary drivers loading can cause a modeset flicker.
Wayland or Xorg can make a difference, as can Monitors that need to re-sync at the login screen. Troubleshooting could be a bit of trial and error.

LightDM cannot interfere with that. This is similar to having Windows on a separate drive - they are not interacting. Only with the DM, they cannot, even if you try to tell them to.

2 Likes

Hm, I have this problem since a short time and didn't notice it before.
It seems to be related to Xorg. Recently I switched from Wayland to Xorg.
I changed it back to Wayland, and there the lockscreen is only loaded once. :grinning_face:

Thank you for the idea!

2 Likes

Ohh nuts... I was wrong again!

No, no, I could just exclude the other mentioned things and trying it with Wayland just didn't came across my mind. Usually, it's Wayland that causes many problems and because of this I thought, I switch to Xorg.

Darn... While trying to figure out what caused the problem, I also uninstalled gdm-settings. Now I've lost the default Adwaita gnome shell theme from gdm update-alternatives, and I can't seem to find a way to restore it.

That is my second attempt at humor that failed today.
But, I won't give up. I am not a quitter.

One of these days, I will inject pure comedy gold into this forum and become...
Legend.

You can try:

sudo apt install --reinstall gnome-shell-common

sudo update-alternatives --config gdm-theme.gresource

Select the theme you want by number from the list.
If it does not show after installing hte shell common package,

sudo update-alternatives --install /usr/share/gnome-shell/gdm-theme.gresource gdm-theme.gresource /usr/share/gnome-shell/gnome-shell-theme.gresource 10

sudo systemctl restart gdm

..or reboot...

2 Likes

Ah, now I have it back in the list of update-alternatives! Thank you very much! I had only reinstalled gnome-shell before, that didn't help, and installing gdm-settings again and selecting default as shell, didn't help, too.

I had used your command before and it had shown an error that it is already managed by gdm-theme.gresource, but it was not in the list. Now everything is fine again.

(sudo update-alternatives --install /usr/share/gnome-shell/gdm-theme.gresource gdm-theme.gresource /usr/share/gnome-shell/gnome-shell-theme.gresource 10)

Never give up :wink:

2 Likes

Well, You are a Legend here - maybe not for Your Comedy, but ... You can't get everything.

3 Likes