[HowTo] Register and use two remote controllers at the same time

  • Amlogic supports the second remote and use them at the same time, but LibreELEC ignores the remotesecond.conf file in the .config folder.


    Here is the hack:


    Scenario:


    I have Mini MX-G box running kszaq's build. The stock remote works fine, as well as my LG TV remote via CEC.


    One small issue was, in my case, some buttons on the TV's remote are not recognized such as, Red, Green, Yellow and Blue, also some of those most used keys (ContextMenu, Codec etc.) are not available there.


    I can remap my TV's remote with a new remote.conf (many posts for that) and it works alone nicely, but the stock remote no longer works with this setup.


    What I would like is that both remote controllers work at the same time.Using two remote controllers at the same time


    Solution:


    After checked AmLogic's remote config document and I found this option:
     

    Code
    1. factory_infcode = 1



    According to the document, the 2nd config file should be named as remotesecond.conf, and with factory_infcode=1 in it.
    I modified my TV's remote config file, name it to remotesecond.conf and put it into /storage/.config, reboot the box ...
    No, it doesn't work. LibreELEC simply ignores the file.


    Interestingly, after I manually run 'remotecfg remotesecond.conf', both remotes work beautifully. Great!


    So I just put the command into autostart.sh, reboot box, boom everything works. Make sure your autostart.sh is executable.
     

    Shell-Script
    1. #!/bin/bash
    2. (/usr/bin/remotecfg /storage/.config/remotesecond.conf)&
    3. exit

    Beelink Mini MX 2G/16G - 02b, LE 7.0.2.002 on SD, SPDIF Passthrough
    MXQ S85 1G/8G, LE 7.90 beta2 Nand

    The post was edited 1 time, last by mickr ().


  • Nice find! I will look into integrating this into remote config loading script.


    Thanks kszaq , that would be great!
    [hr]
    This is my LGTV remotesecond.conf file:


    This is used as CEC enabled. It only remapped few buttons since most of them already works through CEC.
    - Exit now is mapped as 'Home', it was acting the same as 'Return'
    - Red is assigned as 'ContextMenu'
    - Green is 'o' to bring up codec when play videos
    - Yellow now can take screenshot which is saved in /storage/screenshots
    - Blue is 'L' to switch 'Subtitles'


    Beelink Mini MX 2G/16G - 02b, LE 7.0.2.002 on SD, SPDIF Passthrough
    MXQ S85 1G/8G, LE 7.90 beta2 Nand

    The post was edited 1 time, last by mickr ().

  • This is a great find and something I may play with in the future, button for subs, weather and favs are all obvious ones. Thanks mickr.

    Running:
    S805 - MXQ.arm 7.0.3.1 from Nand on all black MXQ, board number: 'AM_MXQ_A 20150825'
    S905/X - None at the mo!

  • I checked for the file and it's not there so I went ahead and followed the instructions. Not easy but I am proud to say I did it!!!!!!!


    Now on to final configuration of the Harmony.
    [hr]
    I need my OEM remote remote.conf and I cant find one that works. Fortunately, the standard kszaq 905X build works perfectly out of the box. Where can I find that keymap and convert it into a remote.conf?

    The post was edited 1 time, last by Skripo ().

  • Good skills, mickr - excellent find!

    MiniMX-G 2/16GB - TWRP: LE 8.1.8 USB (X2) -|- X96 2/16GB - TWRP: LE 8.1.8 USB (X2)


  • After checked AmLogic's remote config document and I found this option:
     

    Code
    1. factory_infcode = 1


    Very good find.
    As I see factory_inf_code can be any number (not only 0 and 1) so you can put any number of remote to one file (see here the remote.conf structure).
    Unfortunately Kodi/LE cannot handle this (only Android can).

    RPI3 1GB, MINI MX-G 2GB, Mini M8S II 2GB (7.0-devel-20170430185848-r23797-g7772046), H96 Pro 3GB (8.2), H/K AVR 161S, Philips 55PUS8809/12 4k tv
    pel.hu

    The post was edited 1 time, last by Pelican ().

  • The post was edited 1 time, last by gor ().