The following pages link to Application note - Example code for capturing power button event on fitlet2 running Linux: