Also take a look at the Breakout Board Schematic (Section 7)
For this you have to access the folder: /edison-src/device-software/meta-edison-distro/recipes-support/pwr-button-handler/
For more information about how to do this take a look at the BSP User guide
Thank you for the help. It works. I can program the button's functions now.
One more question: Right now yo need to long press for about 7 or 8 seconds to turn off the Edison Module. And press about 4 to 5 seconds to turn it on. Is there a way to configure these seconds so that it can respond faster. The pwr_button_handler does not seem to be able to handle this when the system is off.
Thank you for your reply. That part I already know and I already build my custom image with the modified pwr-button-handler.c. What I really need to achieve is to disable system shutdown when you long pressing power button (for about 7 to 8 seconds). Basically, I don't what the system to shutdown when you press the power button. Is it possible? Thanks.
I want to modify the PWR button behavior, but I just cannot fund the edison-src folder, where exactly is it? Does that mean that I have to make my own Yocto image?
Thank you in advanced for your help!
You don't have to create your own image. But you will need to download the source files for the image. You can modified the pwr-button-handdler.c and compile it in the Edison system. Then replaced the pwr_button_handler in the system service folder.