#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# This file can be used with Open/LibreElec for the configuration of a factory
# remote control for: T95x, QBOX, NEXBOX and possible other brands of
# Smart Android Tv Boxes using the Amlogic U2C remote controller
#
# Location of remote.conf: root of the Open/LibreElec startup disk (USB, MC, NaND)
#
# factory_code each device has it's unique factory code.
# pattern: custom_code(16bit) + index_code(16bit)
# examble: 0xff000001 = 0xff00(custom_code) + 0001(index_code)
#
# work_mode
# 0 : software mode
# 1 : hardware mode
#
# repeat_enable
# 0 : disable repeat
# 1 : enable repeat
#
# 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 enable
#
# 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
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# KEY ASSIGNMENT FORMAT:
#
# KEY ACTION #COMMENT
#
# 0x00 000 #EXAMPLE
#
# ORIGINAL:
#
# 0x5f 45 #X-STOP (K-SQUARE)
#
# ADJUSTED:
#
# 0x5f 113 #MUTE (K-SQUARE)
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Amlogic U2C remote (Blue OK button and TV controls, red power button).
#
factory_code = 0xdf000001
work_mode = 0
repeat_enable = 1
repeat_delay = 40
repeat_period = 39
release_delay = 121
debug_enable = 1
#
fn_key_scancode = 0x03 #MOUSE
left_key_scancode = 0x47 #LEFT
right_key_scancode = 0x07 #RIGHT
up_key_scancode = 0x1a #UP
down_key_scancode = 0x48 #DOWN
ok_key_scancode = 0x06 #OK
#
mouse_begin
#
0 0x47 #LEFT
1 0x07 #RIGHT
2 0x1a #UP
3 0x48 #DOWN3
#
mouse_end
#
key_begin
#
0x1c 31 #S-POWERMENU (POWER)
0x01 164 #PLAYPAUSE (TV)
0x5f 113 #MUTE (KBUTTON)
0x4b 168 #REWIND (|<<)
0x4f 208 #FASTFORWARD (>>|)
#
0x47 105 #LEFT
0x07 106 #RIGHT
0x1a 103 #UP
0x48 108 #DOWN
0x06 28 #ENTER (OK)
#
0x42 102 #HOME (HOUSE)
0x0a 14 #BACKSPACE (BACK ARROW)
0x18 46 #CONTEXTMENU (DOCUMENT)
#
0x0c 11 #KEY No.0
0x54 2 #KEY No.1
0x16 3 #KEY No.2
0x15 4 #KEY No.3
0x50 5 #KEY No.4
0x12 6 #KEY No.5
0x11 7 #KEY No.6
0x4c 8 #KEY No.7
0x0e 9 #KEY No.8
0x0d 10 #KEY No.9
#
0x10 24 #O-CODEC INFO (BACKSPACE)
0x41 23 #INFO (GLOBE)
#
0x5c 114 #VOLUMEDOWN (VOL-)
0x5d 115 #VOLUMEUP (VOL+)
#
repeat_key_begin
#
0x47 105 #LEFT
0x07 106 #RIGHT
0x1a 103 #UP
0x48 108 #DOWN
0x5d 104 #PAGEUP (VOL+)
0x5c 109 #PAGEDOWN (VOL-)
#
repeat_key_end
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
## ##
### 0x52 nn #MOUSE (!!! NEVER !!! use this line, this key is mapped in fn_key_scancode) ###
## ##
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# UNASSIGNED
#
# 0x5f 45 #X-STOP (THUMBS UP)
#
# 0x4d 113 #MUTE
# 0x09 364 #FAVORITES
# 0x42 102 #HOME
# 0x0a 14 #BACK
# 0x4f 171 #CONFIG
#
# 0x09 398 #RED
# 0x11 399 #GREEN
# 0x54 400 #YELLOW
# 0x4f 401 #BLUE
#
# 0x5d 104 #PAGEUP
# 0x5c 109 #PAGEDOWN
#
key_end
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
A95X_Remote_Blue.zip