Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #*********************************************************************************************************
- #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
- #
- # Linux Key Code translations can be found here https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
- # Turn Kodi Debug Logging on (System/Logging/Debug Logging) to obtain Scancodes (reported in Hex, recorded as Dec here) and Linux key names
- # Use Kodi Keymap Editor add-on, choose to edit a command and set the command equal to different keys, document each "Key-Id" ie. the 5 digit number
- #*************************************************************************************************************
- #amlogic NEC remote
- factory_code = 0x7f800001
- work_mode = 0
- repeat_enable = 1
- repeat_delay = 130
- repeat_period = 120
- release_delay = 20
- debug_enable = 1
- fn_key_scancode = 0x52
- left_key_scancode = 0x25
- right_key_scancode = 0x27
- up_key_scancode = 0x25
- down_key_scancode = 0x28
- ok_key_scancode = 0x0d
- pageup_key_scancode = 0x04
- pagedown_key_scancode = 0x1b
- mouse_begin
- 0 0x25
- 1 0x27
- 2 0x26
- 3 0x28
- mouse_end
- ; Gencode Linux ; Key-id Remote key Linux key Comments
- key_begin
- 0x4d 113 ; 61623 Mute Mute
- 0x56 114 ; 61624 Vol down Vol Down
- 0x4e 115 ; 61625 Vol up Vol Up
- 0x25 105 ; 61570 Left Left
- 0x26 103 ; 61568 Up Up
- 0x27 106 ; 61571 Right Right
- 0x28 108 ; 61569 Down Down
- 0x0d 28 ; 61453 Ok Enter changed from 97 (Right Ctl) By code substitution test
- 0x1b 158 ; 61467 Return Back By code substitution test
- 0x53 102 ; 61576 Home Home By implication of Linux key
- 0x51 116 ; Power Power By implication of Linux key, couldn't catch key-id
- 0x49 139 ; 61656 Menu Menu
- 0x52 388 ; 61672 Mouse Text By implication of Linux key
- 0x31 2 ; 61489 Number 1 1
- 0x32 3 ; 61490 Number 2 2
- 0x33 4 ; 61491 Number 3 3
- 0x34 5 ; 61492 Number 4 4
- 0x35 6 ; 61493 Number 5 5
- 0x36 7 ; 61494 Number 6 6
- 0x37 8 ; 61495 Number 7 7
- 0x38 9 ; 61496 Number 8 8
- 0x39 10 ; 61497 Number 9 9
- 0x30 11 ; 61488 Number 0 0
- 0x44 14 ; 61448 <X Backspace
- 0xbd 208 ; 61637 Reverse Fast Forward Changed from 122 (HANGEUL)
- 0xbb 64 ; 61589 Forward F6 Changed from 123 (HANJA) F6 No interpretation
- 0x09 65 ; 61590 Media F7 Changed from 389 (Dvd) F7 No interpretation
- 0x58 60 ; 61585 1/a F2
- 0x11 66 ; 61591 Music F8 Changed from 213 (Sound) F8 interpreted as Mute
- 0x54 67 ; 61592 Web F9 Changed from 70 (Scrollock) F9 interpreted as Vol Down
- 0x4f 68 ; 61593 App F10 Changed from 392 (Audio) .... F10 interpreted as Vol Up
- key_end
- repeat_key_begin
- 0x4d 113 ; 61623 Mute Mute
- 0x56 114 ; 61624 Vol down Vol Down
- 0x4e 115 ; 61625 Vol up Vol Up
- 0x25 105 ; 61570 Left Left
- 0x26 103 ; 61568 Up Up
- 0x27 106 ; 61571 Right Right
- 0x28 108 ; 61569 Down Down
- 0x0d 28 ; 61453 Ok Enter changed from 97 (Right Ctl) By code substitution test
- 0x1b 158 ; 61467 Return Back By code substitution test
- 0x53 102 ; 61576 Home Home By implication of Linux key
- 0x51 116 ; Power Power By implication of Linux key, couldn't catch key-id
- 0x49 139 ; 61656 Menu Menu
- 0x52 388 ; 61672 Mouse Text By implication of Linux key
- 0x31 2 ; 61489 Number 1 1
- 0x32 3 ; 61490 Number 2 2
- 0x33 4 ; 61491 Number 3 3
- 0x34 5 ; 61492 Number 4 4
- 0x35 6 ; 61493 Number 5 5
- 0x36 7 ; 61494 Number 6 6
- 0x37 8 ; 61495 Number 7 7
- 0x38 9 ; 61496 Number 8 8
- 0x39 10 ; 61497 Number 9 9
- 0x30 11 ; 61488 Number 0 0
- 0x44 14 ; 61448 <X Backspace
- 0xbd 208 ; 61637 Reverse Fast Forward Changed from 122 (HANGEUL)
- 0xbb 64 ; 61589 Forward F6 Changed from 123 (HANJA) F6 No interpretation
- 0x09 65 ; 61590 Media F7 Changed from 389 (Dvd) F7 NO interpretation
- 0x58 60 ; 61585 1/a F2
- 0x11 66 ; 61591 Music F8 Changed from 213 (Sound) F8 interpreted as Mute
- 0x54 67 ; 61592 Web F9 Changed from 70 (Scrollock) F9 interpreted as Vol Down
- 0x4f 68 ; 61593 App F10 Changed from 392 (Audio) .... F10 interpreted as Vol Up
- repeat_key_end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement