Skip to main content
Topic: Perform actions before/after hibernating/suspending with acpid (Read 163 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Perform actions before/after hibernating/suspending with acpid

Is it possible? I do not use elogind.
Is there something else maybe?

It seems not looking https://wiki.archlinux.org/title/Acpid.

I use "echo disk > /sys/power/state" to hibernate.

Re: Perform actions before/after hibernating/suspending with acpid

Reply #1
It probably can be done using a combination of acpid and pm-utils(AUR).

I first came across this as a fix for 'suspend when closing the lid' on my chromebook.
https://archlinuxarm.org/wiki/Samsung_Chromebook.

pm-utils has not been updated since 2017 but still builds.
And I'm fairly sure it still works. I'd have to update the chromebook to check.

There could be other methods ?

Re: Perform actions before/after hibernating/suspending with acpid

Reply #2
When I press the button or use a lid only acpid should work.
But if send the command to hibernate via a keyboard shortcut how can I do something?
I think that it would be nice to have some dedicated daemon.