Reconfigure input for iot-headless
[platform/core/system/deviced.git] / conf / input-profile-iot-headless.conf
1 # [EventAction] - define event and corresponding action
2 #  Name=string
3 #   - define mnemonic for the event, and it is only used for logging
4 #  Enum=integer
5 #   - define an integer that represents the event. deviced uses this
6 #     integer in broadcasting dbus signal.
7 #  Keycode=integer
8 #   - define keycode to filter key event
9 #  DetectionRangeMsec=integer,integer
10 #   - define time window in milisecond for filtering key event. -1 means no limit.
11 #  TriggerType=level/edge
12 #   - define event type
13 #  ActionBroadcast=yes
14 #   - Broadcast upon occuring an event, default no.
15 #  ActionChangeState=current,next
16 #   - define state transition action for the event.
17 #  WakeLockDurationSec=
18 #   - acquire wakelock for a specfied timeout
19
20 [EventAction]
21 Name=BTKEY_SHORT
22 Enum=1000
23 Keycode=bluetooth
24 DetectionRangeMsec=0,2000
25 TriggerType=edge
26 ActionBroadcast=yes
27 WakeLockDurationSec=5
28
29 [EventAction]
30 Name=BTKEY_LONG
31 Enum=1001
32 Keycode=bluetooth
33 DetectionRangeMsec=2000,7000
34 TriggerType=edge
35 ActionBroadcast=yes
36
37 [EventAction]
38 Name=PWKEY_SHORT
39 Enum=1002
40 Keycode=power
41 DetectionRangeMsec=0,2000
42 TriggerType=edge
43 ActionBroadcast=yes
44
45 [EventAction]
46 Name=PWKEY_LONG
47 Enum=1003
48 Keycode=power
49 DetectionRangeMsec=2000,7000
50 TriggerType=edge
51 ActionChangeState=normal,sleep
52 ActionChangeState=sleep,normal
53
54 [EventAction]
55 Name=PWKEY_LONGEST
56 Enum=1004
57 Keycode=power
58 DetectionRangeMsec=7000,-1
59 TriggerType=edge
60 ConditionVconf=memory/sysman/charger_status,int,0
61 ActionChangeState=normal,poweroff
62
63 # This doesn't trigger any action.
64 # It is just for logging that bluetooth key has been pressed for 2000ms
65 [EventAction]
66 Name=BTKEY_CHECKPOINT_LONG
67 Enum=1005
68 Keycode=bluetooth
69 DetectionRangeMsec=2000,-1
70 TriggerType=level
71
72 # This doesn't trigger any action.
73 # It is just for logging that powerkey has been pressed for 2000ms
74 [EventAction]
75 Name=PWKEY_CHECKPOINT_LONG
76 Enum=1006
77 Keycode=power
78 DetectionRangeMsec=2000,-1
79 TriggerType=level
80
81 # Powerkey has been pressed for 7000ms
82 # It is just for logging that powerkey has been pressed for 7000ms
83 [EventAction]
84 Name=PWKEY_CHECKPOINT_LONGEST
85 Enum=1007
86 Keycode=power
87 DetectionRangeMsec=7000,-1
88 TriggerType=level