Site updated at 2017-11-12 14:00:53 UTC
This commit is contained in:
parent
b0c4bebd4c
commit
6e1f14f447
28 changed files with 73 additions and 66 deletions
|
@ -82,7 +82,13 @@
|
|||
</code></pre>
|
||||
</div>
|
||||
<p class="note">
|
||||
If you are configuring on a Raspberry Pi, there are excellent instructions with GPIO schematics and driver configurations <a href="http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/">here</a>. Consider following these.
|
||||
If you are configuring on a Raspberry Pi, there are excellent instructions with GPIO schematics and driver configurations <a href="http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/">here</a>. Take notice, the instructions in this blog are valid for Raspian Jesse where lirc 0.9.0 was included in the debian package. In Raspian Stretch lirc 0.9.4 is included in the Debian package.
|
||||
The configuration is slightly different :
|
||||
- The <code class="highlighter-rouge">hardware.conf</code> file is not supported, obsoleted by a new <code class="highlighter-rouge">lirc_options.conf</code> file and systemd unit definitions.
|
||||
- The former single <code class="highlighter-rouge">lirc</code> service is replaced with the three systemd services <code class="highlighter-rouge">lircd.service</code>, <code class="highlighter-rouge">lircmd.service</code> and <code class="highlighter-rouge">irexec.service</code>. There is no counterpart to the 0.9.0 <code class="highlighter-rouge">lirc</code> service which covered all of these. Using a separate transmitter device requires yet another service.
|
||||
- 0.9.4 defaults to using systemd for controlling the services. This is not just start/stop functionality, systemd is used to implement new features and to address shortcomings in 0.9.0. However, traditional systemV scripts are also installed and could be used although this is less tested and not really documented.<br />
|
||||
<br />
|
||||
For more infomation have a look at <code class="highlighter-rouge">/usr/share/doc/lirc/README.Debian.gz</code> where the update process is explained when you have updated from jessie to stretch.
|
||||
</p>
|
||||
<h3><a class="title-link" name="configuring-lirc" href="#configuring-lirc"></a> Configuring LIRC</h3>
|
||||
<p>Now teach LIRC about your particular remote control by preparing a lircd configuration file (<code class="highlighter-rouge">/etc/lirc/lircd.conf</code>). Search the <a href="http://lirc.sourceforge.net/remotes/">LIRC remote database</a> for your model. If you can’t find it, then you can always use the <code class="highlighter-rouge">irrecord</code> program to learn your remote. This will create a valid configuration file. Add as many remotes as you want by pasting them into the file. If <code class="highlighter-rouge">irrecord</code> doesn’t work (e.g. for some air conditioner remotes), then the <code class="highlighter-rouge">mode2</code> program is capable of reading the codes in raw mode, followed by <code class="highlighter-rouge">irrecord -a</code> to extract hex codes.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue