-
Notifications
You must be signed in to change notification settings - Fork 0
/
remote.conf
130 lines (125 loc) · 6.16 KB
/
remote.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#****************************************************************************
# this file is configuration for each factory remote device
# work_mode 0 :software mode 1 :hardware mode
# repeat_enable 0 :disable repeat 1 :enable repeat
#
# factory_code each device has it's unique factory code.
# pattern:custom_code(16bit)+index_code(16bit)
# examble: 0xff000001 = 0xff00(custom cod) 0001 (index)
#
# release_delay unit:ms.release will report from kernel to user layer after this period of time
# from press or repeat triggered.
#
# debug_enable 0 :debug disable 1 :debug disable
#
# SW MODE:
# bit_count how many bits in each frame
# tw_leader_act time window for leader active
# tw_bit0 time window for bit0 time.
# tw_bit1 time window for bit1 time
# tw_repeat_leader time window for repeat leader
# REG
# reg_base_gen set value for PREG_IR_DEC_BASE_GEN
# reg_control set value for PREG_IR_DEC_CONTROL
# reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE
# reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE
# reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE
# reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME
#****************************************************************************
# Modified Wetek Core configuration file by zehnm to work with a Logitech
# Harmony 880 remote.
# Based on: http://www.zoomeren.nl/2014/06/28/logitech-harmony-remote-for-eny-m8-android-tv-box/
#
# Harmony Remote Setup:
# 1. Select profile for remote: Wetek Play
# 2. Learn Power On IR code from Core Remote
# 3. Map physical buttons and rename labels at your liking
#
# Notes:
# - no air-mouse functionality!
# - Tested with WeTek OS 1.0.0
#****************************************************************************
#amlogic NEC remote
factory_code = 0xff000001
work_mode = 0
repeat_enable = 0
repeat_delay = 40
repeat_peroid = 39
release_delay = 121
debug_enable = 1
# zehnm: not sure if required...
fn_key_scancode = 0x15
left_key_scancode = 0x1c
right_key_scancode = 0x48
up_key_scancode = 0x44
down_key_scancode = 0x1d
ok_key_scancode = 0x5c
pageup_key_scancode = 0x04
pagedown_key_scancode = 0x1b
key_begin
; Code = IR keycode
; Linux = Linux keycode
; Android = Android keycode
; Button = Description button on Logitech remote
; KODI = Action in KODI (focus on video playback)
; Further info: http://kodi.wiki/view/Keyboard_controls
;
; Buttons with a * are not mapped to physical buttons on the harmony remote.
;
; Code Linux Android Button KODI
; ---- ----- ------------------ --------------- ------------------
0x52 2 # 1 1 1
0x50 3 # 2 2 2
0x10 4 # 3 3 3
0x56 5 # 4 4 4
0x54 6 # 5 5 5
0x14 7 # 6 6 6
0x4e 8 # 7 7 7
0x4c 9 # 8 8 8
0x0c 10 # 9 9 9
0x0f 11 # 0 0 0
0x51 133 # TAB +/Clear Toggle Fullscreen playback
0x06 103 # DPAD_UP Direction Up Up
0x16 108 # DPAD_DOWN Direction Down Down
0x5a 105 # DPAD_LEFT Direction Left Left
0x1b 106 # DPAD_RIGHT Direction Right Right
0x1a 28 # DPAD_CENTER OK Select
0x45 139 # MENU Menu ContextMenu
0x05 1 # BACK Exit Back
0x4d 127 # SEARCH Guide TV Guide
0x02 23 # I Info Info
0x44 128 # MEDIA_STOP Stop Stop
0x08 122 # MEDIA_PREVIOUS Skip Back Previous
0x0b 123 # MEDIA_NEXT Skip Forward Next
0x46 119 # MEDIA_PLAY_PAUSE Play Pause/Play
0x4a 121 # MEDIA_REWIND Rewind Rewind
0x48 120 # MEDIA_FAST_FORWARD Fast Forward Fast Forward
0x46 57 # SPACE Pause Pause/Play
0x15 109 # PAGE_DOWN Down Arrow (Pg Down)
0x55 104 # PAGE_UP Up Arrow (Page Up)
0x40 26 # LEFT_BRACKET Channel Up (Green) Seek -10
0x42 27 # RIGHT_BRACKET Channel Down (Red) Seek +10
0x09 20 # T Subtitle* Toggle subtitles
0x03 38 # L Blue* Next subtitle
0x51 14 # DEL Delete* Del file / Remove from playlist (in Android app switcher: terminate app)
0x00 24 # O Yellow* Codec Info
0x12 17 # W Mouse* Toggle Watched
0x1f 16 # Q Favorite* Queue
0x01 30 # A Audio* Audio delay control
0x4d 18 # E EPG* Live TV EPG/TV guide
# -- Android Keys -----------------------------------------------------------
;--- ---- # POWER WAKE PowerOn* (learned from original Core remote power button and only works while Core is OFF)
0x59 116 # POWER PowerToggle <Power off>
0x19 113 # VOLUME_MUTE Mute <Mute volume>
0x13 115 # VOLUME_UP Vol + <Increase volume>
0x17 114 # VOLUME_DOWN Vol - <Decrease volume>
0x0d 102 # HOME Home* <Home key: exit to Android launcher. Long press for app switcher>
0x18 70 # EXPLORER Browser* <Launch browser application>
0x11 127 # SEARCH DTV* <Search key>
0x04 64 # F6 PVR* <Star/Camera button (add/remove favorites)>
# ---------------------------------------------------------------------------
# TODO / for testing
0x58 60 # NOTIFICATION Apps*
key_end
repeat_key_begin
repeat_key_end