9

For some reason, when I open my laptop and it wakes up, it no longer asks me for my user password (it used to). How do I troubleshoot this and enable password request upon wake?

ffxsam
  • 325
  • 1
  • 2
  • 16

4 Answers4

3

Check the value of

gsettings get org.gnome.desktop.screensaver ubuntu-lock-on-suspend

if it comes back with 'false' set this to 'true' with

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true

You can also do this with a GUI, using dconf-editor - navigate to 'org->gnome->desktop->screensaver->ubuntu-lock-on-suspend'

guntbert
  • 12,914
  • 37
  • 45
  • 86
Charles Green
  • 20,952
  • 21
  • 60
  • 92
1

It's so because Automatic Suspend may be off.

Turning it on will solve the problem. Here is how:

  1. Go to Settings > Power.

  1. Click 'Automatic Suspend' option.

  1. Turn "When Idle" option on.

Done. Let me know if this solves your problem or not.

v_ag
  • 883
  • 2
  • 9
  • 18
1

Step 1 is Screensaver installed?

The password when resuming from suspend is based on lock screen screen and lock screen is based upon screen saver. To check screen saver use apt list --installed | grep saver:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gnome-screensaver/xenial,now 3.6.1-7ubuntu4 amd64 [installed]

If you don't see a screen saver above then use:

sudo apt install gnome-screensaver

Step 2 is lock screen enabled?

Lock screen needs to be enabled:

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

If result is true then use:

gsettings set org.gnome.desktop.lockdown disable-lock-screen false
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
0

Check the suspend logs at /var/log/pm-suspend.log

sudo nano /var/log/pm-suspend.log

Possible Solution 1:

Edit the file '/etc/systemd/logind.conf'

sudo nano /etc/systemd/logind.conf

Removed the # comment from the beginning of the line 'HandleLidSwitchDocked=ignore' and changed the value to be:

HandleLidSwitchDocked=suspend

Restart the systemd daemon with this command:

sudo restart systemd-logind

or, from 15.04 onwards:

sudo service systemd-logind restart
M.A.K. Ripon
  • 3,039
  • 2
  • 26
  • 36
  • No such luck. And there is no `/var/log/pm-suspend.log`. It's not necessarily closing the lid that's the issue. Suspend in general doesn't require a password when waking up. – ffxsam Jan 26 '18 at 02:23