For this to work all previous scripts and .config/lircd.conf files needs to be removed!

You need to have a IR Receiver connected thru GPIO on your RPI of course.

Here is a guide for that:

You need to add the following to config.txt


You can easily add your own remote to a lircd.conf by running irrecord

First you need to kill the running lircd process:

killall lircd

You might need to run:

ir-keytable -p LIRC

Then start irrecord thelling it were to create the new config file:

irrecord /storage/.config/lircd.conf

Follow the on screen instructions...

Remember that you need to use the new KEY_ map names for it to work, like KEY_POWER and so on.

When you are done you need to reboot you system for it to start working in XBMC.

You can run irw to see if you get any input at all:

irw /var/run/lirc/lircd-lirc0

Start pushing buttons.

If you don't see any output your remote is not supported.

You can still create or add a custom .config/lircd.conf for it though.

Joust remember that it needs to have the new KEY_ lirc map names. like this:

KEY_POWER 0x00007bf3

If your remote Repeats to much you can limit repeats like this.

Copy the /etc/lirc/lircd.conf.rpi to /storage/.config/lircd.conf

cp /etc/lirc/lircd.conf.rpi /storage/.config/lircd.conf

Then change the line in that file thats saying: suppress_repeat 4 to suppress_repeat 6 or something in your remotes section.

vi /storage/.config/lircd.conf

Then reboot and see if its better...

After reboot you can joust run:

killall -HUP lircd

To reload the config after future edits.

You can also disable repeats completely by adding this to your

killall eventlircd
eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP --repeat-filter

This will disable repeats. If you hold a button only one press will be registered.

Original GPIO forum thread:

GPIO hardware guide: