input: define all possible cases of longest powerkey 57/279057/2
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 1 Aug 2022 08:49:44 +0000 (17:49 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 2 Aug 2022 00:49:15 +0000 (09:49 +0900)
Change-Id: I98f558f8878bcaa59b4d3d898bfd260143b2a56d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
conf/input-profile-iot-headless.conf

index 1e20825..5c71600 100644 (file)
@@ -54,13 +54,24 @@ ActionBroadcast=yes
 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