# - Broadcast upon occuring an event, default no.
# ActionChangeState=current,next
# - define state transition action for the event.
+# WakeLockDurationSec=
+# - acquire wakelock for a specfied timeout
[EventAction]
-Name=BLINKKEY_EDGE
+Name=BTKEY_SHORT
Enum=1000
Keycode=bluetooth
DetectionRangeMsec=0,2000
WakeLockDurationSec=5
[EventAction]
-Name=SHORTKEY_LEVEL
+Name=BTKEY_LONG
Enum=1001
-Keycode=power
-DetectionRangeMsec=2000,-1
-TriggerType=level
+Keycode=bluetooth
+DetectionRangeMsec=2000,7000
+TriggerType=edge
ActionBroadcast=yes
[EventAction]
-Name=SHORTKEY_EDGE
+Name=PWKEY_SHORT
Enum=1002
Keycode=power
-DetectionRangeMsec=2000,7000
+DetectionRangeMsec=0,2000
TriggerType=edge
-ActionChangeState=normal,sleep
-ActionChangeState=sleep,normal
+ActionBroadcast=yes
[EventAction]
-Name=LONGKEY_LEVEL
+Name=PWKEY_LONG
Enum=1003
Keycode=power
-DetectionRangeMsec=7000,-1
-TriggerType=level
-ActionBroadcast=yes
+DetectionRangeMsec=2000,7000
+TriggerType=edge
+ActionChangeState=normal,sleep
+ActionChangeState=sleep,normal
[EventAction]
-Name=LONGKEY_EDGE
+Name=PWKEY_LONGEST
Enum=1004
Keycode=power
DetectionRangeMsec=7000,-1
TriggerType=edge
ConditionVconf=memory/sysman/charger_status,int,0
ActionChangeState=normal,poweroff
+
+# This doesn't trigger any action.
+# It is just for logging that bluetooth key has been pressed for 2000ms
+[EventAction]
+Name=BTKEY_CHECKPOINT_LONG
+Enum=1005
+Keycode=bluetooth
+DetectionRangeMsec=2000,-1
+TriggerType=level
+
+# This doesn't trigger any action.
+# It is just for logging that powerkey has been pressed for 2000ms
+[EventAction]
+Name=PWKEY_CHECKPOINT_LONG
+Enum=1006
+Keycode=power
+DetectionRangeMsec=2000,-1
+TriggerType=level
+
+# Powerkey has been pressed for 7000ms
+# It is just for logging that powerkey has been pressed for 7000ms
+[EventAction]
+Name=PWKEY_CHECKPOINT_LONGEST
+Enum=1007
+Keycode=power
+DetectionRangeMsec=7000,-1
+TriggerType=level