IGN / Ignition Power Control

Redefine the Power Button Behavior as Shutdown

Step 1. Install acpid

sudo apt-get install -y acpid

Step 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 now

Step 3. Restart the acpid service

sudo service acpid restart

Step 4. Disable the default power button action

Step 5. Test the result

The system will shutdown after pressing the power button!

Optional Step if you are using older version BSP

Only need to apply the script if it not existing in the startsctip.

JP5.x

JP6.x

Last updated