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 keys require only a light touch, which makes it an ideal remote for a mediacenter. It uses the RC6 infrared protocol which is supported by the RemotePi Board and LIRC.

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 XBMC (Kodi) functions to the keys : 


OpenElec and LibreELEC (tested with OpenElec 3 until 6.0.3, LibreELEC 7.0.2)

  • Please note : For the new Kodi builds which update the firmware of the Raspberry Pi, i.e. OpenElec 5.0.x and LibreELEC, you will need to do the following first to enable LIRC. In RasPlex this is already configured :
    • 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 XBMC (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 :
    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_MUTE                 0xF2
              KEY_EPG                  0x7D
          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
  • For RasPlex, key in the following line
    cd .plexht
  • 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 (do NOT use reboot or poweroff in the ssh session as this may corrupt your SD card)
  • After reboot you can use the remote with OpenElec / LibreELEC

RasPlex 0.6.0

  • 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)

    RasPlex 0.5.1 and older (tested with RasPlex 0.3.1, 0.5.1)

    • Default user name is root, password rasplex
    • The rest of the configuration for RasPlex is the same as for OpenElec, see above. (RasPlex is based on OpenElec)

      OSMC (tested with OSMC 2016.02-3)

      • 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
      • 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

       


      This page was last updated 09-Jul-2016