Lock screen not working in 21.10

Since I updated my system to ubuntu Budgie 21.10 my lock screen is not working anymore. So using the “Lock” button in the upper right corner does not work (nothing happens). Also when my computer returns from suspend mode my screen is not locked and no lock screen is displayed. Any idea what to check and how to solve this?

The output of ps -ef | grep screensaver

jrading+    1950    1656  0 09:05 ?        00:00:00 /usr/libexec/gsd-screensaver-proxy
jrading+   32613    2987  0 13:02 pts/0    00:00:00 grep --color=auto screensaver

I’ve never actually changed anything with the login screen.

Are you using GDM3 as your login manager?

Have you got GNOME-Shell also installed?

This thread maybe your issue Lockscreen not working after update to 21.10 - #22 by RupertEverton

How can I check? Which output of the console would be helpful for tracing this?

For GDM3 - what does your login manager look like? If it looks like this then you are using lightdm/slick greeter

For GNOME-Shell - start at this part of the thread Lockscreen not working after update to 21.10 - #12 by fossfreedom

So I ran

pkill -9 -f  '/usr/bin/gjs /usr/share/gnome-shell/org.gnome.ScreenSaver'

and after that gnome-screensaver

but actually nothing happens…and I have to stop the command using Strg+C

Thats how my screen looks at start up: IMG_3643

Do you have the file above?

Yes this file (/usr/share/gnome-shell/org.gnome.ScreenSaver) exists…with following content:

imports.package.start({
    name: 'gnome-shell',
    prefix: '/usr',
    libdir: '/usr/lib',
});

right - so its the same issue.

To reiterate - you have in the past installed gnome-shell - and its interfering with Budgie.

In 21.10 GNOME Shell breaks budgie lock screen - upstream (Solus) do not recommend you have both Budgie and GNOME Shell installed. You certainly shouldnt have GDM3 installed - you may have installed this in the past but switched back to lightdm/slickgreeter without uninstalling GDM3

So the workaround is in the thread I linked to - alternatively you can uninstall gnome-shell-common but this will break your GNOME Shell installation.

So, is there actually a way to move back to a state that is most “natural” to the actual version of Budgie. If I understood correctly, I should uninstall GDM3 (how?). I mean in the end, I’d like to have future updates working flawlessly
So if you I uninstall gnone-shell-common, what do you mean by this will “break my GNOME Shell installation” ?

So to remove GDM3

sudo apt purge gdm3

To remove gnome-shell-common

sudo apt purge gnome-shell-common

Remember you can in Ubuntu install multiple desktop environments - you choose which desktop environment you want to launch via the login screen - so click on the “budgie” icon next to the password field to see which desktop environments you want to switch to.

When I say “break GNOME Shell installation” - its just that it means you will no longer have the ability to login to GNOME Shell via the login manager.

Assuming you have the package ubuntu-budgie-desktop installed, this will be enough to ensure future updates & upgrades work OK.

So uninstalling gmd3 and gnome-shell-common using sudo apt purge worked in the sense that I can now lock my screen again. Thanks!

Now my lock screen after suspend is different from that after reboot…as shown in the picture IMG_3644.

Is that how it should be (i.e. to have different login screens after suspend and lock)?

Yep - that is how it is expected to be - that is “gnome-screensaver”

If you are using a theme like Pocillo - then it would be darker. The theming of gnome-screensaver is dependent upon the theme you have chosen for your desktop.

1 Like

I have the same problem with 22.04. I tried both commands in the Terminal. According to my Terminal (neither GDM3 or gnome-shell-common is installed) ??? Any other suggestions? Thanks as always for your help.

What are your display - lock options in Budgie-Control-Center - Displays ?

Hope you had a nice weekend. Actually I didn’t see any lock options (Sperren) in the Budgie-Control-Center-Displays. Maybe it’s just me being stupid again? Here are two pictures (screen shots) of my PC.
It was working until recently… maybe up until 2 weeks ago? I haven’t made any major changes or installed any new programs in that time. Not a serious problem, but it would be nice to have it working.


Take a look at the below post. The gsetting is what was doing it for me. Once I set disable-lock-screen to false, I was able to lock using normal methods.

I am not sure why this setting changed, but it did for me.

First of all… thank you for the suggestion. Here’s a photo of what came up on my Terminal.
pkill: Unknown Option >>–no–deamon<< (unknown would be the translation from German)

Try running these two lines. For me both lines returned true. The second line should be false.

gsettings get org.gnome.desktop.screensaver lock-enabled
gsettings get org.gnome.desktop.lockdown disable-lock-screen

If the second line returns true, instead of get, use set to set the value to false.

gsettings set org.gnome.desktop.lockdown disable-lock-screen false

Thank you! I’m amazed… You are truly a King. That worked :100:% Will be writing everything down and saving it in my notebook.