Assign power button to shut off

Hi,
i am using jetson without monitor on moving vehicle with battery.
I’d like to shutoff Jetson correctly, but when I press button of power, the Ubuntu asks further interaction (Shutdown , suspend … etc).
How do I make it shutdown without interaction?

We are using shutkey daemon in our project drone to poweroff the Jetson module. Try to google for it. You can use GPIO line configured as input and poll it from your daemon or even make it to generate interrupt. Make sure the GPIO line you are using is not used in the device tree.

-albertr

Hi Hyon, did you try pressing button 8s or more?