Power Button in LIME2 rev. G2
I exchanged some emails with Olimex about the power button, and I want to ask for some help confirming its function.
As some of you may know, the rev. G2 LIME2 has three buttons which can be pushed if you gently insert a small object (like a pin): they are for RESET, BOOT, and POWER. The left-most button, in my experience, shuts the FreedomBox down, even when the battery is plugged in.
Olimex tells me that the power button on the rev. G2 has not be tested fully with FreedomBox, so they can't be sure if it is an advisable way to shut down your Pioneer edition device.
The three buttons are not intended to be pushed regularly, which is why they are not easily pushed. Pressing the RESET is not good idea while Linux is running because it might cause damage to opened files in rootfs. The BOOT button is only necessary during boot if the on-board eMMC is bricked (but that doesn't apply to the Pioneer G2, which has no eMMC). And the Power Off button was designed for Android, and if it works with Linux, then we got lucky.
I want to ask about the power button in specific. Olimex tells me that the power button generates event: Event code 116 (KEY_POWER)
Olimex tested the power button with their Armbian image, and they found that it does shutdown the device safely.
But I'm wondering if it will shut down the device safely wit our image. Can somebody check?
If it turns out that the FreedomBox image is not compatible with the rev. G2 power button, then I'll tell users not to use that power button.