Score:0

Ubuntu 22.04 does not enter lock state when waking from hibernation

co flag

I'm on Ubuntu 22.04.

I followed the swap partition section of this guide: https://ubuntuhandbook.org/index.php/2021/08/enable-hibernate-ubuntu-21-10/

And it works using systemctl hibernate. But, when I press the power button and wake from sleep, it doesn't wake into a locked state, as in I don't have to enter my password. How can I change this?

I looked at another question and tried gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true followed by systemctl hibernate but that didn't work.

I tried making a script that does sudo echo "Hibernating..."; gnome-screensaver-command -l; sudo systemctl hibernate as seen in an answer on this website, with the first sudo making the second command not need a password input, but sudo systemctl hibernate just shuts the computer down, or at least causes it to lose state on wake-up.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.