I can't seem to get LIRC to work, the TV simply doesn't turn on when running the irsend
command. Previously I've used the IR transmitter with an Arduino, and that works fine (verified today that moving it back to the Arduino and the TV turns on). It also works when connecting the 5V and GND of the raspberry pi but keeping the data in the Arduino.
So far, what I've done is to:
Uncomment
dtoverlay=gpio-ir-tx,gpio_pin=18
in/boot/current.txt
. I have seen comments of people using GPIO 17, but I've tried both and it made no difference.Modify
/etc/lirc/lirc_options.conf
to have these values:
driver = default
device = /dev/lirc0
Place the config in
/etc/lirc/lircd.conf.d/<model>.lircd.conf
(the power on has the same hex value as my Arduino sends).Rename the
devinput.lircd.conf
file to something else so it doesn't end with.conf
.
There is a log entry of the lircd service that seems suspicious:
Dec 22 17:34:23 raspberrypi lircd-0.10.1[778]: Notice: accepted new client on /var/run/lirc/lircd
Dec 22 17:34:23 raspberrypi lircd[778]: lircd-0.10.1[778]: Info: Cannot configure the rc device for /dev/lirc0
but I can't seem to find a solution for it. And people who thought that was their problem later stated it was not actually an issue, so I'm not convinced this is the culprit.
I have read that there has been problems with getting LIRC to work with earlier versions of the Linux kernel (1, 2), and also of LIRC itself (1), which has led to patches being created. However, my understanding is that these flaws have been fixed since. Yet I can't get it to work, and I feel like I have run out of ideas to try.
Anyone having this setup working and might know what the culprit is?
~ uname -a
Linux raspberrypi 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l GNU/Linux