6

I had Ubuntu 18.04 LTS and I upgraded to 20.04. The lock screen to ask password after some time it was working perfectly. After the upgrade stopped working. I tried to go to Ubuntu settings and check if it’s enabled and yes is enabled to lock screen ifor 5 minutes but the screen is never locked again after the upgrade. Any idea how to fix it?

The computed is a Lattepanda 864s. But that is not an issue. It was working everything perfect but after the update to the 20.04 stopped working. All the rest of the system works very well. It’s just is not,locking the screen to give password.

Thank you

coerrace
  • 171
  • 1
    Please EDIT your question to include relevant system information such as what computer is, etc. – ldias May 28 '20 at 23:02
  • I'm also getting this after last update. gnome-screensaver-command -l command also doesn't work, and there is no feedback on terminal. – aasril Jun 01 '20 at 01:17
  • What solution could work for this? – coerrace Jun 01 '20 at 21:28
  • "I have the same issue" - sure this does not help but I am also on Ubuntu 20.04 with an AMD RX 5700XT. Trying to lock the screen sometimes works, other times it just crashes gnome and you are back at your normal screen. – Flatron Jun 15 '20 at 06:35

1 Answers1

2

I had this problem as well, and after not finding a solution on Stack Overflow / Ask Ubuntu, I went over to Launchpad to poke around for related bugs or questions.

It seems this issue is specific to LightDM, and is perhaps part of a bigger security issue, and switching to GnomeDM (gdm) fixes the issue. Here are the steps I followed:

Install GDM if not already installed:

sudo apt-get install gdm3

Switch from LightDM to GDM3:

sudo systemctl status display-manager

Reset/reinstall some stuff:

sudo dpkg-reconfigure lightdm
sudo apt install --reinstall ubuntu-session

Reboot, and you should be good. Note that I don't know if switching back from GDM to LightDM will maintain the fix. From the links below it sounds like it may be part of a broader security issue and the Super+L keyboard shortcut is disabled for a reason.


More links to background:
https://answers.launchpad.net/ubuntu/+question/693197
Can't lock screen with shortcut on Ubuntu 20.04 gnome
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1806961

Esther
  • 3,600
  • 13
  • 29
Nate
  • 173