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:
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.