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?
4 Answers
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'
- 13,475
- 21,859
It's so because Automatic Suspend may be off.
Turning it on will solve the problem. Here is how:
- Go to Settings > Power.

- Click 'Automatic Suspend' option.

- Turn "When Idle" option on.

Done. Let me know if this solves your problem or not.
- 913
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
- 105,762
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
- 3,409
- 3
- 28
- 36