The Recalbox can be controlled via any Infrared remote control. This feature is for Kodi.
It will cost you about 2€ and is very simple to set up.
To work, you will need an IR receiver like a 38KHz TSOP4838 module; note that it can also work with some other components. You can buy one on the internet for about 1€ at any electronics store or online.
In order to easily connect your receiver without soldering, you will need 3 dupont F/F cables. You can get them from the same retailers as your receiver for a few cents.
To connect the receiver and the cables, follow the diagram below:
Example of assembly :
Almost all remote controls are supported, provided they use standards.
All these remotes have been successfully tested:
#
:#dtoverlay=lirc-rpi
Becomes:
dtoverlay=lirc-rpi
Let's check that the hardware is working:
lsmod
You should see a line starting with lirc_rpi
.
mode2 -d /dev/lirc0
Ctrl
+C
to exit.irrecord -H /recalbox/share/custom.conf
Enter
to continue.customremote
as the remote name and press Enter
to continue.Enter the name of your key from the names below and press the key on the remote control:
And eventually:
To set up a button again, retype its name and start again.
Enter
to continue.rm /tmp/custom.conf
irrecord
.lircd.conf
file with your :mv /recalbox/share/custom.conf /recalbox/share/system/.config/lirc/lircd.conf
lircd
service with the command:/etc/init.d/S25lircd restart
irw
.Ctrl
+ C
to exit./recalbox/share/system/.kodi/userdata/Lircmap.xml
file.If you have manually deleted the
~/.kodi
folder and restarted Kodi without first restarting your Recalbox, you will not see the customizations in Kodi or theLircmap.xml
file.
/recalbox/share_init/system/.kodi/userdata/Lircmap.xml
to /recalbox/share/system/.kodi/userdata/Lircmap.xml
You can change the definition of keys and actions in the file /recalbox/share/system/.kodi/userdata/keymaps/remote.xml
.
This is for people who don't like the fact that the Return
button doesn't stop a movie in Kodi or because you only have a single Stop / Return button on your remote.
You can change in the remote.xml file the section "", "Back" by "Stop".
This item is for CEC remotes.
If your CEC remote control does not transfer volume commands, you can use other keys by replacing for example in remote.xml in the global section :
<skipplus>SkipNext</skipplus>
<skipminus>SkipPrevious</skipminus>
by
<skipplus>VolumeUp</skipplus>
<skipminus>VolumeDown</skipminus>
On the Refocus skin to make pausing easier (mainly on an Apple remote), you can modify the file ~/.kodi/addons/skin.refocus/720p/VideoOSD.xml
by replacing :
<defaultcontrol always="true">700</defaultcontrol>
By this:
<defaultcontrol always="true">705</defaultcontrol>