Score:4

Ubuntu Mate Desktop not asking for password after suspend

in flag

I am struggling with this problem for few days.

I have Ubuntu 20.04 installed with ubuntu-mate-desktop. When I suspend the system, on resume it does not ask for password.

Is there any way to set it so for recovering system will pop-up password window?

Score:2
in flag

I found this solution that worked for me.

First, create file /etc/systemd/system/lock.service as root:

[Unit]
Description="Make extra sure to lock the screen when suspending"

[Service]
Type=oneshot
User=root
ExecStart=/bin/loginctl lock-sessions

[Install]
WantedBy=suspend.target

Then, in order to to update system configuration, ​type in console:

sudo systemctl daemon-reload
sudo systemctl enable lock.service
Score:0
cn flag

If you installed mate desktop after you installed vanilla Ubuntu then you have to remove GNOME desktop so that the login screen will be the Mate Lock screen.

Then, you can go to your settings System>Preferences>Look and Feel>Screensaver> Then tick "Lock screen when screensaver is active".

guyaloni avatar
in flag
This is not what I am looking for. When screensaver is active, my system is locked (without having removed GNOME desktop). What I am looking for is that suspend action will also lock the system.
cn flag
This may help: https://ubuntu-mate.community/t/how-to-lock-user-upon-sleep-or-suspend/7787
guyaloni avatar
in flag
Again, same issue. The problem is with **suspend**, not with **lock** or **idle**.
Dave avatar
za flag
Some searching leads me to believe this is an issue with MATE going back to 2018. I'm seeing no "solution" only more reports of the same problem. There have been some work arounds but I hesitate to share those here as they are untested and outside the ubuntu platform specifically.
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.