LIRC irsend: failed to connect to irsend socket: no such file or directory

I am trying to configure LIRC to work with my Raspberry 2B and the circuit that I am building with a transistor and an IR transmitter, as described in this tutorial

After installing LIRC, I followed all the steps and I added these two lines to / etc / modules

lirc_dev lirc_rpi gpio_out_pin=36 

Then I typed this in the /etc/lirc/hardware.conf file

 LIRCD_ARGS="--uinput" LOAD_MODULES=true DRIVER="default" DEVICE="/dev/lirc0" MODULES="lirc_rpi" LIRCD_CONF="" LIRCMD_CONF="" 

After rebooting, I added the configuration of my remote Samsung (BN59-00516A) to /etc/lirc/lircd.conf

Then I restarted LIRC again, but when I ran the command to send the IR frequency

 irsend SEND_ONCE Samsung_BN59-00865A KEY_POWER 

he complains about the following error:

irsend: failed to connect to socket

irsend: No such file or directory

I assume this is a problem with my device socket because in the hardware.conf file I installed

 DEVICE = "/dev/lirc0" 

(only because the tutorial is indicated in it), but the lirc0 file is not in the folder. I could not find another question related to this problem, and google did not help me either. Does anyone have a hint of this?

+5
source share
5 answers

After a lot of searching, I found out that an update is required for everything to work correctly. In my case, I did:

 apt-get update, apt-get upgrade, rpi-update 

Also, as indicated in this other tutorial , depending on the Raspberry firmware, you may need to add this to / boot / config. Txt

 dtoverlay=lirc-rpi,gpio_in_pin=XX,gpio_out_pin=YY 

Replace X and Y for any contacts you use!

+4
source

I had a similar problem and solved it with this command:

 sudo lircd --device /dev/lirc0 
+3
source

I got the same error messages. But all the configurations are complete. Restarting the lirc daemon solved this problem by typing $ sudo / etc / init.d / lirc restart

0
source

you need to run lircd . It will create two files ( lircd and lircd.pid ) in /var/run/lirc/ :

 lircd 
0
source

I think it’s useful to say that the part gpio_in_pin=XX,gpio_out_pin=YY /etc/modules can be double-checked with dmesg | grep lirc dmesg | grep lirc dmesg | grep lirc dmesg | grep lirc which leads to something like

 [ 3.437499] lirc_dev: IR Remote Control driver registered, major 244 [ 5.472916] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned. [ 6.621156] lirc_rpi: auto-detected active high receiver on GPIO pin 22 [ 6.622515] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0 [ 6.622528] lirc_rpi: driver registered! 

for /etc/modules containing

 lirc_dev lirc_rpi gpio_in_pin=23 gpio_out_pin=22 
0
source

All Articles