I'm trying to set up my pi as an IR transmitter. I installed the lirc driver as described here.


However i made some changes to the modules file on advice from other sources which stated there were changes to how raspbian handled devices. This is touched on here.

LIRC irsend: could not connect to socket irsend: No such file or directory

when i enter the command, which should activate the led,


it returns

irsend: could not connect to socket
irsend: No such file or directory

I'm using a raspberry pi 3, an IRLED connected from a GPIO pin to ground with a limiting resistor but i intend to use a bjt transistor when they finally arrive from amazon for extra power.

the following line is included in my boot/config.txt file


my /etc/lirc/hardware.conf file looks like

# /etc/lirc/hardware.conf
# Arguments which will be used when launching lircd

#Don't start lircmd even if there seems to be a good config file

#Don't start irexec, even if a good config file seems to exist.

#Try to load appropriate kernel modules

# Run "lircd --driver=help" for a list of supported drivers.
# usually /dev/lirc0 is the correct setting for systems using udev

# Default configuration files for your hardware if any

any suggestions?

1 Answer 1


I had the same problem.

the services lirc reads the data which come from the driver of your ir receiver and transforms it into a VALUE (depending on your lircd.conf) and write it on a SOCKET which is located at /var/run/lirc/lircd by default.

Then the value written in the socket is transformed to a string interpreted by an an lirc client (an application), the configuration file for this last step is ~/.lircrc

For this chain to be active, you must start the lirc service and... the socket ! you can do it by typing :


in your prompt. It will creates a socket at the default location mentioned above otherwise you can set the location of the socket by :

lircd -o <socket_file>
  • Thanks, that got lirc running, embarrassed i didnt know to do that. im getting a different error now when i try to use irsend. It tells me "hardware does not support sending". I assume this has got something to do with the /etc/lirc/hardware.conf file but i have the default file and im not sure what to change
    – loppy
    Aug 6, 2016 at 12:01

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.