S805 Remote.conf Doesn't work

  • Hello Everyone:


    Just installed LibreElec MXq 7.0 (Kodi 16.1) version on my Acemax MXq s805 , Before i flashed my box, I have copied remote.conf from Android system/etc folder and then pasted into LibreElec storage/.config folder. I rebooted my MXq but my remote still doesnt work ..


    Can anyone assist me what i am doing wrong ?


    Here is my remote.conf


    #*********************************************************************************************************
    #this file is configuration for each factory remote device
    # work_mode 0 oftware 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
    #*************************************************************************************************************
    #amlogic NEC remote
    factory_code = 0x40400001
    work_mode = 0
    repeat_enable = 1
    repeat_delay = 40
    repeat_peroid = 39
    release_delay = 121
    debug_enable = 1


    fn_key_scancode = 0x47
    left_key_scancode = 0x10
    right_key_scancode = 0x11
    up_key_scancode = 0x0b
    down_key_scancode = 0x0e
    ok_key_scancode = 0x0d


    mouse_begin
    0 0x10
    1 0x11
    2 0x0b
    3 0x0e
    mouse_end


    key_begin
    0x43 113 #MUTE


    0x01 2 #No.1
    0x02 3 #No.2
    0x03 4 #No.3
    0x04 5 #No.4
    0x05 6 #No.5
    0x06 7 #No.6
    0x07 8 #No.7
    0x08 9 #No.8
    0x09 10 #No.9
    0x00 11 #N0.0


    0x45 125 #MENU
    0x42 1 #BACK/EXIT
        
    0x0d 97 #ENTER/OK
    0x10 105 #LEFT
    0x0b 103 #UP
    0x0e 108 #DOWN
    0x11 106 #RIGHT


    0x18 115 #VOL+
    0x17 114 #VOL-
        
    0x0c 14 #DEL
        
    0x4d 116 #Power


    0x1a 102 #home
    0x54 200 #setting
    0x53 119 #media_pause
    0x44 52 #period
    0x57 70 #explorer
        
    0x1e 123 #MEDIA_NEXT
    0x1f 122 #MEDIA_PREVIOUS
    0xf1 140 #F10/factory_test
    0x5b 205 #PROG_GREEN/MUSIC
    0xb1 202 #PROG_RED/VIDEO
    0xb2 204 #PROG_BLUE/APP
    0xb3 206 #PROG_YELLOW


    key_end
    repeat_key_begin


    0x43 113 #MUTE


    0x01 2 #No.1
    0x02 3 #No.2
    0x03 4 #No.3
    0x04 5 #No.4
    0x05 6 #No.5
    0x06 7 #No.6
    0x07 8 #No.7
    0x08 9 #No.8
    0x09 10 #No.9
    0x00 11 #N0.0


    0x45 125 #MENU
    0x42 1 #BACK/EXIT
        
    0x0d 97 #ENTER/OK
    0x10 105 #LEFT
    0x0b 103 #UP
    0x0e 108 #DOWN
    0x11 106 #RIGHT


    0x18 115 #VOL+
    0x17 114 #VOL-
        
    0x0c 14 #DEL
        
    0x4d 116 #Power


    0x1a 102 #home
    0x44 52 #period


    0x1e 120 #MEDIA_FAST_FORWARD
    0x1f 121 #MEDIA_REWIND
    repeat_key_end

  • SSH into your box, run "dmesg -c" to clear the log. Press a few buttons on the remote and then run "dmesg -c" again. What does it say?

  • Hi, sorry to hijack this thread but I have the exact same problem and you seem to be willing to help :) I have two MXQ Pro 4K's with different remotes. One has factory_code 0x4040000, the other factory_code 0xfe010001. I found these codes in remote.conf on android with root explorer. The remote with factory_code 0xfe010001 I can get to work on both boxes by copying the same remote.conf that I found in android root to the LibreELEC SD card, the other remote however will not work on both boxes and I can't figure out why.


    I tried running "dmesg-c" and these were the results for pushing on the power button, ok button and directional buttons:


    LibreELEC:~ # dmesg -c
    [ [email protected]] remote: Wrong custom code is 0xae517f80
    [ [email protected]] remote: Wrong custom code is 0xf20d7f80
    [ [email protected]] remote: Wrong custom code is 0xd9267f80
    [ [email protected]] remote: Wrong custom code is 0xd8277f80
    [ [email protected]] remote: Wrong custom code is 0xd7287f80
    [ [email protected]] remote: Wrong custom code is 0xda257f80


    So it is connecting! I've got hope again :D


    This is the remote.conf for that remote:


    #amlogic NEC remote
    factory_code = 0x40400001
    work_mode = 0
    repeat_enable = 1
    repeat_delay = 40
    repeat_peroid = 39
    release_delay = 121
    debug_enable = 1


    fn_key_scancode = 0x00
    left_key_scancode = 0x51
    right_key_scancode = 0x50
    up_key_scancode = 0x16
    down_key_scancode = 0x1a
    ok_key_scancode = 0x13


    mouse_begin
    0 0x51 //mouse key left
    1 0x50 //mouse key right
    2 0x16 //mouse key up
    3 0x1a //mouse key down
    mouse_end
    key_begin
    0x11 102 #HOME
    0x19 158 #EXIT
    0x4c 125 #SETUP(MENU)
    0x40 116 #ON/OFF
    0x18 115 #VOL+
    0x10 114 #VOL-
    0x16 103 #UP
    0x51 105 #LEFT
    0x13 97 #DPAD_CENTER
    0x50 106 #RIGHT
    0x1a 108 #DOWN
    0x41 113 #MUTE
    0x5a 119 #PLAY_PAUSE
    0x0a 257 #MUSIC
    0x49 261 #PICTURE PLAYER
    0x4d 263 #SHORTCUT_VIDEOPLAYER
    0x48 262 #SHORTCUT_FILEBROWSER
    0x03 217 #SEARCH
    0x0e 70 #267->WEBSITE #70-->EXPLORE
    0x43 127 #SETTINGS
    0x54 120 #FAST_FORWARD
    0x55 121 #REWIND
    0x59 122 #PREV
    0x58 123 #NEXT
    0x4e 2 #1
    0x0d 3 #2
    0x0c 4 #3
    0x4a 5 #4
    0x09 6 #5
    0x08 7 #6
    0x46 8 #7
    0x05 9 #8
    0x04 10 #9
    0x01 11 #0
    0x42 14 #DEL
    0x52 128 #MEDIA_STOP
    0x45 264 #ONEKEY_ZOOM
    0x06 265 #SHORTCUT_SUBTITLE
    0x44 266 #SHORTCUT_AUDIO
    0x0f 255 #MAIN_MENU f7
    0x12 269 # F9
    key_end



    EDIT: I eventually figured it out. Those customs codes I was getting from dmesg -c all ended in 7f80. I found a remote config for a Mini M8S II with factory_code 0x7f800001, tried using this factory_code in my remote.conf didn't work and the remote.conf from the Mini M8S didn't map all buttons correctly, but I was able to fix this by copying some of the codes from my remote.conf to the other one. All buttons except fast forward and rewind now work.

    Edited once, last by freekdl ().