Support for the Remote


This infrared remote control is a standard replacement remote control for DVD / Blu-Ray players - It works well with the RemotePi Board and Kodi-based mediacenter installations. Two AAA batteries (not included) are required. The remote uses the RC6 infrared protocol which is supported by the RemotePi Board, LIRC and the Linux IR 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 the remote

The configuration procedure below will assign the following Kodi functions to the keys.
For the remote with the color keys : 

For the older remote without the color keys :


OpenElec 8.0.0 and later, LibreELEC 8.2.0 and later

The newer OpenElec and LibreELEC versions end 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 can only use very recent versions of Windows 10 Notepad to edit the file as it uses Linux convention for new line characters, older versions will show Linux files without linefeeds. You can use Notepad++ or another Linux-compatible text editor instead.
    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. 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 / LibreELEC installation, default user name is root, password openelec (libreelec for LibreELEC)
    • 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

      # below is for the black/gray remote without the color buttons (31 keys)
      #0x04c7 power button
      #0x0442 eject
      0x04d1 KEY_HOME
      0x040f KEY_INFO
      0x0458 KEY_UP
      0x045a KEY_LEFT
      0x045c KEY_OK
      0x045b KEY_RIGHT
      0x0459 KEY_DOWN
      0x0483 KEY_EXIT
      0x0482 KEY_MENU
      0x0421 KEY_PREVIOUS
      0x042c KEY_PAUSE
      0x0420 KEY_NEXT
      #0x047e usb
      0x0431 KEY_STOP
      0x0401 KEY_NUMERIC_1
      0x0402 KEY_NUMERIC_2
      0x0403 KEY_NUMERIC_3
      0x0404 KEY_NUMERIC_4
      0x0405 KEY_NUMERIC_5
      0x0406 KEY_NUMERIC_6
      0x0407 KEY_NUMERIC_7
      0x0408 KEY_NUMERIC_8
      0x0409 KEY_NUMERIC_9
      0x044b KEY_SUBTITLE
      0x0400 KEY_NUMERIC_0
      0x044e KEY_AUDIO
      0x04f7 KEY_VOLUMEDOWN
      0x04e7 KEY_MUTE
      0x04e8 KEY_VOLUMEUP
      #this is the mute key on the grey remote
      0x040d KEY_MUTE

      # below is for the newer remote with the color buttons (34 keys)
      #0x46c7 power button
      0x466d KEY_VOLUMEDOWN
      0x466e KEY_MUTE
      0x466f KEY_MUTE
      0x4670 KEY_VOLUMEUP
      0x4692 KEY_HOME
      #0x469a pop-up menu
      #0x469c top menu
      0x4658 KEY_UP
      0x465a KEY_LEFT
      0x465c KEY_OK
      0x465b KEY_RIGHT
      0x4659 KEY_DOWN
      0x4683 KEY_EXIT
      0x46c9 KEY_MENU
      0x462c KEY_PLAY
      0x4630 KEY_PAUSE
      0x4621 KEY_PREVIOUS
      0x4620 KEY_NEXT
      0x4629 KEY_REWIND
      0x4631 KEY_STOP
      0x4628 KEY_FASTFORWARD
      0x4601 KEY_NUMERIC_1
      0x4602 KEY_NUMERIC_2
      0x4603 KEY_NUMERIC_3
      0x4604 KEY_NUMERIC_4
      0x4605 KEY_NUMERIC_5
      0x4606 KEY_NUMERIC_6
      0x4607 KEY_NUMERIC_7
      0x4608 KEY_NUMERIC_8
      0x4609 KEY_NUMERIC_9
      0x464b KEY_SUBTITLE
      0x4600 KEY_NUMERIC_0
      0x464e KEY_AUDIO

    • (Please note that some of the keys are not used, these are remarked out with #, 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
    • Reboot from the GUI, and test, if the remote is working... It should. If it is not yet working, and you have upgraded OpenElec / LibreELEC from an older version, you may need to do the additional following steps :
    • In PuTTY, 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 / LibreELEC


    OpenElec until 7.0.3, LibreELEC until 8.0.2

    • 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 can only use very recent versions of Windows 10 Notepad to edit the file as it uses Linux convention for new line characters, older versions will show Linux files without linefeeds. You can use Notepad++ or another Linux-compatible text editor instead.
        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)
    • 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/BLURAY
      #
      begin remote
      name RemotePi1
      bits 21
      flags RC6|CONST_LENGTH
      eps 30
      aeps 100
      header 2667 889
      one 444 444
      zero 444 444
      gap 108000
      toggle_bit_mask 0x10000
      rc6_mask 0x10000
      min_repeat 2
      suppress_repeat 6
      begin codes

      # below is for the older remote without the color buttons
      #power 0x0EFB38
      #eject 0x0EFBBD
      KEY_HOME 0x0EFB2E
      KEY_INFO 0x0EFBF0
      KEY_UP 0x0EFBA7
      KEY_LEFT 0x0EFBA5
      KEY_OK 0x0EFBA3
      KEY_RIGHT 0x0EFBA4
      KEY_DOWN 0x0EFBA6
      KEY_EXIT 0x0EFB7C
      KEY_MENU 0x0EFB7D
      KEY_PREVIOUS 0x0EFBDE
      KEY_PAUSE 0x0EFBD3
      KEY_NEXT 0x0EFBDF
      #usb 0x0EFB81
      KEY_STOP 0x0EFBCE
      KEY_NUMERIC_1 0x0EFBFE
      KEY_NUMERIC_2 0x0EFBFD
      KEY_NUMERIC_3 0x0EFBFC
      KEY_NUMERIC_4 0x0EFBFB
      KEY_NUMERIC_5 0x0EFBFA
      KEY_NUMERIC_6 0x0EFBF9
      KEY_NUMERIC_7 0x0EFBF8
      KEY_NUMERIC_8 0x0EFBF7
      KEY_NUMERIC_9 0x0EFBF6
      KEY_SUBTITLE 0x0EFBB4
      KEY_NUMERIC_0 0x0EFBFF
      KEY_AUDIO 0x0EFBB1
      KEY_VOLUMEDOWN 0x0EFB08
      KEY_MUTE 0x0EFB18
      KEY_VOLUMEUP 0x0EFB17
      # this key is the mute key on the grey remote
      KEY_MUTE 0x0EFBF2

      # below is for the newer remote with the color buttons
      #power button 0x0EB938
      KEY_VOLUMEDOWN 0x0EB992
      KEY_MUTE 0x0EB991
      KEY_MUTE 0x0EB990
      KEY_VOLUMEUP 0x0EB98F
      KEY_HOME 0x0EB96D
      #pop-up menu 0x0EB965
      #top menu 0x0EB963
      KEY_UP 0x0EB9A7
      KEY_LEFT 0x0EB9A5
      KEY_OK 0x0EB9A3
      KEY_RIGHT 0x0EB9A4
      KEY_DOWN 0x0EB9A6
      KEY_EXIT 0x0EB97C
      KEY_MENU 0x0EB936
      KEY_PLAY 0x0EB9D3
      KEY_PAUSE 0x0EB9CF
      KEY_PREVIOUS 0x0EB9DE
      KEY_NEXT 0x0EB9DF
      KEY_REWIND 0x0EB9D6
      KEY_STOP 0x0EB9CE
      KEY_FASTFORWARD 0x0EB9D7
      KEY_NUMERIC_1 0x0EB9FE
      KEY_NUMERIC_2 0x0EB9FD
      KEY_NUMERIC_3 0x0EB9FC
      KEY_NUMERIC_4 0x0EB9FB
      KEY_NUMERIC_5 0x0EB9FA
      KEY_NUMERIC_6 0x0EB9F9
      KEY_NUMERIC_7 0x0EB9F8
      KEY_NUMERIC_8 0x0EB9F7
      KEY_NUMERIC_9 0x0EB9F6
      KEY_SUBTITLE 0x0EB9B4
      KEY_NUMERIC_0 0x0EB9FF
      KEY_AUDIO 0x0EB9B1
      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


    Raspbian Buster 2020-02-23 and later

    For the current Raspbian versions it is also recommended to use the newer GPIO IR kernel driver method for the IR interface instead of LIRC.  

    • Put the Raspbian 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 can only use very recent versions of Windows 10 Notepad to edit the file as it uses Linux convention for new line characters, older versions will show Linux files without linefeeds. You can use Notepad++ or another Linux-compatible text editor instead.
      dtoverlay=gpio-ir
    • Put the SD card back into the Raspberry Pi and boot
      • To be able to use PuTTY, you need to enable SSH in Raspbian. Launch Raspberry Pi Configuration from the Preferences menu, navigate to the Interfaces tab and select Enabled next to SSH. Click OK to exit the configuration utility.
      • Use PuTTY to connect to your Raspbian installation, default user name is pi, password raspberry
      • First we install the ir-keytable program which translates the kernel IR remote button events into keyboard key events. Key in :
        sudo apt install ir-keytable
        and wait until the ir-keytable installation completes
      • Key in :
        sudo nano /etc/rc_keymaps/mslremote
      • Copy and paste the following text into the editor window
        # table mslremote, type: rc-6

        # below is for the black/gray remote without the color buttons (31 keys)
        #0x04c7 power button
        #0x0442 eject
        0x04d1 KEY_HOME
        0x040f KEY_INFO
        0x0458 KEY_UP
        0x045a KEY_LEFT
        0x045c KEY_OK
        0x045b KEY_RIGHT
        0x0459 KEY_DOWN
        0x0483 KEY_EXIT
        0x0482 KEY_MENU
        0x0421 KEY_PREVIOUS
        0x042c KEY_PAUSE
        0x0420 KEY_NEXT
        #0x047e usb
        0x0431 KEY_STOP
        0x0401 KEY_NUMERIC_1
        0x0402 KEY_NUMERIC_2
        0x0403 KEY_NUMERIC_3
        0x0404 KEY_NUMERIC_4
        0x0405 KEY_NUMERIC_5
        0x0406 KEY_NUMERIC_6
        0x0407 KEY_NUMERIC_7
        0x0408 KEY_NUMERIC_8
        0x0409 KEY_NUMERIC_9
        0x044b KEY_SUBTITLE
        0x0400 KEY_NUMERIC_0
        0x044e KEY_AUDIO
        0x04f7 KEY_VOLUMEDOWN
        0x04e7 KEY_MUTE
        0x04e8 KEY_VOLUMEUP
        #this is the mute key on the grey remote
        0x040d KEY_MUTE

        # below is for the newer remote with the color buttons (34 keys)
        #0x46c7 power button
        0x466d KEY_VOLUMEDOWN
        0x466e KEY_MUTE
        0x466f KEY_MUTE
        0x4670 KEY_VOLUMEUP
        0x4692 KEY_HOME
        #0x469a pop-up menu
        #0x469c top menu
        0x4658 KEY_UP
        0x465a KEY_LEFT
        0x465c KEY_OK
        0x465b KEY_RIGHT
        0x4659 KEY_DOWN
        0x4683 KEY_EXIT
        0x46c9 KEY_MENU
        0x462c KEY_PLAY
        0x4630 KEY_PAUSE
        0x4621 KEY_PREVIOUS
        0x4620 KEY_NEXT
        0x4629 KEY_REWIND
        0x4631 KEY_STOP
        0x4628 KEY_FASTFORWARD
        0x4601 KEY_NUMERIC_1
        0x4602 KEY_NUMERIC_2
        0x4603 KEY_NUMERIC_3
        0x4604 KEY_NUMERIC_4
        0x4605 KEY_NUMERIC_5
        0x4606 KEY_NUMERIC_6
        0x4607 KEY_NUMERIC_7
        0x4608 KEY_NUMERIC_8
        0x4609 KEY_NUMERIC_9
        0x464b KEY_SUBTITLE
        0x4600 KEY_NUMERIC_0
        0x464e KEY_AUDIO

      • (Please note that some of the keys are not used, these are remarked out with #, 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
        sudo nano /etc/rc_maps.cfg
      • Delete everything in the file and copy and paste the following line into the editor window, making it the only line in the file :
        * * mslremote
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • The ir-keytable program is supposed to auto-start after a reboot, but due to a bug in the current Raspbian version it does not. So to make it start automatically we add a cron job. Key in :
      • sudo crontab -e
      • Choose nano as the editor, then add the following line as the last line in the file
        @reboot /usr/bin/ir-keytable -a /etc/rc_maps.cfg
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • If all you want is mapping keys of the remote to keyboard keys, this is all you need to do. After reboot you will be for example able to use the remote up / down / left / right keys in the same way the arrow keys from a keyboard are used. You may need to change some of the KEY_xxx names in the above mslremote file to adjust the mappings to the keyboard, for example instead of KEY_OK you can use KEY_ENTER to emulate the enter key when you press the OK on the remote.
        Advantage of using the configuration until here is that you can use the remote in any application that uses key shortcuts for navigation.
        If you want to however use Kodi in the same way it is working in LibreELEC, you will find that not all remote buttons will not work properly, for example it is not possible to use a specific button on the remote for the context menu as Kodi does not define a keyboard shortcut for the context menu. In order to fix this in Kodi you will need to configure some additional steps. Note though that after you configure the remaining steps to make Kodi work properly, you will lose the functionality to use the remote to emulate the keyboard, as remote key events will be re-routed to emulate LIRC events in Kodi (This is the same method LibreELEC is using). 
      • If not already installed, install Kodi by keying in :
        sudo apt-get install kodi
        IMPORTANT : After the installation of Kodi, start Kodi one time (it is located in the Sound & Video menu) and exit it again, this will create the /home/pi/.kodi/userdata/ directory used later in these instructions.
      • Install inputlirc (which will map keyboard events to LIRC events)
      • sudo apt-get install inputlirc
      • Configure inputlirc by keying in :
        sudo nano /etc/udev/rules.d/90-persistent-remote.rules
      • Copy and paste the following one line into the nano editor :
        ACTION=="add|change", SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="gpio_ir_recv", SYMLINK+="input/myremote"
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • Key in :
        sudo nano /etc/default/inputlirc
      • Change the content of the file to :
        EVENTS="/dev/input/myremote"
        OPTIONS="-g -c -m 0"
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • During the installation of inputlirc a service has been created, which is supposed to automatically start inputlirc, but due to another bug in current Raspbian this does not work properly... So in order to start inputlirc, we have to disable the original service and create our own. Key in :
        sudo systemctl disable inputlirc.service
      • Key in :
        sudo nano /etc/systemd/user/inputlirc.service
      • Copy the following text into the nano editor :
        Documentation=man:inputlircd(8)
        Description=Zeroconf LIRC daemon using input event devices
        After=

        [Service]
        Type=simple
        EnvironmentFile=/etc/default/inputlirc
        RuntimeDirectory=lirc
        ExecStart=/usr/sbin/inputlircd -f $OPTIONS $EVENTS

        [Install]
        WantedBy=multi-user.target
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • Enable the new service by keying in :
        sudo systemctl enable /etc/systemd/user/inputlirc.service
      • Now all that is left to do is to create a proper Lircmap.xml file which maps the LIRC events to Kodi functions. The following Lircmap.xml uses the entries from LibreELEC instead of the default Kodi mapping. Key in :
        sudo nano /home/pi/.kodi/userdata/Lircmap.xml
      • Copy the following text into the nano editor :
        <?xml version="1.0" encoding="UTF-8"?>
        <lircmap>
        <remote device="devinput">
        <altname>/dev/input/myremote</altname>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <up>KEY_UP</up>
        <down>KEY_DOWN</down>
        <select>KEY_OK</select>
        <select>KEY_ENTER</select>
        <select>KEY_KPENTER</select>
        <select>KEY_SELECT</select>
        <clear>KEY_DELETE</clear>
        <clear>KEY_ESC</clear>
        <start>KEY_MEDIA</start>
        <start>KEY_HOME</start>
        <back>KEY_EXIT</back>
        <back>KEY_BACK</back>
        <back>KEY_BACKSPACE</back>
        <back>KEY_ESC</back>
        <back>KEY_E</back>
        <record>KEY_RECORD</record>
        <play>KEY_PLAY</play>
        <play>KEY_PLAYPAUSE</play>
        <pause>KEY_PAUSE</pause>
        <stop>KEY_STOP</stop>
        <stop>KEY_STOPCD</stop>
        <forward>KEY_FASTFORWARD</forward>
        <forward>KEY_FORWARD</forward>
        <reverse>KEY_REWIND</reverse>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <pageplus>KEY_CHANNELUP</pageplus>
        <pageplus>KEY_PAGEUP</pageplus>
        <pageminus>KEY_CHANNELDOWN</pageminus>
        <pageminus>KEY_PAGEDOWN</pageminus>
        <skipplus>KEY_NEXT</skipplus>
        <skipplus>KEY_NEXTSONG</skipplus>
        <skipminus>KEY_PREVIOUS</skipminus>
        <skipminus>KEY_PREVIOUSSONG</skipminus>
        <guide>KEY_EPG</guide>
        <title>KEY_TITLE</title>
        <title>KEY_TV2</title>
        <title>KEY_CONTEXT_MENU</title>
        <subtitle>KEY_SUBTITLE</subtitle>
        <language>KEY_LANGUAGE</language>
        <info>KEY_INFO</info>
        <info>KEY_PROPS</info>
        <display>KEY_ZOOM</display>
        <display>KEY_ANGLE</display>
        <mute>KEY_MUTE</mute>
        <power>KEY_POWER</power>
        <power>KEY_SLEEP</power>
        <power>KEY_WAKEUP</power>
        <eject>KEY_EJECTCD</eject>
        <eject>KEY_EJECTCLOSECD</eject>
        <menu>KEY_DVD</menu>
        <menu>KEY_MENU</menu>
        <myvideo>KEY_VIDEO</myvideo>
        <mymusic>KEY_AUDIO</mymusic>
        <mymusic>KEY_MP3</mymusic>
        <mypictures>KEY_CAMERA</mypictures>
        <mypictures>KEY_IMAGES</mypictures>
        <livetv>KEY_TUNER</livetv>
        <mytv>KEY_TV</mytv>
        <mytv>KEY_PVR</mytv>
        <teletext>KEY_TEXT</teletext>
        <one>KEY_1</one>
        <one>KEY_NUMERIC_1</one>
        <two>KEY_2</two>
        <two>KEY_NUMERIC_2</two>
        <three>KEY_3</three>
        <three>KEY_NUMERIC_3</three>
        <four>KEY_4</four>
        <four>KEY_NUMERIC_4</four>
        <five>KEY_5</five>
        <five>KEY_NUMERIC_5</five>
        <six>KEY_6</six>
        <six>KEY_NUMERIC_6</six>
        <seven>KEY_7</seven>
        <seven>KEY_NUMERIC_7</seven>
        <eight>KEY_8</eight>
        <eight>KEY_NUMERIC_8</eight>
        <nine>KEY_9</nine>
        <nine>KEY_NUMERIC_9</nine>
        <zero>KEY_0</zero>
        <zero>KEY_NUMERIC_0</zero>
        <star>KEY_KPASTERISK</star>
        <star>KEY_NUMERIC_STAR</star>
        <hash>KEY_NUMERIC_POUND</hash>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
        <recordedtv>KEY_PVR</recordedtv>
        <liveradio>KEY_RADIO</liveradio>
        </remote>
        </lircmap>
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • After reboot you can use the remote with Kodi on Raspbian

      Additional useful information about configuring IR remotes using the IR Kernel driver under Raspbian with Kodi can be found here, herehere and here.

       

      Volumio (tested with Volumio 2.526)

      Volumio needs a plugin to support IR remotes, and support for our remote needs to be added manually to the plugin configuration.

      First install the plugin by going to Settings, Plugins, then in the Search Plugins list click on Accessories, look for the IR Remote Controller Plugin in the list and click on the install button.

      After the installation is completed, click on the Installed Plugins tab and activate the RemotePi plugin.

      The plugin still needs to be configured to support our remote, to do this 

      • Make sure SSH is enabled in Volumio by going to http://volumio.local/dev/ on the Volumio web-UI and click on the SHH Enable button.
      • Use PuTTY to connect to your Volumio installation, default user name is volumio, password volumio
      • Key in
        cd /data/plugins/accessory/ir_controller/configurations
        mkdir MSL_Remote
        cd MSL_Remote
        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/BLURAY
        #
        begin remote
        name lircd.conf
        bits 21
        flags RC6|CONST_LENGTH
        eps 30
        aeps 100
        header 2667 889
        one 444 444
        zero 444 444
        gap 108000
        toggle_bit_mask 0x10000
        rc6_mask 0x10000
        min_repeat 2
        suppress_repeat 6
        begin codes

        # below is for the older remote without the color buttons
        #power 0x0EFB38
        #eject 0x0EFBBD
        KEY_HOME 0x0EFB2E
        KEY_INFO 0x0EFBF0
        KEY_UP 0x0EFBA7
        KEY_LEFT 0x0EFBA5
        KEY_OK 0x0EFBA3
        KEY_RIGHT 0x0EFBA4
        KEY_DOWN 0x0EFBA6
        KEY_EXIT 0x0EFB7C
        KEY_MENU 0x0EFB7D
        KEY_PREVIOUS 0x0EFBDE
        KEY_PAUSE 0x0EFBD3
        KEY_NEXT 0x0EFBDF
        #usb 0x0EFB81
        KEY_STOP 0x0EFBCE
        KEY_NUMERIC_1 0x0EFBFE
        KEY_NUMERIC_2 0x0EFBFD
        KEY_NUMERIC_3 0x0EFBFC
        KEY_NUMERIC_4 0x0EFBFB
        KEY_NUMERIC_5 0x0EFBFA
        KEY_NUMERIC_6 0x0EFBF9
        KEY_NUMERIC_7 0x0EFBF8
        KEY_NUMERIC_8 0x0EFBF7
        KEY_NUMERIC_9 0x0EFBF6
        KEY_SUBTITLE 0x0EFBB4
        KEY_NUMERIC_0 0x0EFBFF
        KEY_AUDIO 0x0EFBB1
        KEY_VOLUMEDOWN 0x0EFB08
        KEY_MUTE 0x0EFB18
        KEY_VOLUMEUP 0x0EFB17 
        # this key is the mute key on the grey remote 
        KEY_MUTE 0x0EFBF2

        # below is for the newer remote with the color buttons
        #power button 0x0EB938
        KEY_VOLUMEDOWN 0x0EB992
        KEY_MUTE 0x0EB991
        KEY_MUTE 0x0EB990
        KEY_VOLUMEUP 0x0EB98F
        KEY_HOME 0x0EB96D
        #pop-up menu 0x0EB965
        #top menu 0x0EB963
        KEY_UP 0x0EB9A7
        KEY_LEFT 0x0EB9A5
        KEY_OK 0x0EB9A3
        KEY_RIGHT 0x0EB9A4
        KEY_DOWN 0x0EB9A6
        KEY_EXIT 0x0EB97C
        KEY_MENU 0x0EB936
        KEY_PLAY 0x0EB9D3
        KEY_PAUSE 0x0EB9CF
        KEY_PREVIOUS 0x0EB9DE
        KEY_NEXT 0x0EB9DF
        KEY_REWIND 0x0EB9D6
        KEY_STOP 0x0EB9CE
        KEY_FASTFORWARD 0x0EB9D7
        KEY_NUMERIC_1 0x0EB9FE
        KEY_NUMERIC_2 0x0EB9FD
        KEY_NUMERIC_3 0x0EB9FC
        KEY_NUMERIC_4 0x0EB9FB
        KEY_NUMERIC_5 0x0EB9FA
        KEY_NUMERIC_6 0x0EB9F9
        KEY_NUMERIC_7 0x0EB9F8
        KEY_NUMERIC_8 0x0EB9F7
        KEY_NUMERIC_9 0x0EB9F6
        KEY_SUBTITLE 0x0EB9B4
        KEY_NUMERIC_0 0x0EB9FF
        KEY_AUDIO 0x0EB9B1
        end codes
        end remote

      • Press ctrl+x to exit, y to confirm, enter to save the file
      • Key in
        nano lircrc
      • This file assigns the keys on the remote to a function in Volumio, you can change it, if you would like to use different keys.
        Copy and paste the following text into the editor window
        begin
        prog = irexec
        button = KEY_PAUSE
        config = /usr/local/bin/volumio toggle
        end
        begin
        prog = irexec
        button = KEY_OK
        config = /usr/local/bin/volumio toggle
        end
        begin
        prog = irexec
        button = KEY_UP
        config = /usr/local/bin/volumio volume plus
        end
        begin
        prog = irexec
        button = KEY_DOWN
        config = /usr/local/bin/volumio volume minus
        end
        begin
        prog = irexec
        button = KEY_NEXT
        config = /usr/local/bin/volumio next
        end
        begin
        prog = irexec
        button = KEY_PREVIOUS
        config = /usr/local/bin/volumio previous
        end
        begin
        prog = irexec
        button = KEY_MUTE
        config = /usr/local/bin/volumio volume toggle
        repeat = 0
        end
        begin
        prog = irexec
        button = KEY_RIGHT
        config = /usr/local/bin/volumio seek plus
        end
        begin
        prog = irexec
        button = KEY_LEFT
        config = /usr/local/bin/volumio seek minus
        end
        begin
        prog = irexec
        button = KEY_EXIT
        config = /usr/local/bin/volumio repeat
        end
        begin
        prog = irexec
        button = KEY_MENU
        config = /usr/local/bin/volumio random
        end
      • Press ctrl+x to exit, y to confirm, enter to save the file
      • On the Volumio web UI go to Plugins, Installed Plugins tab, then click on the Settings button of the IR Remote Controller plugin
      • Choose MSL_Remote in the Profile list and click the Save button
      • After reboot you can use the remote with Volumio

      Please note that the IR Remote Controller Plugin currently cannot set the GPIO pin used for the GPIO IR receiver. This is normally GPIO 18, but can be modified to GPIO 17 on the RemotePi Board hardware (see the RemotePi Board and HiFiBerry section of the support page for details). If you have modified the RemotePi Board to use GPIO 17, you can use the settings option of the RemotePi Plugin to configure Volumio for this change.

       

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

      • 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.
      • RasPlex 0.6.0 and newer already includes support for the RemotePi Board and our older remote, no need to install anything manually in this case.
        Our newer remote (with the 4 colored buttons) is not yet supported out of the box, you need to enable it by doing the following :

      • Use PuTTY to connect to your RasPlex installation, default user name is root, password rasplex
      • Key in (mind the . in front of config !) :
        cd .config
        nano lircd.conf
      • Copy and paste the same lircd.conf file from the above instructions for OpenElec until 7.0.3 / LibreElec until 8.0.2
      • 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 RasPlex

      OSMC (tested with OSMC up to version 2019.07-1)

      Please note : The instructions below work for OSMC up to and including version 2019.07-1. OSMC 2019.10-1 and newer implement kernel driver GPIO IR, which requires a different configuration. We will update this section shortly with the instructions for this.

      • 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 21
        flags RC6|CONST_LENGTH
        eps 30
        aeps 100
        header 2667 889
        one 444 444
        zero 444 444
        gap 108000
        toggle_bit_mask 0x10000
        rc6_mask 0x10000
        min_repeat 2
        suppress_repeat 6
        begin codes
        # below is for the older remote without the color buttons
        #power 0x0EFB38
        #eject 0x0EFBBD
        KEY_HOME 0x0EFB2E
        KEY_INFO 0x0EFBF0
        KEY_UP 0x0EFBA7
        KEY_LEFT 0x0EFBA5
        KEY_OK 0x0EFBA3
        KEY_RIGHT 0x0EFBA4
        KEY_DOWN 0x0EFBA6
        KEY_EXIT 0x0EFB7C
        KEY_MENU 0x0EFB7D
        KEY_PREVIOUS 0x0EFBDE
        KEY_PAUSE 0x0EFBD3
        KEY_NEXT 0x0EFBDF
        #usb 0x0EFB81
        KEY_STOP 0x0EFBCE
        KEY_NUMERIC_1 0x0EFBFE
        KEY_NUMERIC_2 0x0EFBFD
        KEY_NUMERIC_3 0x0EFBFC
        KEY_NUMERIC_4 0x0EFBFB
        KEY_NUMERIC_5 0x0EFBFA
        KEY_NUMERIC_6 0x0EFBF9
        KEY_NUMERIC_7 0x0EFBF8
        KEY_NUMERIC_8 0x0EFBF7
        KEY_NUMERIC_9 0x0EFBF6
        KEY_SUBTITLE 0x0EFBB4
        KEY_NUMERIC_0 0x0EFBFF
        KEY_AUDIO 0x0EFBB1
        KEY_VOLUMEDOWN 0x0EFB08
        KEY_MUTE 0x0EFB18
        KEY_VOLUMEUP 0x0EFB17

        # this key is the mute key on the grey remote
        KEY_MUTE 0x0EFBF2

        # below is for the newer remote with the color buttons
        #power button 0x0EB938
        KEY_VOLUMEDOWN 0x0EB992
        KEY_MUTE 0x0EB991
        KEY_MUTE 0x0EB990
        KEY_VOLUMEUP 0x0EB98F
        KEY_HOME 0x0EB96D
        #pop-up menu 0x0EB965
        #top menu 0x0EB963
        KEY_UP 0x0EB9A7
        KEY_LEFT 0x0EB9A5
        KEY_OK 0x0EB9A3
        KEY_RIGHT 0x0EB9A4
        KEY_DOWN 0x0EB9A6
        KEY_EXIT 0x0EB97C
        KEY_MENU 0x0EB936
        KEY_PLAY 0x0EB9D3
        KEY_PAUSE 0x0EB9CF
        KEY_PREVIOUS 0x0EB9DE
        KEY_NEXT 0x0EB9DF
        KEY_REWIND 0x0EB9D6
        KEY_STOP 0x0EB9CE
        KEY_FASTFORWARD 0x0EB9D7
        KEY_NUMERIC_1 0x0EB9FE
        KEY_NUMERIC_2 0x0EB9FD
        KEY_NUMERIC_3 0x0EB9FC
        KEY_NUMERIC_4 0x0EB9FB
        KEY_NUMERIC_5 0x0EB9FA
        KEY_NUMERIC_6 0x0EB9F9
        KEY_NUMERIC_7 0x0EB9F8
        KEY_NUMERIC_8 0x0EB9F7
        KEY_NUMERIC_9 0x0EB9F6
        KEY_SUBTITLE 0x0EB9B4
        KEY_NUMERIC_0 0x0EB9FF
        KEY_AUDIO 0x0EB9B1
        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 8-Mar-2020