1

I'm trying to set up lirc on a Pi2 B+ running the latest Raspbian buster and latest kernel / firmware set by rpi-update.

I've started from this HOW-TO.

All I get from

sudo modprobe lirc_rpi

is:

modprobe: FATAL: Module lirc_rpi not found in directory /lib/modules/4.19.79-v7+

How do I get lirc to work?

Thanks in advance for your help!

tlfong01
  • 4,847
  • 3
  • 12
  • 24
sba923
  • 127
  • 1
  • 3

2 Answers2

2

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. See https://raspberrypi.org/forums/viewtopic.php?t=243583 for more details.

Dougie
  • 5,381
  • 11
  • 22
  • 30
-1

Question

(1) How come LIRC stuff so old, any new tutorials and drivers out there?

(2) How to get LIRC to work in Rpi2B+ buster?


Answer

(1) You might find some updated stuff and some get around in Ref 1 below.

(2) The most updated tutorial on LIRC setup is dated 2019aug. I tried it and found it good (Ref 2, Appendix A).

/ to continue, ...


References

(1) Problem with LIRC on Raspberry Pi 3

(2) Setup LIRC on Rpi - StackfOverlow user1200233, 2019aug

/ to continue, ...


Appendices

Appendix A - LIRC Mode 2 Command Testing Record

I installed LIRC and tested remote controller OK (Ref 2). Mode 2 command display the pulse space data OK:

$ sudo mode2 -d /dev/lirc0

Using driver default on device /dev/lirc0

Trying device: /dev/lirc0 Using device: /dev/lirc0

Running as regular user pi

space 16777215

pulse 8936

space 4383

pulse 600 ...

End of answer

tlfong01
  • 4,847
  • 3
  • 12
  • 24