title: Raspberry Pi: IR LED works, but irsend does not transmit any IR code
body: <p>I installed the current lirc package (0.9.0~pre1-1.2) on a Raspian jessie (no pixel) (everything updated and upgraded) and connected to the (lirc default) GPIO ports:</p>
  
  <ul>
  <li>to gpio port 17 - an IR LED via transistor etc</li>
  <li>to gpio port 18 - an IR receiver nodule</li>
  </ul>
  
  <p>The receiver part works perfectly:</p>
  
  <ul>
  <li>mode2 command receiving raw data from transmitter</li>
  <li>the IR code recognition of previously recorded keys works</li>
  </ul>
  
  <p>However, the IR LED only works only while lirc is not involved:</p>
  
  <ul>
  <li>a shell script can switch the IR LED on and off with no problem</li>
  </ul>
  
  <p>The only thing that doesn't work:</p>
  
  <ul>
  <li><strong>irsend does not make the IR transmitter emit anything, however no error message is shown</strong></li>
  </ul>
  
  <p>So the hardware, especially the IR  LED is definitely working,  while lirc cannot make the LED emit any configured IR code.</p>
  
  <p>Please note that this seems to be a duplicate of</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/41280694/irsend-is-not-giving-errors-but-does-not-send-signal-on-raspbian">stackoverflow: irsend is not giving errors, but does not send signal on Raspbian</a></li>
  </ul>
  
  <p>Unfortunately it is not. The "solution" provided there was placing the data for /etc/modules into the file /etc/modules-load.d/lirc_rpi.conf. I tried that as well, but it makes no difference.</p>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>Configuration data follows - if any other data is required, I'd be happy to add it! TIA!</p>
  
  <hr>
  
  <h2>System and lirc Configuration</h2>
  
  <p>Extract fom: <code>/boot/config.txt</code></p>
  
  <pre><code>dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17,debug=on
  </code></pre>
  
  <p>Extract of: <code>/etc/modules</code></p>
  
  <pre><code>lirc_dev
  lirc_rpi gpio_in_pin=18 gpio_out_pin=17
  </code></pre>
  
  <p>(not sure if that is necessary at all, does not make a difference if this is not configured!? Any hint apppreciated)</p>
  
  <p>All active entries in: <code>/etc/lirc/hardware.conf</code></p>
  
  <pre><code>LIRCD_ARGS="--uinput"
  DRIVER="default"
  DEVICE="/dev/lirc0"
  MODULES="lirc_rpi"
  LIRCD_CONF=""
  LIRCMD_CONF=""
  </code></pre>
  
  <hr>
  
  <h2>Some system output</h2>
  
  <p>1) The driver is loaded, output of following command right after boot, output of:  <code>dmesg | grep lirc</code></p>
  
  <pre><code>lirc_dev: IR Remote Control driver registered, major 245
  lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
  lirc_rpi: to_irq 178
  lirc_rpi: auto-detected active low receiver on GPIO pin 18
  lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
  lirc_rpi: driver registered!
  input: lircd as /devices/virtual/input/input0
  lirc_rpi: Interrupt 178 obtained
  </code></pre>
  
  <p>2) the service is started and running, output of: <code>systemctl status lirc</code></p>
  
  <pre><code>? lirc.service - LSB: Starts LIRC daemon.
     Loaded: loaded (/etc/init.d/lirc)
     Active: active (running) since Mo 2017-06-12 20:04:03 CEST; 2h 58min ago
    Process: 377 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS)
     CGroup: /system.slice/lirc.service
             +-437 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
  </code></pre>
  
  <p>3) the modules are loaded, output of: <code>lsmod | grep Module;lsmod | grep lirc</code></p>
  
  <pre><code>Module                  Size  Used by
  lirc_rpi                8453  3
  lirc_dev               10211  1 lirc_rpi
  rc_core                23776  1 lirc_dev
  </code></pre>
  
  <p>I followed the troubleshooting steps in the (outdated) manual at <a href="http://aron.ws/projects/lirc_rpi/" rel="nofollow noreferrer">http://aron.ws/projects/lirc_rpi/</a>
  to get some more information.</p>
  
  <p>Output of: <code>cat /sys/kernel/debug/gpio</code></p>
  
  <pre><code>gpiochip0: GPIOs 0-53, parent: platform/20200000.gpio, pinctrl-bcm2835:
   gpio-35  (                    |?                   ) in  hi
   gpio-47  (                    |?                   ) out lo
  </code></pre>
  
  <p>I have seen that output also in this case:</p>
  
  <ul>
  <li><a href="https://raspberrypi.stackexchange.com/questions/50873/lirc-wont-transmit-irsend-hardware-does-not-support-sending">raspberrypi.stcakexchange: LIRC won't transmit (irsend: hardware does not support sending)</a></li>
  </ul>
  
  <p>This user is as irritated by that output as I am - can somebody please tell why gpio-35 and gpio-47 are listed here? shouldn't it be gpio-17 and gpio-18?</p>
  
  <p>Output of: <code>cat /proc/interrupts | grep lirc</code></p>
  
  <pre><code>178:        875  pinctrl-bcm2835  18 Edge      lirc_rpi
  </code></pre>
  
  <p>This matches the dmesg output on having obtained interrupt 178</p>
  
  <p>Any other dmesg output of lircd, no matter what action, is repeatedly (most likely due to the debug option set) only</p>
  
  <pre><code>lirc_rpi: SET_SEND_CARRIER
  lirc_rpi: in init_timing_params, freq=38000 pulse=13157, space=13158
  lirc_rpi: SET_SEND_DUTY_CYCLE
  lirc_rpi: in init_timing_params, freq=38000 pulse=13157, space=13158
  </code></pre>