6

I want to use an IR diod receiver. I installed lirc but when I write to terminal this code:

mode2 -d /dev/lirc0 

it says

mode2: could not get file information for /dev/lirc0
mode2: defauld_init(): No such file or directory

Where is the problem? Any idea?

  • 2
    It may be because of device tree. See raspberrypi.stackexchange.com/questions/27073/… – joan May 13 '15 at 8:56
  • thank you for your answer. It works, and I record my remote but now I'm writing "irw" but it doesn't show any thing about my buttons. – Muhammed Ali HAŞILOĞLU May 18 '15 at 8:40
  • I think you should open a new question giving the details of the new problem. – joan May 18 '15 at 8:56
6

It means there is a configuration issue.

To fix it:

  1. sudo vim /boot/config.txt
  2. add dtoverlay=lirc-rpi,gpio_in_pin=16 (change the pin to whatever you're using)
  3. reboot
  • Reboot was key. – Senseful Jul 30 '17 at 5:28
  • The tutorial I was following left this crucial step off. – deltaray Jan 18 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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