It's actually an acpi call through the Real TIme Clock to properly
shut it down..
Ever since we moved to systemd, you can use:
sudo systemctl poweroff
Pre-Systemd era, we relied on the acpi package to be installed to
property shut things down..
so yeah, trace what "systemctl poweroff" does and then it'll work..
Regards,
--
Robert Nelson
https://rcn-ee.com/