Complete set of IR events for Kodi 看全部

Here is my set of IR events which work with Kodi:

KEY_VOLUMEDOWN
KEY_VOLUMEUP
KEY_MUTE
KEY_UP
KEY_DOWN
KEY_LEFT
KEY_RIGHT
KEY_HOME
KEY_BACK
KEY_OK

!!!KEY_STOP
KEY_PLAYPAUSE
KEY_PREVIOUS
!!! KEY_NEXT works as volume increase
KEY_FASTFORWARD
KEY_REWIND

!!KEY_O

KEY_SUBTITLE
KEY_INFO
KEY_MENU

I still have problem with stopping the video because KEY_STOP is interpreted rather as pause not real stop.
I also need to display playback info like after 'o' pressing. KEY_O doesn't work. Any ideas or experiences?


  • Sofa cbm80
  • 2016-3-3 03:03:04
Edited by cbm80 at 2016-3-3 03:16

Finally I solved it by myself. I programmed remote from scratch and now it works almost ok. It seems that you must press keys very carefully during first phase of irrecord (measuring pulses, counting bits, etc)
My second attempt generated completly different signal parameters. But scanned codes were the same so I took them from previous programming.

I collected all my steps in one place - maybe it will help somebody in the future.

1. Start recording
  1. killall lircd; irrecord /storage/.config/lircd.conf

2. Change name after "begin remote" to "name devinput"
  1. nano /storage/.config/lircd.conf

It should look like below:
  1. begin remote

  2.   name  devinput

4. Now test all codes using "irw" command. If every code is ok you are done.
  1. killall lircd; lircd /storage/.config/lircd.conf
  2. irw

5. Add lircd to /storage/.config/autostart.sh:
  1. #!/bin/sh
  2. killall lircd; lircd /storage/.config/lircd.conf

6. Reboot OpenELEC or restart kodi
  1. reboot


Very Useful Information thank you
  • Floor Dima
  • 2016-3-3 05:04:13
Also, try another remote. I also had one remote that had duplicate codes (too small difrence of IR blast) for different buttons. Therefore it also didn't work properly.
  • 5# cbm80
  • 2016-3-3 14:40:10
If anybody knows what other remote codes are supported by Kodi please write them in this post. Still don't know how to handle equivalent of 'o' key on the keyboard.
12NextPage