IGN / Ignition Power Control
Redefine the Power Button Behavior as Shutdown
Step 1. Install acpid
sudo apt-get install -y acpidStep 2. Add a acpid hanlder for power button
# Create a new file
sudo gedit /etc/acpi/events/power
# Add the following lines inside /etc/acpi/events/power
event=button/power
action=sudo shutdown nowStep 3. Restart the acpid service
sudo service acpid restartStep 4. Disable the default power button action

Step 5. Test the result
Last updated