Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen does not lock when suspending other than using mate-session-manager #228

Open
NHellFire opened this issue Jun 3, 2020 · 3 comments

Comments

@NHellFire
Copy link

Expected behaviour

Screen locks

Actual behaviour

Screen does not lock at all

Steps to reproduce the behaviour

  1. Install Ubuntu MATE 20.04 (should work with the Live CD too)
  2. Open a terminal and run systemctl suspend (or use indicator-session applet)
  3. Power on

MATE general version

1.24.0

Package version

1.24.0-1

Linux Distribution

Ubuntu 20.04

Link to downstream report of your Distribution

None

Using xss-lock alongside (xss-lock -l -- mate-screensaver-command -l) correctly locks before suspend.
mate-screensaver --debug and systemd-inhibit logs attached.
mate-screensaver-sleep.log
sysemd-inhibit.txt

@dairefagan
Copy link

dairefagan commented Sep 10, 2020

I can confirm I have observed this issue on 20.04.1.

Have you tried anything from this thread: #84

Or have you another workaround?

@moocan
Copy link

moocan commented Apr 22, 2021

Hello,

Same behavior too with Mate 1.24.0 on Ubuntu Mate 20.04 LTS (or Ubuntu Mate 21.04) even with mate-session-manager (no screen lock when using suspend from mate applet wheel menu).

systemctl supend => Screen is not locked on resume
Wheel menu > Suspend => Screen is not locked on resume

According to Ubuntu Mate 19.10 Release Notes this issue seems resolved with Mate 1.22.2.

Upstream MATE Desktop recently released 1.22.2. All the updates are present in Ubuntu MATE 19.10 plus I’ve cherry 🍒 picked a good deal of fixes from MATE Desktop development snapshots. In total, 67 additional patches have been applied to the MATE Desktop packages in Ubuntu MATE 19.10 to finesse this release prior to launch day 🚀 Included in those patches are fixes for locking the screen on resume from suspend [...]

Same issue as the issue reported by @dairefagan in #84 84#issuecomment-690323666

I verified settings from #84 and all lock-* properties in org.mate.power-manager and org.mate.power-manager are set to true.

Regards

@nlzv
Copy link

nlzv commented Jan 1, 2024

One of the solution is using xss-lock
https://bugs.launchpad.net/ubuntu/+source/mate-screensaver/+bug/1777889
Though I prefer to use xdg autostart
cat /etc/xdg/autostart/xss-lock.desktop
[Desktop Entry]
Type=Application
Name=xss-lock-autostart
Comment=xlock on systemctl suspend
Exec=xss-lock -l -- mate-screensaver-command -l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants