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?

Ghanima
  • 15,855
  • 15
  • 61
  • 119
  • 2
    It may be because of device tree. See http://raspberrypi.stackexchange.com/questions/27073/firmware-3-18-x-breaks-i2c-spi-audio-lirc-1-wire-e-g-dev-i2c-1-no-such-f/27074#27074 – joan May 13 '15 at 08: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 08:40
  • I think you should open a new question giving the details of the new problem. – joan May 18 '15 at 08:56

1 Answers1

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
Flow
  • 61
  • 1
  • 2