📄 configure.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML> <HEAD> <TITLE>LIRC - Linux Infrared Remote Control</TITLE> <LINK REL=stylesheet TYPE="text/css" HREF="../lirc.css"> <META NAME="description" CONTENT="LIRC - Linux Infra-red Remote Control"> <META NAME="keywords" CONTENT="linux, kernel module, remote control, animax, multimedia"> </HEAD> <BODY BACKGROUND="../images/marb18.jpg" BGCOLOR="#FFFFFF" TEXT="#000000" ALINK="#8080FF"> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> <TR> <TD CLASS="menu" WIDTH="100%" HEIGHT="150"> <IMG SRC="../images/diode.gif" ALT="" WIDTH="300" HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="LEFT"> <IMG SRC="../images/lirc.gif" ALT="" WIDTH="300" HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="RIGHT"> </TD> </TR> <TR> <TD WIDTH="100%"> <BR> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> <TR> <TD WIDTH="15%"> <BR></TD> <TD WIDTH="70%" ALIGN="LEFT" VALIGN="TOP"> <BR><!-- Text ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <!-- lircd.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <A NAME="lircd.conf"></A><HR> <H1 ALIGN="CENTER">Configuring lircd (the LIRC daemon)</H1> <HR WIDTH="70%"> <OL> <LI>Check if there is already a config file in <em>/etc/lircd.conf</em>. If not</LI> <LI>check if there is a config file available for your remote control at the LIRC homepage and copy it to <em>/etc/lircd.conf</em>. If not</LI> <LI>start <em>irrecord</em> (finish all applications that access <em>/dev/lirc</em> first) and follow the instructions given to you by this program. Copy the resulting file to <em>/etc/lircd.conf</em>.</LI> </OL> <P> If you want to use more than one remote control you can simply concatenate the config files: <em>cat config1 config2 >config</em> </P> <P> <B>Note:</B> If you already have a config file for the libirman package you can convert it using the <em>irman2lirc</em> script that you can find in the contrib directory. </P> <!-- lircd.conf fileformat +++++++++++++++++++++++++++++++++++++++++++ --> <A NAME="lircd.conf_format"></A><HR> <H1 ALIGN="CENTER">The lircd.conf file format</H1> <HR WIDTH="70%"> <P> A description of the <A HREF="http://winlirc.sourceforge.net/technicaldetails.html">file format</A> is available on the WinLIRC pages. In fact you don't need to know anything about it except that it's maybe the most important part of the package. </P> <!-- lircmd.conf +++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <A NAME="lircmd.conf"></A><HR> <H1 ALIGN="CENTER">Configuring lircmd (the LIRC mouse daemon)</H1> <HR WIDTH="70%"> <P> <em>lircmd</em> can be used to emulate a mouse with your remote control. Depending on the config file described in the next section it converts IR signals into mouse events. It currently supports three mouse protocols (MouseSystems, IntelliMouse and IMPS/2). For compatibility reasons the default protocol is the MouseSystems protocol but the preferred is the IntelliMouse protocol. The advantage of this protocol is its wheel-mouse support. That way you can for example configure Netscape to scroll if you press certain buttons. </P> <P> IMPS/2 used to be the preferred protocol since it also has wheel-mouse support and IntelliMouse was not available. However PS/2 protocol specifies that the mouse must accept and reply to specific commands, and that can not be done through the pipe <em>lircmd</em> uses. For this reason IntelliMouse support was written and is currently the prefered protocol. </P> <P> lircmd can basically be used with two applications: X11 and gpm<BR> Configuration of both is described here: </P> <H3>X11</H3> <H4>3.x</H4> <P> Just put this section in your XF86Config file to use the mouse in addition to your normal one. </P> <PRE> Section "XInput" Subsection "Mouse" Protocol "IntelliMouse" Device "/dev/lircm" DeviceName "Remote" AlwaysCore EndSubsection EndSection</PRE> <P> Additionally you might have to add </P> <PRE> Buttons 5</PRE> <P> to your normal "Pointer" Section in order to make the wheel buttons work. Of course you have to replace IntelliMouse with IMPS/2 or MouseSystems if you really want to use one of this protocols. Colas Nahaboo's <A HREF="http://www.inria.fr/koala/colas/mouse-wheel-scroll/">X mouse wheel scroll page</A> gives you further information how to make use of your new wheel mouse. </P> <P> Make sure you use a current version of X11. There seems to be a bug in X version 3.3 that can make X crash if you use both mouse and remote control mouse simultaneously. At least I couldn't reproduce this with other versions. I also received some notes that lircmd does not work with certain X11 versions. But almost always at least one of the protocols did work. So try them all before trying another X11 version. But always remember that you have to modify both XF86Config and lircmd.conf so they use the same protocol. </P> <H4>4.x</H4> <P> Put this section in your XF86Config-4 file to use the mouse in addition to your normal one. </P> <PRE>Section "InputDevice" Identifier "LIRC-Mouse" Driver "mouse" Option "Device" "/dev/lircm" Option "Protocol" "IntelliMouse" Option "SendCoreEvents" Option "Buttons" "5" Option "ZAxisMapping" "4 5"EndSection</PRE> <P> And add a line to the ServerLayout section like this: </P> <PRE>Section "ServerLayout" ... InputDevice "LIRC-Mouse" <-- add this lineEndSection</PRE> <H3>gpm</H3> <P> You can also e.g. use <em>multimouse</em> (available at <A HREF="ftp://sunsite.unc.edu/">ftp://sunsite.unc.edu/</A> or mirrors) or <em>gpm</em> to use it parallel to your normal mouse. With: </P> <PRE> gpm -t ps2 -R -M -m /dev/lircm -t ms3</PRE> or<BR> <PRE> gpm -t ps2 -R -M -m /dev/lircm -t imps2</PRE> or<BR> <PRE> gpm -t ps2 -R -M -m /dev/lircm -t msc</PRE> <P> I can use my usual PS/2 mouse and my remote control (IntelliMouse, IMPS/2 or MouseSystems protocol) at the same time to control the mouse pointer. </P> <P> <B>Note:</B> If you update lircmd.conf you can send the HUP signal to lircmd: </P> <PRE> killall -HUP lircmd</PRE> <P> This instructs lircmd to reread its config file. The same is true for lircd if you change lircd.conf. lircd will also reopen its log file on SIGHUP. </P> <!-- lircmd.conf fileformat ++++++++++++++++++++++++++++++++++++++++++ --> <A NAME="lircmd.conf_format"></A><HR> <H1 ALIGN="CENTER">The lircmd.conf file format</H1> <HR WIDTH="70%"> <P> The config file for lircmd is quite simple. Just look at the example in the contrib directory. Some drivers even already bring their config file for lircmd with them so lircmd is ready to run. </P> <DL> <DT>PROTOCOL <<em>protocol</em>></DT> <DD> <P> You can choose between MouseSystems, IntelliMouse and IMPS/2 protocol. The default is MouseSystems protocol. </P> </DD> <DT>ACCELERATOR <<em>start</em>> <<em>max</em>> <<em>multiplier</em>></DT> <DD> <P> Change the values here if your mouse pointer is moving too fast/slow. Usually the mouse pointer moves 1 pixel every time it receives a signal. The values here specify how much mouse movement accelerates if you hold down the according button on your remote control for a longer timer. The <em>start</em> value is the threshold that starts acceleration. Then the amount of pixels is calculated with the following formula:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -