NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.45k stars 12.95k forks source link

MATE: no screen lock after suspend #81434

Open mehlon opened 4 years ago

mehlon commented 4 years ago

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.

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

Anything in your journal on display-manager.service?

mehlon commented 4 years ago

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

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

stale[bot] commented 3 years ago

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.

AshleyYakeley commented 1 year ago

Ran into this.

AshleyYakeley commented 1 year ago

Workaround for home-manager:

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