WakeLockDurationSec=5
[EventAction]
-Name=PWKEY_LONGEST_EDGE
+Name=PWKEY_LONGEST_EDGE_WO_CHARGER
Enum=1004
Keycode=power
DetectionRangeMsec=7000,-1
TriggerType=edge
ConditionVconf=memory/sysman/charger_status,int,0
ActionChangeState=normal,poweroff
+ActionChangeState=sleep,normal
+
+[EventAction]
+Name=PWKEY_LONGEST_EDGE_W_CHARGER
+Enum=1004
+Keycode=power
+DetectionRangeMsec=7000,-1
+TriggerType=edge
+ConditionVconf=memory/sysman/charger_status,int,1
+ActionChangeState=normal,sleep
+ActionChangeState=sleep,normal
[EventAction]
Name=BTKEY_SHORT_EDGE