9

From Settings -> Privacy, I got

  • Automatic Screen lock -> turned on
  • Lock Screen on Suspend -> turned on

None of them locks my screen. But the manual lock option works fine. (I did get some error message about Auto-lock while installation)

Any thoughts on how to fix it? And I'm using lightdm instead of gnome-gdm3

MI Nayan
  • 105
  • 1
  • 6

2 Answers2

3

Screen lock is disabled by default with lightdm on Ubuntu 18+ due security issues.

check more here:

You can check you display manager with: sudo systemctl status display-manager

If you still want to lock your screen with lightdm - you can use dm-tool lock. Also you can add it to keyboard shortcut as command (e.g. Super+L).

Switching to gdm3 helped: sudo dpkg-reconfigure gdm3

littleguga
  • 480
  • 1
  • 3
  • 10
  • Switching to gdm3 worked. Be aware though, when you receive an error message that the switch was not successful, you need to restart. That's what did it for me. – SlideM Jul 23 '20 at 16:42
1

What's the timeout set to? Previous experience may point to a very unexpected hardware related cause which I call "mouse jitter": It could be that your mouse has a slight malfunction and 'jiggles' by itself a bit, causing your computer to stay awake. Try unplugging your mouse and see what gives.

Daniel B
  • 471