How to Enable password after lock/Suspend
I tried searching for an answer. But everyone is asking for autologin or disable passwd. But i want to put a password which on my laptop is not enabled. I tried to do this in settings but it won't work. Autologin is off. Brightness and lock settings are below.
I don't know what else I can do. When I lock the pc, the screen goes black and then simply wakes up to the home screen without any password. Same case happened when I suspend the laptop.
So, how can I be prompted to enter my password each time the computer wakes from sleep or activates the screensaver?
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
Then Reboot your system