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

before-sleep not triggering when going into hibernation, hybrid-sleep, or suspend-then-hibernate #127

Open
ivanmlerner opened this issue Jul 15, 2022 · 1 comment

Comments

@ivanmlerner
Copy link

Hibernation, hybrid-sleep and suspend-then-hibernate are not triggering the before-sleep command.

@kennylevinsen
Copy link
Member

before-sleep listen to (e)logind's Prepare for sleep event.

Check sudo busctl monitor to see if the events get sent and at what time.

Generally speaking, I recommend not relying on logind for running hooks. If you want something to happen before suspending the machine, just do it where you initiate suspend but before going through with it.

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

Successfully merging a pull request may close this issue.

2 participants