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

Systemd inhibitors are ignored #301

Open
knezi opened this issue Sep 20, 2019 · 0 comments
Open

Systemd inhibitors are ignored #301

knezi opened this issue Sep 20, 2019 · 0 comments

Comments

@knezi
Copy link

knezi commented Sep 20, 2019

Expected behaviour

When an inhibitor is set, the machine should not shutdown/hibernate/sleep in the same way systemctl hibernate/... does.

Actual behaviour

When you close the laptop lid or press the power button, it ignores any inhibitors set.

Steps to reproduce the behaviour

Run the following to set inhibitors for all actions.

systemd-inhibit --mode=block --what shutdown:sleep:idle:handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch --who me sleep 999999h

Now if you run systemctl suspend, you get:

Operation inhibited by "me" (PID 146681 "systemd-inhibit", user knezi), reason is "Unknown reason".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl suspend -i'.

The same happens if systemd handles these operation itself. However, when you set this by MPM, it happily ignores the inhibitors.

MATE general version

N/A

Package version

Name            : mate-power-manager
Version         : 1.22.1-1

Linux Distribution

Arch linux

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

1 participant