sudo -H nano /etc/acpi/events/powerbtn FILECHANGE: #action=/etc/acpi/powerbtn.sh action=/sbin/poweroff FILEEND! sudo acpid restart