How to configure multiple remotes with meson-ir

Combining multiple remote keymaps for use with meson-ir

As an example I will cofigure the mce and khadas remotes to be used together.

edit /storage/.config/rc_maps.cfg so that it contains the following

meson-ir        *       multi_rc_config

Now create a file named multi_rc_config in the /storage/.config/rc_keymaps directory which will be our multi remote combined keymap file.

The first line of the file is the important part

# table multi_rc_config, type: NEC RC6

After where it says type: you need to list any remote protocols that your remotes use. In this example I have added NEC and RC6, since the khadas remote uses the NEC protocol and the mce remote uses the RC6 protocol. (You can find the protocol that a remote requires from the first line of that remotes existing keymap file. Also if you are combining multiple remotes that use the same protocol you only need to have that protocol here once.)

Now after you have the first line in place you need to copy and paste the contents of the remote keymap files you want to combine. Save the file and reboot

The end result of combining the mce and khadas remotes should look something like this.

multi_rc_config (1.7 KB)

There are numerous existing keymaps in the /usr/lib/udev/rc_keymaps/ directory and others can be found elsewhere on the forum.

As an example you can also combine keymaps via the command line. If you wanted to quickly make a keymap for both the mce and khadas remotes you could do the following from ssh.

echo "# table multi_rc_config, type: NEC RC6" > /storage/.config/rc_keymaps/multi_rc_config
cat /usr/lib/udev/rc_keymaps/rc6_mce >> /storage/.config/rc_keymaps/multi_rc_config
cat /usr/lib/udev/rc_keymaps/kvim >> /storage/.config/rc_keymaps/multi_rc_config
4 Likes