-
Notifications
You must be signed in to change notification settings - Fork 0
Infra red remote control on the Recalbox (EN)
The Recalbox can be controlled by almost any infra red remote control.
This feature is for the Kodi media center.
The cost is about 2€ and it is quite simple to do.
Warning: require Recalbox 4.0.0 or over
To make all this work, you need mainly one thing, an IR receiver : a 38KHz TSOP4838 module (it works with some other modules). You can find it in any electronic shop for about 1€ or on internet on amazon, ebay, ...
For example, i got mine here :
- http://www.amazon.fr/s/field-keywords=38KHz+TSOP4838
- http://www.amazon.com/s/field-keywords=38KHz+TSOP4838
To plug easyly your IR receiver, you need 3 jumpers. You can get them at the same place you get your IR receiver for some cents.
To plug the IR and the jumpers, use the following schema :
At the end, it looks like this :
Almost any remote control is supported, as soon it uses standards.
Personnaly, i've tested with success all the remotes of the house :
- the remote of the Philips hifi.
- the remote of the Samsung video recorder.
- an universal remote control.
- the remote of the Apple computer.
# II - Configuration
Open the file config.txt at the top of your sdcard (or /boot/config.txt from ssh)
Edit the following line and remove the #
#dtoverlay=lirc-rpi
To get
dtoverlay=lirc-rpi
Reboot the system.
reboot
## B - Remote configuration
Check that the hardware is working.
Connect to the Recalbox via ssh or directly on the terminal (see Root access on terminal)
and run the following commands :
lsmod
You must find 1 line starting by lirc_rpi.
Then, run the following command :
mode2 -d /dev/lirc0 -r -m
Each time you press a key on any remote control in the direction of the Recalbox, it will display numbers. Press Ctrl+c to quit.
Type the following command : irrecord -H default /tmp/custom.conf
Press enter to continue.
Press enter to continue.
Now start pressing buttons on your remote control for approximately one second.
Enter the name of a button among the following names and press the button on your remote :
- KEY_LEFT (left)
- KEY_RIGHT (right)
- KEY_UP (up)
- KEY_DOWN (down)
- KEY_OK (ok)
- KEY_EXIT (back/quit)
- KEY_PLAY (play and pause)
- KEY_STOP (stop)
- KEY_VOLUMEUP (volume up)
- KEY_VOLUMEDOWN (volume down)
- KEY_INFO (display information about the playing media)
- KEY_MUTE (mute volume)
- KEY_POWER (quit)
- KEY_MENU (menu)
And eventually the following one :
- KEY_ENTER
- KEY_DELETE
- KEY_MEDIA
- KEY_RECORD
- KEY_PAUSE
- KEY_FASTFORWARD
- KEY_REWIND
- KEY_CHANNELUP
- KEY_CHANNELDOWN
- KEY_NEXT
- KEY_PREVIOUS
- KEY_EPG
- KEY_SUBTITLE
- KEY_LANGUAGE
- KEY_ZOOM
- KEY_VIDEO
- KEY_AUDIO
- KEY_NUMERIC_1
- KEY_NUMERIC_2
- KEY_NUMERIC_3
- KEY_NUMERIC_4
- KEY_NUMERIC_5
- KEY_NUMERIC_6
- KEY_NUMERIC_7
- KEY_NUMERIC_8
- KEY_NUMERIC_9
- KEY_NUMERIC_0
- KEY_RED
- KEY_GREEN
- KEY_YELLOW
- KEY_BLUE
- KEY_PVR
- KEY_RADIO
Do the same for all (or a maximum) buttons of the remote.
When all the buttons are registered, press enter to continue and press an arbitrary button repeatedly as fast as possible. Make sure you keep pressing the SAME button and that you DON'T HOLD the button down!.
At the end, the program is automatically closed.
If you want to restart, remove the file by running : rm /tmp/custom.conf
and restart the irrecord.
Edit the file by running the command : nano /tmp/custom.conf
Replace
name /tmp/custom.conf
by
name customremote
Keep the file by running: mv /tmp/custom.conf /recalbox/share/system/.config/lirc/lircd.conf
Restart your Recalbox or just run the following command : /etc/init.d/S25lircd restart
Type the command irw
Each time your press a button on the remote, you will see a line with the name of the button.
Press ctrl+c to quit.
Now start Kodi and check it works ;-)
You can customize the remote mapping by editing this file :
/recalbox/share/system/.kodi/userdata/Lircmap.xml
Warning: if you have removed manually the ~/.kodi directory and restart kodi without restarting the recalbox, you will not get the recalbox kodi customizations including the Lircmap.xml.
Consider copying /recalbox/share_init/system/.kodi/userdata/Lircmap.xml to /recalbox/share/system/.kodi/userdata/Lircmap.xml.
You can edit the mapping between buttons and kodi action in this file :
/recalbox/share/system/.kodi/userdata/keymaps/remote.xml
About the fact that "Back" doesn't stop a film in Kodi :
If you don't like the default Kodi behavior or have only 1 button on your remote,
you can replace in the file remote.xml and in the section "<FullscreenVideo>", "<back>Back</back>" by "<back>Stop</back>"
This point is more for cec remote.
If your cec remote doesn't transfer the volume up/down, you can use some other key by replacing for example in the remote.xml in the global section :
<skipplus>SkipNext</skipplus>
<skipminus>SkipPrevious</skipminus>
by
<skipplus>VolumeUp</skipplus>
<skipminus>VolumeDown</skipminus>
I personnaly use the Refocus skin. To make pause easier, mainly when using an Apple remote, you can : modify the following file
~/.kodi/addons/skin.refocus/720p/VideoOSD.xml
by replacing
<defaultcontrol always="true">700</defaultcontrol>
by
<defaultcontrol always="true">705</defaultcontrol>
The 3.3.0 beta documentation is written in English and is then translated by the community. If you are on the 3.3.0 beta, please refer to English documentation for now.
La documentation de la beta 3.3.0 est écrite en anglais et ensuite traduite par la communauté. Si vous êtes sur la 3.3.0 beta, préférez la documentation anglaise.
English
- Home
- Installation
- Manual
- Manual 3.2.x (old)
- recalbox.conf
- recalbox.conf 3.2.x (old)
- Emulators
- recalboxOS detailled
- Compilation & Modifications
- Development - basics
- Releases
- Bug report
- Translation
- Mini How-To
- Peripheral Compatibility
- Board Compatibility
- Security
- Credits
Français (En traduction pour la 3.3.0)
- Home
- Installation
- Notice
- Notice 3.2.x (old) (FR)
- recalbox.conf
- recalboxOS détaillé
- Compilation & Modifications
- Signalement de bugs
- Traduction
- Mini How-To
- Périphériques compatibles
- FAQ
- Sécurité
Deutsch - WIKI
- Home
- Installation
- Anleitung - V1.08
- recalbox.conf
- Emulatoren
- recalboxOS im Detail
- Veröffentlichungen
- Fehler melden
- Mini How-To
- Peripherie - Kompatibilität
- System - Kompatibilität - V4.1
- Sicherheit
- Credits
Español
- Home
- Instalación
- Manual
- Manual 3.2.x (old)
- recalbox.conf
- recalbox.conf 3.2.0 (old)
- Emuladores
- recalboxOS al detalle
- Compilación y modificaciones
- Reportar errores
- Traducción
- Mini COMO
- Periféricos compatibles
- Créditos
Português
- Home
- Instalação
- Manual
- recalbox.conf
- Emuladores
- recalboxOS detalhado
- Compilação & Modificações
- Reportar bugs
- Tradução
- Periféricos Compatíveis
- Créditos
Italiano