19

I tried the shortcut Super + L nothing happens.

In the settings, have set lockdown timer for 1 min, nothings happens after that.

In the right corner menu after clicking lock item, it is showing black screen and logging me out.

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

shows false.

5 Answers5

28

I was having EXACTLY the same problem. It turns out I have several display managers installed, and I was using lightdm instead of gdm3.

You can confirm you are using lightdm if this command works:

$ dm-tool lock

(But even if that doesn't work you may be using another display manager.)

I got the screen blanking to work properly by configuring gdm3.

Open a terminal and issue this command:

$ sudo dpkg-reconfigure gdm3

Select gdm3 in the list on the terminal, then reboot your system.

1

I have the same gsettings get org.gnome.desktop.lockdown disable-lock-screen config and Super+L works

Could you check Settings > Keyboard Shortcuts > search(Super+L), this one should be assigned to lock the screen.

The lock is a feature of gnome-session. In your research maybe swap "ubuntu" for "gnome" or "gnome3.36.2" with a bit of luck you have the same as me ;)

Zanna
  • 72,312
Zoyolin
  • 69
0

I couldn't even get to "Settings" on my Ubuntu 20.04 box, probably because I've been updating the same hardware since 12.04.

First I had to run:

sudo apt-get install --reinstall gnome-control-center

... to get "Settings" back. Then I typed:

gnome-control-center

... to pull settings up.

While I had Settings up I right-clicked "Add to Favorites" on the toolbar to keep the Settings icon on my desktop.

After that I went to Settings > Privacy > Screen Lock to get at all of the settings.

Earl Ruby
  • 841
-1

Problem solved for me by going to

Settings > Screensaver > Lock Screen

and then deactivating Lock Screen.

Now everything works fine for me.

-1

Not the OP's case, but if your gsettings get org.gnome.desktop.lockdown disable-lock-screen shows true then you can change it with:

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

I don't know what set that to false on my system, it was a fresh Ubuntu 23.10 install with GDB display manager.