📄 install.html
字号:
Type <em>su</em> to get root privileges and start <em>mode2</em> (<B>Warning:</B> don't confuse mode2 with mode3: mode3 will set your video card to a vesa mode using the vesa bios calls...). This should load the kernel module into the kernel and display the infrared signals. Hold your remote control to your infrared receiver and press some buttons. You should see an output like this (the values of your remote will probably be different): </P> <PRE> pulse 93 space 4965 pulse 108 space 4969 pulse 93 space 7496 pulse 93 space 7489 pulse 93 space 47915 pulse 138 space 7475 pulse 93 space 7494 pulse 93</PRE> <P> If you don't see anything, try to find out: (a) if you selected the correct driver with the correct settings (I/O base address, IRQ), (b) if you use a remote which works and (c) if your hardware works. The voltage input of the infrared receiver should be 5V +/- 0.5V, the output pin of the receiver should be about 0.5V less than the input voltage. </P> <P> From time to time there should be long spaces (>30000). If you can see very long pulses this usually means that sense auto detection of your serial port IR receiver circuit has failed. You can override sense auto detection by loading the device driver with the following option:</P> <P> <em>insmod lirc_serial sense=0</em> if your receiver circuit is active high or<BR> <em>insmod lirc_serial sense=1</em> if your receiver circuit is active low. </P> <P> Well, the driver seems to work, now let's test if lircd also does its job. This only works, if lircd uses a <A HREF="configure.html#lircd.conf">config file</A> which fits to your remote control. Use <A HREF="irrecord.html"><em>irrecord</em></A> in the case the LIRC distribution doesn't provide a config file suitable for your remote and it still is not available at the LIRC homepage. A more detailed discussion of creating new config files is available in the section about, you guess it: <A HREF="help.html#new_remote">Adding new remote controls</A>. </P> <P> Then start the decoder daemon with (make sure it is in your path): <em>lircd</em> [config file] </P> <P> The following program dumps the decoded key codes from lircd to stdout: <em>irw</em> </P> <P> This looks like this (depending on your remote): </P> <PRE> 0000000000f40bf0 00 1_DOWN ANIMAX 0000000000f40bf0 01 1_DOWN ANIMAX 0000000000f40bf0 02 1_DOWN ANIMAX 0000000000f40bf0 03 1_DOWN ANIMAX 0000000000f40bf0 04 1_DOWN ANIMAX 0000000000f40bf0 05 1_DOWN ANIMAX 0000000000748bf0 00 1_UP ANIMAX 0000000000748bf0 01 1_UP ANIMAX 0000000000748bf0 02 1_UP ANIMAX 0000000000718ef0 00 RED_BUTTON_UP ANIMAX</PRE> <P> If the driver test did work, but you now see nothing, then check <em>/var/log/lircd</em>. If you still see nothing suspicious compile lircd in DEBUG mode and look at the log file again. In debug mode lircd has an additional command line option that lets you choose the detail level of debug information. </P> <A NAME="sending"></A><HR> <H1 ALIGN="CENTER">Sending infrared signals</H1> <HR WIDTH="70%"> <P> The LIRC package contains the <A HREF="rc.html">rc</A> tool for sending infrared signals to e.g. your TV or CD player. For reliable transmission a good config file is even more important than for receiving. A discussion of all the infrared protocols is way beyond the scope of this manual but when creating a config file at least read the <A HREF="help.html#new_remote">hints</A> at the end of this manual. You can find exact timing specifications for most common inside the remotes/generic/ directory of the LIRC package. </P> <P> If you want a graphical interface for controlling your devices using LIRC, you should have a look at xrc. You can download the xrc package from the LIRC homepage. xrc is a Qt based program. Setting up xrc and Qt is a bit tricky so if you don't manage to compile it you can still use rc. It has the full functionality you need. </P> <!-- Uninstall LIRC ++++++++++++++++++++++++++++++++++++++++++++++++++ --> <A NAME="uninstall"></A><HR> <H1 ALIGN="CENTER">Uninstall</H1> <HR WIDTH="70%"> <UL> <LI>Remove the installed binaries, and device nodes:<BR> <BR> <em>make uninstall</em><BR> <BR> </LI> <LI>Remove the config files, if you don't need them anymore:<BR> <BR> <em>rm /etc/lircd.conf /etc/lircmd.conf ~/.lircrc</em><BR> <BR> </LI> </UL> <!-- Module specific information +++++++++++++++++++++++++++++++++++++ --> <A NAME="specific"></A><HR> <H1 ALIGN="CENTER">Module specific information</H1> <HR WIDTH="70%"> <H3>lirc_gpio</H3> <P> This module receives scan codes from the GPIO register of bt8[47]8 chips using polling or interrupts if the card supports this. It is a "plugin" for the <em>lirc_dev</em> module. It loads <em>bttv</em> and <em>lirc_dev</em> modules if they are not loaded yet.<BR> </P> <P> Parameters are: </P> <UL> <LI><B>debug</B> (0) - value other than 0 (zero) enables printing more log messages</LI> <LI><B>card</B> (0) - number of TV card from which receive scan codes</LI> <LI><B>minor</B> (-1) - minor device number for /dev/lirc device</LI> <LI><B>gpio_mask</B> (0) - bit mask used for extracting usable bits from GPIO value<BR> If this parameter is equal to 0 then the module tries to autodetect the TV card and the remaining parameters are ignored.</LI> <LI><B>gpio_lock_mask</B> (0) - if this value "anded" with GPIO value is non zero than it indicates that scan code is not ready (value of 0 of this parameter disables checking)</LI> <LI><B>gpio_xor_mask</B> (0) - bitmask applied (by xor operation) to GPIO value before lock_mask is checked</LI> <LI><B>soft_gap</B> (0) - minimal gap (in milliseconds) between two scan codes (value of 0 disables checking)</LI> <LI><B>sample_rate</B> (10) - how often (times per second) GPIO will be polled, set to 0 for interrupt driven input</LI> </UL> <P> Supported hardware: </P> <UL> <LI><B>Prolink - PixelView PlayTV pro</B> - parameters: gpio_mask=0x1f00, gpio_lock_mask=0x8000, gpio_xor_mask=0, soft_gap=400, sample_rate=12</LI> <LI><B>AVerMedia - TVCapture98 and TVPhone98 (pre 98 also)</B> - parameters: gpio_mask=0xf88000, gpio_lock_mask=0x10000, gpio_xor_mask=0x10000, soft_gap=0, sample_rate=10</LI> <LI>many more...</LI> </UL> <P> Autodetection is performed using the API from the <em>bttv</em> module - this means that if <em>bttv</em> doesn't properly recognize the card type the remote control won't work. </P> <!-- Updating from lirc-0.5.4 ++++++++++++++++++++++++++++++++++++++++ --> <A NAME="updating054"></A><HR> <H1 ALIGN="CENTER">Updating from lirc-0.5.4</H1> <HR WIDTH="70%"> <P> This section only describes changes that break compatibility with older versions. Please read the <EM>NEWS</EM> file to learn about all new features of this release. </P> <P> The config files of <em>lircd</em> and <em>lircmd</em> are now located in <em>/usr/local/etc/</em> instead of <em>/etc/</em> per default. Most people prefer to make <em>/usr/local/etc/</em> a link to <em>/etc/</em>. </P> <P> The modules no longer are uniformly installed as <em>lirc.o</em> but are called lirc_<em>driver</em>.o depending on the driver you are using. Therefore you might have to edit your <em>/etc/conf.modules</em> and change the line </P> <PRE> alias char-major-61 lirc</PRE> <P> to whatever you need. </P> <P> LIRC now supports the Irman directly. <em>lirmand</em> is no longer necessary. Before installing this version you should call <NOBR><EM>rm /dev/lirc</EM></NOBR> to remove the FIFO that was used in lirc-0.5.4. <em>/dev/lirc</em> now should be a link to the device the Irman is connected to (e.g. <em>/dev/ttyS1</em>). </P> <A NAME="updating062"></A><HR> <H1 ALIGN="CENTER">Updating from lirc-0.6.2</H1> <HR WIDTH="70%"> <P> The lirc_gpio_p has been renamed to lirc_gpio. I now also contains support for TV cards that are able to generate interrupts if infra-red commands are received. The lirc_gpio_i driver that implemented this has been removed. The lirc_fly98 also has been removed as it is now supported by the lirc_gpio driver. </P> <P> The <em>lirc_haup</em> module has been renamed to <em>lirc_i2c</em>. </P> <P> The transmit code in <em>lirc_serial</em> has been modified slightly. If you have problems transmitting decrease the frequency value in the lircd config file by approximately 2000. </P> <P> There have been major changes to the SIR driver. If you used this driver before you may have to generate new config files for your remotes. Transmitting is now more likely to work. </P> <P> The config file for the old AVerMedia TVCapture and TVPhone cards (pre 98) has changed. Please use the new config file that you can find in <em>remotes/avermedia/lircd.conf.avermedia</em>. </P> <A NAME="updating063"></A><HR> <H1 ALIGN="CENTER">Updating from lirc-0.6.3</H1> <HR WIDTH="70%"> <P>lircd.conf and lircmd.conf are in /etc again.</P> <P> Two independend bugs were fixed in the Irdeo and home-brew transmitter code that affected correct pulse/space timings in some situations. This might break config files that did work with previous versions. </P> <A NAME="updating064"></A><HR> <H1 ALIGN="CENTER">Updating from lirc-0.6.4</H1> <HR WIDTH="70%"> <P> AVerMedia TV cards with ID 0x00011461 and 0x00041461 should finally work with the provided config files. That means they will no longer work with the config files you have created yourself. </P> <P> The I/O base address for some modules now is set with the <em>io</em> parameter. (formerly: lirc_sir = iobase, lirc_serial and lirc_parallel = port). </P> <A NAME="updating065"></A><HR> <H1 ALIGN="CENTER">Updating from lirc-0.6.5</H1> <HR WIDTH="70%"> <P> The config file for the Pixelview PlayTV pro and compatible TV cards has changed. Please use the config file in <em>remotes/pixelview/lircd.conf.playtv_pro</em>. </P> <P> The config file for the Winfast TV2000 and compatible TV cards has changed. Please use the config file in <em>remotes/winfast/lircd.conf.tv2000</em>. </P><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <BR><BR> <CENTER>[<A HREF="http://www.lirc.org/">LIRC homepage</A>]<BR> <I>The LIRC Manual, last update: 12-Sep-2002</I></CENTER> <BR><BR> </TD> <TD WIDTH="15%"> <BR></TD> </TR> </TABLE> </TD> </TR> <TR> <TD CLASS="menu" WIDTH="100%"> <BR> </TD> </TR> </TABLE> </BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -