2015-08-01, 08:17
Hello All,
I'm attempting to install an GPIO IR remote on my Raspberry Pi 2 running OpenElec 5.0.8.
I followed through the instructions found here.
The driver seems to work, this is in my dmesg output:
I put dtoverlay=lirc-rpi,gpio_in_pull=up in my config.txt.
mode2 -d /dev/lirc0 works just fine and I get the predicted output:
I also successfully used irrecord -d /dev/lirc0 /storage/.config/lircd.conf and now have a lircd.conf file with about 15 commands in it.
However, the problems start when I try to run:
I seem to be able to trace the problem to the command:
which it says to put in the autostart.sh.
When I try the second command I get
In fact there is no /var/run/lirc directory at all.
Can someone please help me? It appears that a bunch of things are working, and there's just a missing piece to get it all working.
I'm attempting to install an GPIO IR remote on my Raspberry Pi 2 running OpenElec 5.0.8.
I followed through the instructions found here.
The driver seems to work, this is in my dmesg output:
Code:
[ 8.935277] lirc_dev: IR Remote Control driver registered, major 248
[ 8.963449] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.855824] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[ 9.856174] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 9.856187] lirc_rpi: driver registered!
[ 10.107818] input: lircd as /devices/virtual/input/input2
I put dtoverlay=lirc-rpi,gpio_in_pull=up in my config.txt.
mode2 -d /dev/lirc0 works just fine and I get the predicted output:
Code:
space 14829218
pulse 9066
space 4423
pulse 636
space 490
I also successfully used irrecord -d /dev/lirc0 /storage/.config/lircd.conf and now have a lircd.conf file with about 15 commands in it.
However, the problems start when I try to run:
Code:
irw /var/run/lirc/lircd-lirc0
connect: No such file or directory
I seem to be able to trace the problem to the command:
Code:
killall lircd; /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd --pidfile=/var/run/lirc/lircd-lirc0.pid /storage/.config/lircd.conf
When I try the second command I get
Code:
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd --pidfile=/var/
run/lirc/lircd-lirc0.pid /storage/.config/lircd.conf
lircd: can't open or create /var/run/lirc/lircd-lirc0.pid
lircd: No such file or directory
In fact there is no /var/run/lirc directory at all.
Can someone please help me? It appears that a bunch of things are working, and there's just a missing piece to get it all working.