Perform actions before/after hibernating/suspending with acpid 10 February 2025, 17:23:21 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 – 10 February 2025, 17:57:29 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 – 11 February 2025, 15:32:09 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.