-
Notifications
You must be signed in to change notification settings - Fork 26
04. Adding a second remote
SoC Amlogic devices can have two remote controllers work in tandem.
-
Create remotesecond.conf
run
touch remotesecond.conf
edit and construct the file following the remote.conf instructions.
-
Add the line
factory_infcode = 1 # set as second remote
to remotesecond.conf
-
Initialize
run
remotecfg remotesecond.conf
NOTE: some devices may require the second remote to be called during startup. To achieve this, add the following to autostart.sh:
#!/bin/bash
(/usr/bin/remotecfg /storage/.config/remotesecond.conf)&
exit
IMPORTANT:
The second remote configuration file must reside in the same directory as the first one.
This method works ONLY with CoreELEC: |
---|
- Rename the second remote.conf to
remote2.conf
- Save in
/storage/.config/
- Reboot
Multiple remotes can be added this way. |
---|
IMPORTANT:
All remote configuration files must reside in the
/storage/.config/
directory.
-
Edit /storage/.config/rc_maps.cfg
change:
meson-ir * KEYMAP
to
meson-ir * multi_rc_config
-
Create multi_rc_config in /storage/.config/rc_keymaps
touch /storage/.config/rc_keymaps/multi_rc_config
-
Edit multi_rc_config and enter:
# table multi_rc_config, type: PROTOCOL_01 PROTOCOL_02
-
Copy and paste the contents of the KEYMAP files to be combined into the multi_rc_config file.
IMPORTANT:
All remote protocols must be listed.
The protocol required by a remote can be found in the first line of that remotes existing KEYMAP file.
When combining multiple remotes using the same protocol, the protocol has to be listed only once.
-
Separate each remote by protocol:
In this example NEC & RC6 protocols are used.
# table multi_rc_config, type: NEC RC6 # # table kvim, type: NEC # 0x14 KEY_POWER 0x07 KEY_ENTER ... # # table rc6_mce, type: RC6 # 0x800f0400 KEY_NUMERIC_0 0x800f0401 KEY_NUMERIC_1 ... #
-
Save the file and reboot.
KEYMAP files can also be combined via the command line:
-
Create multi_rc_config
touch /storage/.config/rc_keymaps/multi_rc_config
-
Add "# table multi_rc_config, type: NEC RC6"
echo "# table multi_rc_config, type: NEC RC6" > /storage/.config/rc_keymaps/multi_rc_config
-
Merge multiple KEYMAP files
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
HINT: Numerous KEYMAP files can be found in /usr/lib/udev/rc_keymaps/ and the Meson_IR file section of the Repository.
-
Edit the resulting multi_rc_config to verify proper format.
vi /storage/.config/rc_keymaps/multi_rc_config
-
Reboot
Repository for AmRemote & Meson IR Remote Controllers