I currently have a RPI that has a USB IR receiver to receive IR signals from a remote (let’s call this remote B). This RPI then relays these keypresses to my Chromecast to send Pause/Play commands (so I can use my IR remote to pause/play when playing netflix on my Chromecast). Works perfect!
Now, since I have a cool Vero4K+ next to it, I wanted to use this instead of the RPI. I’m using the RF remote and a MCE remote (let’t call this Remote A) for Kodi.
Since the Vero doesn’t know remote B, and the RPI doesn’t know the RF and Remote A, there are no issues.
Things I’ve changed:
- I’ve created a custom lircd.conf file that contains remote A and remote B.
- I’ve changed
/lib/udev/rules.d/98-lircd.rules
to point to my custom lircd.conf file.
irw
now correctly processes ir events from Remote A and Remote B (and also from my RF remote), but they both seem to originate from linux-input-layer
, therefore I can’t differentiate between the two events.
It seems eventlircd has a way to start a 2nd lirc process that has a different socket, but I’m not sure how to set this up. Is there a way so I can have the 2nd remote on a different lirc socket so kodi doesn’t see these events?
EDIT: I’ve forgot about this. I would like to plug that USB IR receiver in the Vero, so I can blast IR to my TV to turn on. Also, this works fine with the rpi, and I can probably use irsend to do this, but then I need lirc socket to do this.