RP2 + IR remote = I'm lost :(

What I know:

  1. The IR gets power as the control led is on and blinks when I push a button.

  2. Apparently it is detected?

    osmc@osmc:~$ dmesg | grep lirc
    [ 4.522646] lirc_dev: IR Remote Control driver registered, major 245
    [ 4.615291] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
    [ 5.568572] lirc_rpi: auto-detected active low receiver on GPIO pin 18
    [ 5.569113] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0 [ 5.569161] lirc_rpi: driver registered!
    [ 6.525747] input: lircd as /devices/virtual/input/input1

3 . and lircd is running?

osmc@osmc:~$ sudo systemctl status lircd_helper@lirc0
* lircd_helper@lirc0.service - lircd remote support
   Loaded: loaded (/lib/systemd/system/lircd_helper@.service; static)
   Active: active (running) since Tue 2015-10-13 13:19:07 EEST; 36min ago
  Process: 258 ExecStart=/bin/sh -c /var/run/lirc/lircd-%I.sh (code=exited, status=0/SUCCESS)
 Main PID: 274 (lircd)
   CGroup: /system.slice/system-lircd_helper.slice/lircd_helper@lirc0.service
           `-274 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinpu...

4 . irrecord works fine and found all my keys (after I stopped lird_helper@lirc0). Conf is at /home/osmc/lircd.conf

5 . Upon reboot irw/var/run/lirc/lircd-lirc0 result is empty. No key presses :frowning:

Did you go into MyOSMC->Remotes and choose to browse to your custom lircd.conf ?

Post a copy of your custom lircd.conf as well, so we can see if you have used valid key namings.

OK I got it. OSMC did not select the configuration file. I thought that /home/osmc/lircd.conf was the default location but nope!

You have to launch OSMC -> My OSMC-Remotes->and load your lircd.conf!

It was the default location long ago, but the default is now to point to /etc/lirc/osmc-remote-lircd.conf so that the OSMC remote works out of the box…

1 Like

I use this IR “Arduino IR”

and Im using KEY_OK, KEY_BACK and KEY_PLAYPAUSE…others are exactly as it shows on the remote.

So happy I got it working - thanks!

If you’re thinking “now thats a shitty remote!” then you’re right. The OSMC is supposed to run without human interaction and this is only for backup :smile: