Posts by Charbs

    Yes, i mapped that button using the addon "keymap editor', so now it opens the addon "commands", and show me the list of actions i customized with the addon "commands".
    Now when i click the mouse button, i can choose to launch artwork downloader, clean database, etc.
    I used that way to get more buttons on the remote :)

    Also, i remapped the power button to open the kodi power menu instead of shutdown.

    I tried using the keymap editing program but everytime it asked me to hit the button i wanted to edit there would be no response from the mouse button. Almost like the program didnt recognize it. So I had to go the old fashion way and edit the remote.conf file.

    Didnt change. Key repeat still temporarily disabled after using stop/mouse button. But it comes back after hitting it again. Weird.

    Edit: Got it working. Just had to put # on fn_key_scancode = 0x17
    #fn_key_scancode = 0x17

    All seems fine now. Thank you for the help

    Have you changed both lines with 166?
    key_begin
    key_end

    Also try to delete or block with # these ones:
    ok_key_scancode = 0x55
    pageup_key_scancode = 0x04
    pagedown_key_scancode = 0x1b

    Ok that seemed to get the OK button back to normal after hitting stop/mouse. One last problem. After hitting stop/mouse it disables key repeat until i hit mouse again. For example if i press down arrow to quickly scroll through a list of movies it only goes down one press at a time instead of scrolling down fast while holding. If i hit mouse again, key repeat returns.

    This is what I have now:

    #*********************************************************************************************************
    #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
    #*************************************************************************************************************
    #amlogic NEC remote
    factory_code = 0xff000001
    work_mode = 0
    repeat_enable = 1
    repeat_delay = 40
    repeat_peroid = 39
    release_delay = 121
    debug_enable = 0

    fn_key_scancode = 0x17
    left_key_scancode = 0x47
    right_key_scancode = 0x15
    up_key_scancode = 0x46
    down_key_scancode = 0x16
    #ok_key_scancode = 0x55
    #pageup_key_scancode = 0x04
    #pagedown_key_scancode = 0x1b

    mouse_begin
    # 0 0x47
    # 1 0x15
    # 2 0x46
    # 3 0x16
    mouse_end

    key_begin
    0x18 116
    0x54 2
    0x48 3
    0x7 4
    0x50 5
    0x12 6
    0x11 7
    0x4c 8
    0xe 9
    0xd 10
    0xc 11
    0x4b 14
    0x6 172
    0x46 103
    0x40 1
    0x47 105
    0x55 28
    0x15 106
    0x4 139
    0x16 108
    0x17 166
    0x14 114
    0x8 113
    0x10 115
    0x42 119
    key_end
    repeat_key_begin
    0x18 116
    0x54 2
    0x48 3
    0x7 4
    0x50 5
    0x12 6
    0x11 7
    0x4c 8
    0xe 9
    0xd 10
    0xc 11
    0x4b 14
    0x6 172
    0x46 103
    0x40 1
    0x47 105
    0x55 28
    0x15 106
    0x4 139
    0x16 108
    0x17 166
    0x14 114
    0x8 113
    0x10 115
    0x42 119
    repeat_key_end

    New problem. Although the mouse button does in fact stop playback, it now disables the OK button and the blue highlight around the item disappears when i try to select something right after I hit the mouse/stop button. I have to press the mouse button again to use the OK button. So strange.

    fn_key_scancode is usually a programmable button, it might handle some other function.
    When the mouse button is pressed you can move the pointer UP/DOWN/LEFT/RIGHT by pressing the circle around OK button. And by adding # you just block unwanted lines.
    116 - a standard linux command as listed there

    You may also have a look at creating remote config from scratch

    In that link you posted for the command list it seems like I should be using 128 not 116

    #define KEY_POWER 116 /* SC System Power Down */

    #define KEY_STOP 128 /* AC Stop */


    Charbs

    It's pretty simple

    Thanks so much. I will give this a try.
    Is the mouse key on all remote.conf always the fn_key_scancode ?
    Also how would I have found out that global stop was 116? Is this listed somewhere?
    And just curious what the # does when adding it to the front of the lines you suggested.

    I have a tronsmart s95x that is running LE on internal. It works fine on my main tv but when I try it on a different tv there is no sound output at all. From menu or videos. Tv and box both set to PCM audio. HDMI only connected.

    Anyone know what this could be?

    Edit: Found the fix. Just had to change the audio output from Optimized to Fixed and audio now coming through.

    Is it possible to power on a Kodi box with a CEC remote? Official remote might be broken, looking for other ways to boot up the box while not having to pull the power.

    Tronsmart S95.

    FAQ
    [hr]
    Q: My remote control does not work, what can I do?
    A: Grab remote.conf file from Android firmware (it's available in /system/etc) and copy it to Configuration folder: /storage/.config over SSH or \\your_box_IP\Configuration using Windows shares. You can also put that file to main folder of your SD card. You may need to remap some buttons.

    Can someone help me to get my remote working. I have a Tronsmart S95x. Ive copied the remote.conf file from android over to LE in the .config folder. As well as putting a copy in the root of the sd card, reboot, and still no working remote. What am I missing? I see that I may need to remap some buttons but there is absolutely no response at all from anything I try. I also have a Tronsmart S95 Pro which works really well, so something do do with this 905x chip and the default remote I guess.

    The remote works to power the box on but nothing else.

    Also, my remote from my Tronsmart MXIII Plus can control the S95x perfectly if I put a custom remote.conf file on the box, yet the S95x remote does nothing. It works in android, just not LE Kodi. Im loosing my mind over here.

    So I guess what I need to do is find a custom remote.conf for my specific remote. That file doesnt exist on the S95 pro so I have nothing to copy over to the S95x.

    This is my remote:

    Anyone got any ideas?
    Thanks.