After installing on Raspberry lirc-0.10.1 according to this instruction (Setup IR Remote Control Using LIRC for the Raspberry PI (RPi)), when you try to send data from any config file, the irsend -d /dev/lirc0 SEND_ONCE devinput-32 KEY_POWER command displays a message:

do_connect: could not connect to socket
connect: Connection refused
Cannot open socket /dev/lirc0: Connection refused 

Devices /dev/lirc0 and /dev/lirc1 work (checked with ir-ctl). The transfer runs /dev/lirc0. Socket /var/run/lirc/lircd is writable and readable by everyone. Why can't irsend work?


2 Answers 2


Thou shalt not use /dev/lirc0 as an argument to irsend. irsend sends data to the lircd daemon, and the lircd daemon send (raw) data to /dev/lirc0.

So, irsend should send data to the socket where lircd listens, by default /var/run/lirc/lircd.


Leamas, thank you very much! Dealt with the socket and the device. Confused by the old instructions for using lirc. I downloaded a good config file and ran irsend without specifying a socket and everything worked


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.