We finally have LIRC but if we run it now it will fail looking for “liblirc.so.0” so we need to configure ev3dev to look for it in the right place:
sudo nano /etc/ld.so.conf.d/lirc.conf include /usr/local/lib sudo ldconfig
We could also build LIRC with proper prefix options in order to prevent this last step but I’m lazy and this also helps when searching the web for common problems.
We also need to create a folder for LIRC to place a pid file:
sudo mkdir /var/run/lirc
and at least one remote control configuration file that tells LIRC how to talk with the Power Fucntions IR Receiver. So after two years I’m back to Connor Cary’s GitHub and find that he now has 3 configuration files available:
The last one was contributed by Diomidis Spinellis, the author of a very nice post “Replace Lego’s $190 Intelligent Brick with MIT’s Scratch and a $40 Raspberry Pi” I read a few months ago – what a small world we live 🙂
We should save these 3 files with a “.conf” extension under the folder
There is already a “devinput.lircd.conf” file there but it only works with LIRC default device so we should rename it:
sudo mv /usr/local/etc/lirc/lircd.conf.d/devinput.lircd.conf /usr/local/etc/lirc/lircd.conf.d/devinput.lircd.dist
And that’s it, next post we’ll finally start LIRC!