<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >The lircin Driver</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="LCDproc User's Guide" HREF="book1.html"><LINK REL="UP" TITLE="LCDproc Drivers" HREF="c429.html"><LINK REL="PREVIOUS" TITLE="The Matrix Orbital Driver (MtxOrb)" HREF="x846.html"><LINK REL="NEXT" TITLE="Running LCDproc" HREF="c959.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >LCDproc User's Guide: The Ultimate Guide to LCDproc 0.4.3</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x846.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >LCDproc Drivers</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="c959.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="LIRCIN" ></A >The lircin Driver</H1 ><P >The lircin driver enables you to use any IR remote control that works with LIRC to control the LCDproc server (<TT CLASS="APPLICATION" >LCDd</TT >) and/or clients that can handle input.</P ><P >Of course you need a working LIRC setup. Refer to <A HREF="http://www.lirc.org" TARGET="_top" >http://www.lirc.org</A > for more information on LIRC itself.</P ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="LIRC-INSTALL" ></A >Checking Your LIRC Setup</H2 ><P >Basically all you need is a running <TT CLASS="APPLICATION" >lircd</TT >. And of course you have to start <TT CLASS="APPLICATION" >lircd</TT > as root.</P ><P >Also, make sure that the permission of <TT CLASS="FILENAME" >/dev/lircd</TT > are correct.</P ></DIV ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="LIRCIN-CONFIGURE" ></A >Build LCDd with the lircin Driver</H2 ><P >You need to add lircin to the --enable-drivers=... list.</P ><P >Then simply run make.</P ></DIV ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="LIRCIN-CONFIG" ></A >Configure LCDd to Use the lircin Driver</H2 ><P >First of all you need to activate the driver by adding a Driver=lircin line to your <TT CLASS="FILENAME" >LCDd.conf</TT ></P ><DIV CLASS="EXAMPLE" ><A NAME="AEN920" ></A ><P ><B >Example 1. <TT CLASS="FILENAME" >LCDd.conf</TT >: Activate the lircin driver</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" > Driver=mtxorb Driver=lircin </PRE ></TD ></TR ></TABLE ></DIV ><P >This activates the mtxorb driver as the output driver and the lirc driver as the input driver.</P ><P >Then you have to modify the [lircin] section of your <TT CLASS="FILENAME" >LCDd.conf</TT >.</P ><DIV CLASS="SECT3" ><H3 CLASS="SECT3" ><A NAME="LIRCIN-SECTION" ></A ><TT CLASS="FILENAME" >LCDd.conf</TT >: The [lircin] Section</H3 ><P >The [lircin] section of the <TT CLASS="FILENAME" >LCDd.conf</TT > contains the settings for the lircin LCDproc driver.</P ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT >lircrc=</DT ><DD ><P ><A NAME="WHICH-LIRCRC" ></A >Normally all LIRC clients scan the file <TT CLASS="FILENAME" >~/.lircrc</TT >. However, you might want to have a separate file to configure the LCDproc lircin driver only.</P ><P >This option enables you to specify the file you want the lircin driver to scan.</P ></DD ><DT >prog=</DT ><DD ><P >All LIRC keys are assigned to a program using the prog=... option in the <TT CLASS="FILENAME" >~/.lircrc</TT > (or the file you have specified with lircrc=...).</P ><P >The prog=... line must be the same as in your <TT CLASS="FILENAME" >~/.lircrc</TT > (or the file you have specified with lircrc=...).</P ></DD ></DL ></DIV ></DIV ></DIV ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="LIRCRC" ></A >Modify Your <TT CLASS="FILENAME" >~/.lircrc</TT ></H2 ><P >As mentioned above you can either modify the <TT CLASS="FILENAME" >~/.lircrc</TT > or use a separate file for the lircin LCDproc driver (See <A HREF="x899.html#WHICH-LIRCRC" >above</A > for details).</P ><P >No matter which file you use, you have to add at least the following lines to the file:</P ><DIV CLASS="EXAMPLE" ><A NAME="AEN954" ></A ><P ><B >Example 2. <TT CLASS="FILENAME" >~/.lircrc</TT >: Specify the keys for the lircin driver</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" > begin prog = lcdd button = 2 config = A end begin prog = lcdd button = 4 config = B end begin prog = lcdd button = 6 config = C end begin prog = lcdd button = 8 config = D end </PRE ></TD ></TR ></TABLE ></DIV ><P >Which buttons you specify here depends on your RC and your LIRC configuration. Anyways, config=A/B/C/D is neccessary to control the server menu of LCDd. Of course you can define other keys. Those keys will not be handled by the server but sent to a client. Refer to the documentation of the client you want to use, to find out which keys are neccessary for that client.</P ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x846.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="c959.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >The Matrix Orbital Driver (MtxOrb)</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c429.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Running LCDproc</TD ></TR ></TABLE ></DIV ></BODY ></HTML >