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?

3
  • 2
    It may be because of device tree. See raspberrypi.stackexchange.com/questions/27073/…
    – joan
    Commented May 13, 2015 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. Commented May 18, 2015 at 8:40
  • I think you should open a new question giving the details of the new problem.
    – joan
    Commented May 18, 2015 at 8:56

1 Answer 1

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
2
  • Reboot was key.
    – Senseful
    Commented Jul 30, 2017 at 5:28
  • The tutorial I was following left this crucial step off.
    – deltaray
    Commented Jan 18, 2019 at 14:12

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.