Lock screen doesn't appear when resuming from suspend

Bug #1777889 reported by Akram
336
This bug affects 17 people
Affects Status Importance Assigned to Milestone
MATE Desktop
Unknown
Unknown
mate-screensaver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Sometimes when I open up the laptop's lid or I push the power button to resume from suspend, the lock screen doesn't show up.
Automatic login is disabled.

Release: 18.04 LTS (Bionic Beaver) 64-bit
Release: 19.04 (Disco Dingo)
Release: 19.10 (Eoan Ermine)
Release: 20.04 (Focal Fosa)

Akram (akramjs)
tags: added: amd64
Revision history for this message
Abu Sakib (selectiveduplicate) wrote :

Do you mean when waking up from "suspend"? I'm facing the same issue when waking up from suspend. Can you make sure by going into the suspend mode manually by clicking on it and then waking up?

Thanks.

Akram (akramjs)
description: updated
summary: - Lock screen doesn't appear when resuming from sleep
+ Lock screen doesn't appear when resuming from suspend
tags: added: suspend
Revision history for this message
Akram (akramjs) wrote :

Yes, that's what I mean. It happens when I suspend manualluy too.

Changed in ubuntu-mate:
status: New → Confirmed
Revision history for this message
Plutocrat (plutocrat) wrote :

I can confirm this too.

Revision history for this message
Plutocrat (plutocrat) wrote :

Additional information. Same issue when running sudo pm-suspend.

Also, screensaver is set to blank screen and lock screen. But also fails to lock screen when it activates.

ctrl-alt-L will correctly lock screen.

Revision history for this message
Marian Gasparovic (marosg) wrote :

When I suspend by closing the lid and then open, I can see my desktop for 2-3 seconds before password dialog shows up. I wanted to file that bug (and I will) when I found this one. So I tried manual suspend and I can also see I don't get password prompt when I un-suspend after manual suspend.
18.04

Mr Tonik (mr-tonik)
information type: Public → Public Security
Revision history for this message
Douglas Silva (o-alquimista) wrote :

I can reproduce this all the time on Ubuntu MATE 18.10.

tags: added: 18.10 cosmic
Revision history for this message
Roger (rce597) wrote :

I can also confirm this for my installation of Ubuntu MATE 18.10.

Paul White (paulw2u)
tags: added: eoan
removed: 18.04 18.10 beaver cosmic
Revision history for this message
Bill (franksmcb) (franksmcb) wrote :

I can confirm that suspend locks on resume when closing lid. It does not lock when suspended from menu on 19.10 20190908

Revision history for this message
Bill (franksmcb) (franksmcb) wrote :

On 18.04.03

If suspend is called via `systemctl suspend` lock does not occur when resumed.
If suspend done from Power panel applet indicator screen does not lock.
If suspend done from Menu screen is locked.
If suspend is done via closing laptop lid screen is locked.

On 19.04

If suspend is called via `systemctl suspend` lock does not occur when resumed.
If suspend done from Power panel applet indicator screen does not lock.
If suspend done from Menu screen is locked.
If suspend is done via closing laptop lid screen is locked.

On 19.10

If suspend is called via `systemctl suspend` lock does not occur when resumed.
If suspend done from Power panel applet indicator screen does not lock.
If suspend done from Menu screen is locked.
If suspend is done via closing laptop lid screen is locked.

description: updated
description: updated
tags: added: disco
Revision history for this message
Paul White (paulw2u) wrote :

Please ignore my comment #8, now hidden. I was incorrect in my terminology re "menu". I'm also finding what has been posted in comment #10 for the 19.10 release.

Revision history for this message
Bill (franksmcb) (franksmcb) wrote :

On 19.10 current

If suspend is called via `systemctl suspend` lock does not occur when resumed.
If suspend done from Power panel applet indicator screen does not lock.
If suspend done from Menu screen is locked.
If suspend is done via closing laptop lid screen is locked.

Norbert (nrbrtx)
tags: removed: lock screen suspend
tags: added: focal
description: updated
Revision history for this message
Bill (franksmcb) (franksmcb) wrote :

On 20.04 current

If suspend is called via `systemctl suspend` lock does not occur when resumed.
If suspend done from Power panel applet indicator screen does not lock.
If suspend done from Menu screen is locked.
If suspend is done via closing laptop lid screen is locked.

Norbert (nrbrtx)
tags: removed: disco eoan
Revision history for this message
mvaldez (mario-mariovaldez) wrote :

Upstream bug reports:
https://github.com/mate-desktop/mate-screensaver/issues/228
https://github.com/mate-desktop/mate-screensaver/issues/84

Seems to be an issue with mate-screensaver not supporting the PrepareForSleep systemd signal (it was previously supported but it was not configurable, so they removed the support).

As mentioned in one of the bug reports, a workaround is to install xss-lock and then create an item in the Preferences' Startup Applications to use:

xss-lock -l -- mate-screensaver-command -l

The xss-lock application will detect the systemd signal and instruct mate-screensaver to lock the screen. You can create the startup item manually or you can create a .desktop file in /etc/xdg/autostart/ to enable it for all users.

This is really a kludge, but it works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mate-screensaver (Ubuntu):
status: New → Confirmed
no longer affects: ubuntu-mate
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.