Skip to content

main/acpid: use loginctl suspend when available

Gil Pedersen requested to merge kanongil/aports:acpid-suspend-fix into master

This updates the suspend script to use loginctl suspend when available.

This allows hooks installed in /etc/elogind/system-sleep and /usr/libexec/elogind/system-sleep to run as expected.

I explicitly test for suspend to avoid calling it when not supported, eg. if systemd is ever installed instead of elogind.

Merge request reports