Support for the Remote


This infrared remote control is a standard replacement remote control for DVD players - It works just as well with the RemotePi Board and Kodi-based mediacenter installations. 2 AAA batteries (not included) are required. The remote uses the RC6 infrared protocol which is supported by the RemotePi Board, LIRC and the Linux kernel driver.

To use the power button of this remote with the RemotePi Board just enter the learning mode on the RemotePi board and press the power button to configure the RemotePi Board to use this button to toggle power. Detailed instructions are here.

If you own a Logitech Harmony remote you can follow these instruction instead : Using Logitech Harmony Remotes with the RemotePi Board

 

Configure your mediacenter installation for this remote

The configuration procedure below will assign the following Kodi functions to the keys : 


OpenElec 8.0.0 and above

OpenElec 8.0.0 ends support for LIRC, therefore the remote is configured using the newer GPIO IR kernel driver method.  

  • Put your SD card in a card reader and access it on a PC or Mac
  • Edit the file config.txt located in the root of the SD card and add the following line at the end of the file (if it is not already there), then save the file. Note : You cannot use Windows Notepad to edit the file as it uses Linux convention for new line characters, it will show without linefeeds under Windows Notepad. You can use Notepad++ or another Linux-compatible text editor.
    dtoverlay=gpio-ir
  • Put the SD card back into the Raspberry Pi and boot
    • CEC HAS TO be disabled for any IR remote to work in Kodi. In OpenElec go to menu System>Settings>System>Input Devices>Peripherals>CEC, press enter again to access the CEC settings and disable it.
    • Use PuTTY to connect to your OpenElec installation, default user name is root, password openelec
    • Key in (mind the . in front of config !) :
      cd .config
      nano /rc_keymaps/mslremote
    • Copy and paste the following text into the editor window
      # table mslremote, type: rc-6
      0x45c KEY_OK
      0x45a KEY_LEFT
      0x45b KEY_RIGHT
      0x459 KEY_DOWN
      0x458 KEY_UP
      0x45c KEY_OK
      0x483 KEY_EXIT
      0x42c KEY_PAUSE
      0x431 KEY_STOP
      0x44b KEY_SUBTITLE
      0x44e KEY_AUDIO
      0x421 KEY_PREVIOUS
      0x420 KEY_NEXT
      0x4d1 KEY_HOME
      0x40f KEY_INFO
      0x400 KEY_NUMERIC_0
      0x401 KEY_NUMERIC_1
      0x402 KEY_NUMERIC_2
      0x403 KEY_NUMERIC_3
      0x404 KEY_NUMERIC_4
      0x405 KEY_NUMERIC_5
      0x406 KEY_NUMERIC_6
      0x407 KEY_NUMERIC_7
      0x408 KEY_NUMERIC_8
      0x409 KEY_NUMERIC_9
      0x482 KEY_EPG
      0x4f7 KEY_VOLUMEDOWN
      0x4e7 KEY_MUTE
      0x4e8 KEY_VOLUMEUP
      0x40d old mute key
      0x442 eject
      0x47e usb
    • (Please note that the eject and USB keys are not used, you can customize them, or any other key, by just changing the code assignment to another KEY_ code. You can find a complete list of possible values here)
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in
      nano rc_maps.cfg
    • Copy and paste the following text into the editor window
      * * mslremote
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in
      nano autostart.sh
    • Add the following line as the last line in the file
      ir-keytable -a /storage/.config/rc_maps.cfg
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Reboot from the GUI
    • After reboot you can use the remote with OpenElec


    OpenElec and LibreELEC (OpenElec 3 until 7.0.3, LibreELEC until 8.0.1)

    • Please note : For OpenElec 5.0.x and LibreELEC, you will need to do the following first to enable the LIRC driver :
      • Put your SD card in a card reader and access it on a PC or Mac
      • Check, if there is a folder with the name 'overlays'. If there is not, you can ignore the next step
      • Edit the file config.txt located in the root of the SD card and add the following line at the end of the file (if it is not already there), then save the file. Note : You cannot use Windows Notepad to edit the file as it uses Linux convention for new line characters, it will show without linefeeds under Windows Notepad. You can use Notepad++ or another Linux-compatible text editor.
        dtoverlay=lirc-rpi
      • Put the SD card back into the Raspberry Pi and boot
    • CEC HAS TO be disabled for any IR remote to work in Kodi. In OpenElec go to menu System>Settings>System>Input Devices>Peripherals>CEC, press enter again to access the CEC settings and disable it.
    • Use PuTTY to connect to your OpenElec installation, default user name is root, password openelec (for LibreELEC default password is libreelec, for RasPlex default password is rasplex)
    • Key in (mind the . in front of config !) :
      cd .config
      nano lircd.conf
    • Copy and paste the following text into the editor window
      # Please make this file available to others
      # by sending it to <lirc@bartelmus.de>
      #
      # contributed by MSL Digital Solutions
      #
      # brand:  Philips RC6 DVD
      #
      begin remote
        name  RemotePi1
        bits           8
        flags RC6|CONST_LENGTH
        eps            30
        aeps          100
        header       2667   889
        one           444   444
        zero          444   444
        pre_data_bits 13
        pre_data     0xEFB
        gap          108000
        toggle_bit_mask 0x10000
        rc6_mask    0x10000
        min_repeat 2
        suppress_repeat 6
            begin codes
                KEY_OK                   0xA3
                KEY_LEFT                 0xA5
                KEY_RIGHT                0xA4
                KEY_DOWN                 0xA6
                KEY_UP                   0xA7
                KEY_EXIT                 0x7C
                KEY_PAUSE                0xD3
                KEY_STOP                 0xCE
                KEY_SUBTITLE             0xB4
                KEY_AUDIO                0xB1
                KEY_PREVIOUS             0xDE
                KEY_NEXT                 0xDF
                KEY_HOME                 0x2E
                KEY_INFO                 0xF0
                KEY_NUMERIC_0            0xFF
                KEY_NUMERIC_1            0xFE
                KEY_NUMERIC_2            0xFD
                KEY_NUMERIC_3            0xFC
                KEY_NUMERIC_4            0xFB
                KEY_NUMERIC_5            0xFA
                KEY_NUMERIC_6            0xF9
                KEY_NUMERIC_7            0xF8
                KEY_NUMERIC_8            0xF7
                KEY_NUMERIC_9            0xF6
                KEY_MUTEold              0xF2
                KEY_EPG                  0x7D
                KEY_VOLUMEDOWN           0x08
                KEY_MUTE                 0x18
                KEY_VOLUMEUP             0x17
            end codes
      end remote
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in
      cd
    • For older versions of OpenElec (pre-Kodi, i.e. 4.x.x and earlier), key in the following line
      cd .xbmc
    • For newer version of OpenElec (Kodi, i.e. 5.0.0 and newer) and LibreELEC, key in the following line
      cd .kodi
    • Continue for all versions with (please note the capital L in Lircmap.xml - Linux is case sensitive)
    • cd userdata
      nano Lircmap.xml
    • Copy and paste the following text into the editor window
      <lircmap>
      <remote device="devinput">
      <start>KEY_HOME</start>
      </remote>
      </lircmap>
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Reboot from the GUI
    • After reboot you can use the remote with OpenElec / LibreELEC
    • For LibreELEC 8.0.0 and above, please make sure that LIRC is enabled (it should be enabled by default) in menu Settings, LibreELEC, Services, scroll down to LIRC

    RasPlex 0.6.0 and newer (tested with RasPlex 0.6.0 to 1.7.1)

    • RaspPlex 0.6.0 and newer include support for the RemotePi Board and our remote out-of-the-box, no need to install any scripts manually !
    • To activate support for the RemotePi Board go to menu System Settings, Services, scroll down and select 'Enable RemotePi Board Support'. In the menu entry below that make sure you select which RemotePi Board version you have (2015 or 2013). All current RemotePi Boards use the 2015 configuration.


    OSMC (tested with OSMC up to 2017.03-1)

    • CEC HAS TO be disabled for any IR remote to work in XBMC (Kodi). In OSMC go to menu Settings>System>Input Devices>Peripherals>CEC, press enter again to access the CEC settings and disable it.
    • In the OSMC menu, under My OSMC>Pi Config>Hardware Support, enable LIRC GPIO support. This may already be enabled by default. Do not change any of the other GPIO settings.
    • Use PuTTY to connect to your OSMC installation, default user name is osmc, password osmc
    • Key in :
      nano /home/osmc/lircd.conf
    • Copy and paste the lircd config (same data as for OpenElec, see above)
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Go to the OSMC menu, under My OSMC>Remotes, select Browse
    • Select the Home Folder, then lircd.conf
    • Click confirm
    • Select lircd from the list of remotes
    • Reboot
    • Now you can use the remote with OSMC

    Raspbmc (tested with Raspbmc running Kodi Built 24 Dec 2014)

    • CEC HAS TO be disabled for any IR remote to work in XBMC (Kodi). In Raspbmc go to menu System>Settings>System>Input Devices>Peripherals>CEC, press enter again to access the CEC settings and disable it.
    • In Programs>Raspbmc Settings>IR Remote, enable GPIO TSOP IR Receiver and choose custom in the GPIO IR remote profile
    • Use PuTTY to connect to your Raspbmc installation, default user name is pi, password raspberry
    • Key in :
      nano /home/pi/lircd.conf
    • Copy and paste the lircd config (same data as for OpenElec, see above)
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in :
      sudo shutdown –r now
    • After reboot you can use the remote with Raspbmc

    XBian (tested with XBian 2015-12-27)

    • CEC HAS TO be disabled for any IR remote to work in XBMC (Kodi). In XBian go to menu System>Settings>System>Input Devices>Peripherals>CEC, press enter again to access the CEC settings and disable it.
    • Use PuTTY to connect to your XBian installation, default user name is xbian, password raspberry
    • Key in :
      sudo -i
    • Enter password raspberry again
    • Key in :
      echo "lirc_rpi" >> /etc/modules
      nano /etc/lirc/lircd.conf
    • Copy and paste the lircd config (same data as for OpenElec, see above)
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in :
      nano /etc/lirc/hardware/lirc_rpi.conf
    • Change the line LIRCD_ARGS="-u" to LIRCD_ARGS="" (please note that if you upgrade XBian and get a problem that the navigation keys on the remote register twice, then you will need to redo this step)
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in (please note the capital L in Lircmap.xml - Linux is case sensitive)
      nano /usr/local/share/kodi/system/Lircmap.xml
    • Copy and paste the following text into the editor window
      <lircmap>
          <remote device="RemotePi1">
              <left>KEY_LEFT</left>
              <right>KEY_RIGHT</right>
              <up>KEY_UP</up>
              <down>KEY_DOWN</down>
              <select>KEY_OK</select>
              <start>KEY_HOME</start>
              <back>KEY_EXIT</back>
              <play>KEY_PLAY</play>
              <play>KEY_PLAYPAUSE</play>
              <pause>KEY_PAUSE</pause>
              <stop>KEY_STOP</stop>
              <skipplus>KEY_NEXT</skipplus>
              <skipminus>KEY_PREVIOUS</skipminus>
              <title>KEY_TITLE</title>
              <title>KEY_EPG</title>
              <subtitle>KEY_SUBTITLE</subtitle>
              <language>KEY_LANGUAGE</language>
              <mute>KEY_MUTE</mute>
              <power>KEY_POWER</power>
              <one>KEY_NUMERIC_1</one>
              <two>KEY_NUMERIC_2</two>
              <three>KEY_NUMERIC_3</three>
              <four>KEY_NUMERIC_4</four>
              <five>KEY_NUMERIC_5</five>
              <six>KEY_NUMERIC_6</six>
              <seven>KEY_NUMERIC_7</seven>
              <eight>KEY_NUMERIC_8</eight>
              <nine>KEY_NUMERIC_9</nine>
              <zero>KEY_NUMERIC_0</zero>
              <info>KEY_INFO</info>
              <display>KEY_ZOOM</display>
              <mymusic>KEY_AUDIO</mymusic>
          </remote>
      </lircmap>
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in :
      reboot
    • After reboot you can use the remote with XBian

    Recalbox (tested with Recalbox 4.0.0)

    • LIRC and therefore the remote does currently not work with Recalbox 4.0.1, this is a bug in Recalbox which should be fixed in future releases.
    • Please note that Recalbox supports LIRC menu navigation in the built-in Kodi player only, not in the Recalbox UI.
    • Use PuTTY to connect to your Recalbox installation, default user name is root, password recalboxroot
    • Key in :
      mount -o remount, rw /boot
      nano /boot/config.txt

    • look for the line
      #dtoverlay=lirc-rpi
    • remove the # at the beginning of that line so that the line is
      dtoverlay=lirc-rpi
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in :
      nano /recalbox/share/system/.config/lirc/lircd.conf
    • In the nano editor, delete everything that is already in the file and paste the following into the editor
    • # Please make this file available to others
      # by sending it to <lirc@bartelmus.de>
      #
      # contributed by MSL Digital Solutions
      #
      # brand:  Philips RC6 DVD
      #
      begin remote
        name  customremote
        bits           8
        flags RC6|CONST_LENGTH
        eps            30
        aeps          100
        header       2667   889
        one           444   444
        zero          444   444
        pre_data_bits 13
        pre_data     0xEFB
        gap          108000
        toggle_bit_mask 0x10000
        rc6_mask    0x10000
        min_repeat 2
        suppress_repeat 6
            begin codes
                KEY_OK                   0xA3
                KEY_LEFT                 0xA5
                KEY_RIGHT                0xA4
                KEY_DOWN                 0xA6
                KEY_UP                   0xA7
                KEY_EXIT                 0x7C
                KEY_PAUSE                0xD3
                KEY_STOP                 0xCE
                KEY_SUBTITLE             0xB4
                KEY_AUDIO                0xB1
                KEY_PREVIOUS             0xDE
                KEY_NEXT                 0xDF
                KEY_HOME                 0x2E
                KEY_INFO                 0xF0
                KEY_NUMERIC_0            0xFF
                KEY_NUMERIC_1            0xFE
                KEY_NUMERIC_2            0xFD
                KEY_NUMERIC_3            0xFC
                KEY_NUMERIC_4            0xFB
                KEY_NUMERIC_5            0xFA
                KEY_NUMERIC_6            0xF9
                KEY_NUMERIC_7            0xF8
                KEY_NUMERIC_8            0xF7
                KEY_NUMERIC_9            0xF6
                KEY_MUTE                 0xF2
                KEY_EPG                  0x7D
            end codes
      end remote
    • Press ctrl+x to exit, y to confirm, enter to save the file
    • Key in :
      reboot
    • After reboot you can use the remote with Kodi in Recalbox

     


    This page was last updated 22-May-2017