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

MATE: no screen lock after suspend #81434

Open
mehlon opened this issue Mar 1, 2020 · 6 comments
Open

MATE: no screen lock after suspend #81434

mehlon opened this issue Mar 1, 2020 · 6 comments

Comments

@mehlon
Copy link
Contributor

mehlon commented Mar 1, 2020

Describe the bug
When using the MATE desktop, the screen lock is not activated after suspending to RAM.

To Reproduce
Steps to reproduce the behavior:

  1. Set services.xserver.desktopManager.mate.enable = true;
  2. Suspend the screen with systemctl suspend.
  3. Wake the screen up again.

Expected behavior
The screen lock should activate, asking the user to input their password.

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

  • system: "x86_64-linux"
  • host os: Linux 4.19.106, NixOS, 19.09.2166.ce9f1aaa39e (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.3
  • channels(root): "nixos-19.09.2166.ce9f1aaa39e, u-20.09pre215033.ddc2f887f5f"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: nixpkgs.mate
# a list of nixos modules affected by the problem
module: services.xserver.desktopManager.mate
@worldofpeace
Copy link
Contributor

Anything in your journal on display-manager.service?

@mehlon
Copy link
Contributor Author

mehlon commented Mar 1, 2020

Relevant: https://ubuntu-mate.community/t/how-to-lock-screen-on-suspend/16836

Anything in your journal on display-manager.service?

Nope. Nothing new is added to journalctl -u display-manager.service -e after suspending.

@mehlon
Copy link
Contributor Author

mehlon commented Mar 1, 2020

This happens with both lightdm and sddm. So presumably it's a problem with MATE itself, not the display manager.

@stale
Copy link

stale bot commented Aug 28, 2020

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 28, 2020
@AshleyYakeley
Copy link

Ran into this.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Feb 28, 2023
@AshleyYakeley
Copy link

AshleyYakeley commented Feb 28, 2023

Workaround for home-manager:

services.screen-locker =
{
    enable = true;
    lockCmd = "mate-screensaver-command --lock";
};

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

No branches or pull requests

3 participants