Closed issue by keshto on void-packages repository https://github.com/void-linux/void-packages/issues/20780 Description: ### System * xuname: *output of ``xuname`` (part of xtools)* `Void 5.6.2_1 x86_64 GenuineIntel uptodate rFF` * package: *affected package(s) including the version* ``` elogind (243.4_2) [elogind-243.4_2] libelogind (243.4_2) [libelogind-243.4_2] acpid (2.0.32_1) [acpid-2.0.32_1] ``` ### Expected behavior Opening the laptop lid resumes the system ### Actual behavior It wakes, but then suspends again almost instantly ### Steps to reproduce the behavior There is a conflict between acpid and elogind. In /etc/acpi/handler.sh if we comment out the `zzz` things work as expected. ``` ... button/lid) case "$3" in close) # suspend-to-ram logger "LID closed, suspending..." #zzz ;; open) logger "LID opened" ;; *) logger "ACPI action undefined (LID): $2";; esac ;; *) ... ``` It seems that elogind (guessing from dmesg messages) is suspending before `zzz` is called and then when the lid opens `zzz` gets executed resulting in the suspend.