Add option to only log nmiButtonPress when host is running
While NMI button presses are of little interest when the host is off,
some systems (e.g. romed8hm3) generates spurious events on shutdown,
probably due to some lack of electronic stability.
This patch adds an option to disable handling these events when host is off.
Change-Id: Idc74b2dcb7131ddf6d99d1b8c49d947be98de78e
Signed-off-by: Olivier FAURAX <olivier.faurax@eu.equinix.com>
diff --git a/config/power-config-host0.json b/config/power-config-host0.json
index 83e1059..f575b15 100644
--- a/config/power-config-host0.json
+++ b/config/power-config-host0.json
@@ -83,5 +83,8 @@
"GracefulPowerOffS": 300,
"WarmResetCheckMs": 500,
"PowerOffSaveMs": 7000
+ },
+ "event_configs": {
+ "NMIWhenPoweredOff": true
}
}