Hibernate and suspend hooks with elogind

With pm-utils there is the facility to provide pre/post hooks for hibernate and suspend.

I may be missing something, but I cannot find the equivalent with elogind. I would be most grateful if someone could point me in the direction of documentation on how to do this, please.

see this
https://forum.manjaro.org/t/cinnamon-restart-and-shutdown-problem/20779

robinw0800: many thanks for the reply.

I’m probably being a bit slow here, but unfortunately I can’t see how the post you link to answers my query.

Just to clarify, the hooks I’m referring to are actually custom user-written scripts which pm-utils can run immediately before hibernate/suspend and/or immediately after resuming, so you can add specific actions that you want to carry out. See the Arch Linux Wiki entry ‘pm-utils’ for further info.

As far as I can see there is no equivalent for elogind/loginctl.

Hope this makes more sense than my first post.

@artoo is the openrc goto guy (this will flag him)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.