to shutdown the Jetson tx2 by button system.

i am able to shutting down the jetson tx2 by using command in terminal,but how can i relate that command to shutdown button for shutdown the jetson tx2. like i will relate the command with a button and that will shutdown the jetson tx2 from outside, so i want to know that how can i relate the command with that button to shutdown jetson tx2 from outside?

hello subhshakti92,

you may have implementation to monitor the GPIO behaviors. please refer to Topic 1029697 to get GPIO interrupts from user-space.
there’s also a githug, jetson-gpio. which using a Python library that enables the use of Jetson’s GPIOs.
thanks