Mapping Jetson TX2 to run executable

Hi,

I created a custom C++ program and I would like to run it using one of the four buttons on the Jetson TX2 board (S1-S4) so that the system can work without the use of a keyboard and mouse. After going through the ‘Use Volume UP Button as Trigger’ thread, I didn’t understand the procedure clearly. Is this possible and how can it be done?

Thanks

Hi,

You should study the gpio-keys event. It is a public driver from linux.
These 4 buttons are registered as gpio key and the sysfs is able to receive the trigger when you click it.