Advertisement
Fredouye

remote.conf

Apr 10th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. #*********************************************************************************************************
  2. #this file is configuration for each factory remote device
  3. # work_mode 0 : software mode 1 :hardware mode
  4. # repeat_enable 0 :disable repeat 1 :enable repeat
  5. #
  6. # factory_code each device has it's unique factory code.
  7. # pattern:custom_code(16bit)+index_code(16bit)
  8. # examble: 0xff000001 = 0xff00(custom cod) 0001 (index)
  9. #
  10. # release_delay unit:ms.release will report from kernel to user layer after this period of time
  11. # from press or repeat triggered.
  12. #
  13. # debug_enable 0 :debug disable 1 :debug disable
  14. #
  15. # SW MODE:
  16. # bit_count how many bits in each frame
  17. # tw_leader_act time window for leader active
  18. # tw_bit0 time window for bit0 time.
  19. # tw_bit1 time window for bit1 time
  20. # tw_repeat_leader time window for repeat leader
  21. # REG
  22. # reg_base_gen set value for PREG_IR_DEC_BASE_GEN
  23. # reg_control set value for PREG_IR_DEC_CONTROL
  24. # reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE
  25. # reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE
  26. # reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE
  27. # reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME
  28. #
  29. # Linux Key Code translations can be found here https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
  30. # Turn Kodi Debug Logging on (System/Logging/Debug Logging) to obtain Scancodes (reported in Hex, recorded as Dec here) and Linux key names
  31. # 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
  32. #*************************************************************************************************************
  33. #amlogic NEC remote
  34. factory_code = 0x7f800001
  35. work_mode = 0
  36. repeat_enable = 1
  37. repeat_delay = 130
  38. repeat_period = 120
  39. release_delay = 20
  40. debug_enable = 1
  41.  
  42. fn_key_scancode = 0x52
  43. left_key_scancode = 0x25
  44. right_key_scancode = 0x27
  45. up_key_scancode = 0x25
  46. down_key_scancode = 0x28
  47. ok_key_scancode = 0x0d
  48. pageup_key_scancode = 0x04
  49. pagedown_key_scancode = 0x1b
  50.  
  51. mouse_begin
  52. 0 0x25
  53. 1 0x27
  54. 2 0x26
  55. 3 0x28
  56. mouse_end
  57.  
  58. ; Gencode Linux ; Key-id Remote key Linux key Comments
  59. key_begin
  60. 0x4d 113 ; 61623 Mute Mute
  61. 0x56 114 ; 61624 Vol down Vol Down
  62. 0x4e 115 ; 61625 Vol up Vol Up
  63. 0x25 105 ; 61570 Left Left
  64. 0x26 103 ; 61568 Up Up
  65. 0x27 106 ; 61571 Right Right
  66. 0x28 108 ; 61569 Down Down
  67. 0x0d 28 ; 61453 Ok Enter changed from 97 (Right Ctl) By code substitution test
  68. 0x1b 158 ; 61467 Return Back By code substitution test
  69. 0x53 102 ; 61576 Home Home By implication of Linux key
  70. 0x51 116 ; Power Power By implication of Linux key, couldn't catch key-id
  71. 0x49 139 ; 61656 Menu Menu
  72. 0x52 388 ; 61672 Mouse Text By implication of Linux key
  73. 0x31 2 ; 61489 Number 1 1
  74. 0x32 3 ; 61490 Number 2 2
  75. 0x33 4 ; 61491 Number 3 3
  76. 0x34 5 ; 61492 Number 4 4
  77. 0x35 6 ; 61493 Number 5 5
  78. 0x36 7 ; 61494 Number 6 6
  79. 0x37 8 ; 61495 Number 7 7
  80. 0x38 9 ; 61496 Number 8 8
  81. 0x39 10 ; 61497 Number 9 9
  82. 0x30 11 ; 61488 Number 0 0
  83. 0x44 14 ; 61448 <X Backspace
  84. 0xbd 208 ; 61637 Reverse Fast Forward Changed from 122 (HANGEUL)
  85. 0xbb 64 ; 61589 Forward F6 Changed from 123 (HANJA) F6 No interpretation
  86. 0x09 65 ; 61590 Media F7 Changed from 389 (Dvd) F7 No interpretation
  87. 0x58 60 ; 61585 1/a F2
  88. 0x11 66 ; 61591 Music F8 Changed from 213 (Sound) F8 interpreted as Mute
  89. 0x54 67 ; 61592 Web F9 Changed from 70 (Scrollock) F9 interpreted as Vol Down
  90. 0x4f 68 ; 61593 App F10 Changed from 392 (Audio) .... F10 interpreted as Vol Up
  91. key_end
  92. repeat_key_begin
  93. 0x4d 113 ; 61623 Mute Mute
  94. 0x56 114 ; 61624 Vol down Vol Down
  95. 0x4e 115 ; 61625 Vol up Vol Up
  96. 0x25 105 ; 61570 Left Left
  97. 0x26 103 ; 61568 Up Up
  98. 0x27 106 ; 61571 Right Right
  99. 0x28 108 ; 61569 Down Down
  100. 0x0d 28 ; 61453 Ok Enter changed from 97 (Right Ctl) By code substitution test
  101. 0x1b 158 ; 61467 Return Back By code substitution test
  102. 0x53 102 ; 61576 Home Home By implication of Linux key
  103. 0x51 116 ; Power Power By implication of Linux key, couldn't catch key-id
  104. 0x49 139 ; 61656 Menu Menu
  105. 0x52 388 ; 61672 Mouse Text By implication of Linux key
  106. 0x31 2 ; 61489 Number 1 1
  107. 0x32 3 ; 61490 Number 2 2
  108. 0x33 4 ; 61491 Number 3 3
  109. 0x34 5 ; 61492 Number 4 4
  110. 0x35 6 ; 61493 Number 5 5
  111. 0x36 7 ; 61494 Number 6 6
  112. 0x37 8 ; 61495 Number 7 7
  113. 0x38 9 ; 61496 Number 8 8
  114. 0x39 10 ; 61497 Number 9 9
  115. 0x30 11 ; 61488 Number 0 0
  116. 0x44 14 ; 61448 <X Backspace
  117. 0xbd 208 ; 61637 Reverse Fast Forward Changed from 122 (HANGEUL)
  118. 0xbb 64 ; 61589 Forward F6 Changed from 123 (HANJA) F6 No interpretation
  119. 0x09 65 ; 61590 Media F7 Changed from 389 (Dvd) F7 NO interpretation
  120. 0x58 60 ; 61585 1/a F2
  121. 0x11 66 ; 61591 Music F8 Changed from 213 (Sound) F8 interpreted as Mute
  122. 0x54 67 ; 61592 Web F9 Changed from 70 (Scrollock) F9 interpreted as Vol Down
  123. 0x4f 68 ; 61593 App F10 Changed from 392 (Audio) .... F10 interpreted as Vol Up
  124. repeat_key_end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement