The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 1,772β€…    Votes:  1β€…    βœ… Solution
Tags: suspend   password   17.04  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

Title: Ubuntu 17.04 no longer asking for password when coming out of sleep mode
ID: /2018/01/27/Ubuntu-17.04-no-longer-asking-for-password-when-coming-out-of-sleep-mode
Created: January 27, 2018    Edited:  January 27, 2018
Upload: January 3, 2023    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

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

If result is true then use:

gsettings set org.gnome.desktop.lockdown disable-lock-screen false
⇧ Ubuntu 17.10 Screen lock not working and grey Ubuntu 16.04 Screen lock suddenly not working  β‡©