Skip to main content
Share Your Experience: Take the 2024 Developer Survey
11 votes
Accepted

Setting up a remote control using lirc

I can switch my TV on using the following command: irsend SEND_ONCE LG_AKB72915207 KEY_POWER This is how I set it up. Hardware Setup I am using a Raspberry Pi P1 2011.12. The bare Infrared LED ...
Besi's user avatar
  • 884
11 votes

LIRC won't transmit (irsend: hardware does not support sending)

For me this additional step helped: edit /etc/lirc/lirc_options.conf and set driver = devinput to driver = default and then reboot or restart lircd service
Mikk's user avatar
  • 111
11 votes
Accepted

Raspberry Pi 3 not lirc not running/working

Update 2019-06-14: Please note that the infrared device has recently changed from lirc-rpi to gpio-ir. As confirmed by @Pascal in his comment the setup also works with the new device name. Here is ...
Ingo's user avatar
  • 42.2k
6 votes

/dev/lirc0 does not exist

It means there is a configuration issue. To fix it: sudo vim /boot/config.txt add dtoverlay=lirc-rpi,gpio_in_pin=16 (change the pin to whatever you're using) reboot
Flow's user avatar
  • 61
4 votes
Accepted

LIRC won't transmit (irsend: hardware does not support sending)

Okay, I found the answer, or rather someone much more knowledgeable about Linux than me (https://raspberrypi.stackexchange.com/users/49162/jonathan-dieter) found it. :) Rather than loading the ...
gq9000's user avatar
  • 151
4 votes

LIRC: irrecord wont record, (Buster), mode2 works

In case you still need help 7 months later, the problem is that gpio-ir produces a slightly different output that irrecord can't handle. Follow these instructions to patch it: https://www.raspberrypi....
Rapti's user avatar
  • 141
4 votes
Accepted

lirc infrared receiver: no `irw` output (`irrecord` works!)

had the same problem, mode2 testing fine, irw nothing. the problem: irrecord adds more hex code than necessary, the second hex-row causes errors without any error message KEY_CHANNELDOWN ...
Wolfgang Moch's user avatar
3 votes

Setting up a remote control using lirc

@Besi thank you so much. It was really helpful for me. For me I still have a problem when I reboot my rasp. I think it's better to use to enable it on startup systemctl enable lirc.service than ...
iiioufmaniii's user avatar
3 votes

LIRC won't transmit irsend: unknown remote

You need to place the lircd.conf file that you have recorded into /etc/lirc and then restart the service : # Make a backup of the original lircd.conf file sudo mv /etc/lirc/lircd.conf /etc/lirc/...
CoderMike's user avatar
  • 6,997
3 votes

LIRC With Multiple IR Emitters

Instead of running two instances on my pi I opted to make what is essentially a transistor switchboard (on a breadboard). I call each send command from a script which first runs another script that ...
Dennis Nedry's user avatar
3 votes

LIRC won't setup the device

So apparently the only problem is that the lirc drivers are outdated and not present in newer versions of raspbian. Just change that to the new gpio-ir-tx driver and all will work fine. Also note the ...
Lorenzo's user avatar
  • 170
3 votes
Accepted

Rpi3 LIRC Library and UART IR Transceiver Setup Problem

Question I just want to record some IR signals so I can use them for a project. Short Answer Update 2019sep23hkt1603 Update 2019sep22hkt2146 Now I have written a short python function to ...
tlfong01's user avatar
  • 4,695
2 votes

LIRC no output from irw

Just had the same problem: mode2 showed keypresses, but irw showed nothing. irrecord complained: No toggle bit mask found. But I know for sure that RC6 has a toggle bit! Kodi was reacting on ...
Helmar's user avatar
  • 21
2 votes

Lirc as a Raspberry IR blaster

I have used an IR LED from a discarded remote to create an IR blaster. You just need suitable resistors and a transistor to interface it to a Pi. I power mine from the Pi's 5V rail and switch it ...
joan's user avatar
  • 71.1k
2 votes

LIRC remote keypresses send to shell?

In the file, /etc/lirc/hardware.conf, remove the --uinput flag from LIRCD_ARGS.
soyer's user avatar
  • 151
2 votes

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

You should always check that tutorials are up to date. You should now be using device tree. Remove the LIRC entries from /etc/modules. Add the following line to /boot/config.txt and reboot. ...
joan's user avatar
  • 71.1k
2 votes

LIRC won't transmit (irsend: hardware does not support sending)

After following this guide: http://www.raspberrypiwiki.com/index.php/Raspberry_Pi_IR_Control_Expansion_Board I encountered the same issue as stated in this question: irsend: hardware does not support ...
Igor's user avatar
  • 21
2 votes
Accepted

Find IR codes for a LIRC remote

I got an universal remote and recorded it with irrecord. Here is the config: # Please make this file available to others # by sending it to <[email protected]> # # this config file was ...
jan's user avatar
  • 205
2 votes

LIRC remote control won't send (irsend: hardware does not support sending)

Verify that the service is starting correctly via sudo /etc/init.d/lirc status A common cause is a bad lircd.conf file.
Aaa's user avatar
  • 21
2 votes
Accepted

Will this Arduino module work with Raspberry Pi 3?

Confirmed - Yes, this will work with the Raspberry Pi, and LIRC. Plug it into the appropriate GPIO ports (3.3V, ground, and GPIO 17), with the Pi off. Updated "/etc/modules" to include: lirc_rpi ...
gavanon's user avatar
  • 140
2 votes

Will this Arduino module work with Raspberry Pi 3?

Are there any other components on the module? From the dx.com page it looks like it's a bare LED. The 5V connection may not go anywhere. IR LEDs are pretty current-hungry, and that's why the examples ...
scruss's user avatar
  • 9,068
2 votes

Wiring diagram for pair of IR LEDS, P2N2222 transistor

A 2N2222 is an NPN transistor. What you have drawn is a PNP. If you are using a 2N2222, connect the emitter to ground and the collector to the cathode side of your LED.
SRD's user avatar
  • 21
2 votes
Accepted

Wiring diagram for pair of IR LEDS, P2N2222 transistor

supposedly 60mA max per pin No, this is one figure sometimes floated as a total maximum for all GPIO pins. Note the pure 3.3V/5V power pins are not considered GPIOs and can supply much more than this,...
goldilocks's user avatar
  • 59.1k
2 votes
Accepted

Raspberry Pi 3 lirc "could not connect to socket"

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 ...
user51492's user avatar
2 votes
Accepted

How can I troubleshoot why LIRC's sent signal doesn't power on devices?

I suggest you monitor the commands you are sending and compare them to the commands received from a unit known to work. You can use my piscope to monitor the pulses. An alternative terminal based ...
joan's user avatar
  • 71.1k
2 votes
Accepted

IR LED range and angle

The electrical setup described in your link is defective by design: it relies on unspecified parameters of the transistor to regulate LED current. As a result, depending on the individual transistor ...
Dmitry Grigoryev's user avatar
2 votes

Using other GPIO pins along with LIRC

Yes, it is possible to configure LIRC to use other GPIO pins. In /boot/overlays/README there is an example just about this: Overlays are loaded using the "dtoverlay" directive. As an example, ...
Ingo's user avatar
  • 42.2k
2 votes

JSON not working with LIRC

Question was answered by @CoderMike in comments: If you're using sudo - it will be run as root user, so I would suggest adding the full path to the config.json file ie '/home/pi/config.json'
Nick C's user avatar
  • 93
2 votes

Read TV remote IR codes for building a RPi3-powered remote

While answers which are mostly links are discouraged, IR is NOT simple enough to explain in a few paragraphs. You seem well informed already acknowledging that each button has its own code. That is ...
Wendall's user avatar
  • 221
2 votes

LIRC Tutorial For Rpi2B+ Buster Too Old Problem

It really doesn't help using a tutorial from five years ago on a modern system. Too much has changed. lirc_rpi has been replaced by dtoverlay=gpio-ir and dtoverlay=gpio-ir-tx in /boot/config.txt. ...
Dougie's user avatar
  • 5,321

Only top scored, non community-wiki answers of a minimum length are eligible