mate-desktop / mate-screensaver

MATE screen saver and locker
https://mate-desktop.org
GNU General Public License v2.0
48 stars 40 forks source link

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

Open NHellFire opened 4 years ago

NHellFire commented 4 years ago

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 commented 4 years ago

I can confirm I have observed this issue on 20.04.1.

Have you tried anything from this thread: https://github.com/mate-desktop/mate-screensaver/issues/84

Or have you another workaround?

moocan commented 3 years ago

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 commented 8 months ago

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