About the functionality of the PWR button, take a look at this document, you will see the functions of it.
But, I'm not exactly sure about what do you want for the PWR button to do when it's pressed. If the functionality that you need it's not in that document please let us know in a more detailed way.
Hi Cmata ,
Thanks for reply.
as the document said:
Power button (SW1UI2): The power button is used to change the power mode of the Intel® Edison. It is configured by software. Pressing and holding the power button will cause the Intel® Edison to power down leaving the IO configuration in its current state. Pressing the button momentarily when the Intel® Edison is powered down will cause the Intel® Edison to reboot. If the Intel® Edison is running, then a momentary press will cause the Intel® Edison to go into the low power sleep mode. Pressing the button momentarily when the Intel® Edison is asleep, will bring the Intel® Edison into full power mode. Pressing and holding the power button for more than 2 seconds but less than 7 seconds will turn the Intel® Edison AP mode on
I just don't want the function when a hold the button it could turn Ap mode.
So i wonder to know is there a way to remove this functionality
you need to change the code behind
Actually , i found a very simple way. you could just kill the process /usr/bin/pwr_button_handler, it would not impact the 7 seconds shutdown functional, and also no impact for 3 seconds to start up.