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

Here is what I did:

  1. sudo nano /boot/config.txt
  2. add dtoverlay=lirc-rpi,gpio_in_pin=16 #change pin!
  3. reboot

It worked for me.

  • 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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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