title: how to record an ir signal from an AC remote using LIRC in raspberry pi?
body: <p>i had already used the LIRC of the raspberry pi to record and use the IR signals of a samsung TV remote. the recording process was fine. i used <a href="http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/" rel="nofollow noreferrer">this</a> site for reference.But now i am unable to record the IR signals from a bluestar AC in the same method. After 1-3 dots (not always the same number), irrecord exits with the following error message:</p>
  
  <pre><code>irrecord: could not find gap.  
  irrecord: gap not found, can't continue
  </code></pre>
  
  <p>then i tried recording the AC remote signals using mode2 and routing it to a text file and manually modified the lircd.conf file to include the raw code as shown in the link</p>
  
  <p><a href="https://stackoverflow.com/questions/22652156/how-to-use-irrecord-with-2ms-timing-instead-of-the-default-5ms">How to use irrecord with 2ms timing instead of the default 5ms?</a></p>
  
  <p>but then i get the error that</p>
  
  <pre><code>irsend: command failed: SEND_ONCE /etc/lirc/lircd.conf KEY_POWER   
  irsend: unknown remote : "/etc/lirc/lircd.conf"
  </code></pre>