$ sudo apt update $ sudo apt install acpid $ sudo /etc/init.d/acpid restart [ ok ] Restarting acpid (via systemctl): acpid.service.
$ acpi_listen button/power PBTN 00000080 00000000 button/power PBTN 00000080 00000000 button/power PBTN 00000080 00000000 button/power PBTN 00000080 00000000 button/power PBTN 00000080 00000000
event=button/power action=/sbin/shutdown -h now
$ sudo /etc/init.d/acpid restart