2006-10-31 12:23:38 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2003-09-21 13:05:42 +00:00
|
|
|
<!-- $Revision$ -->
|
2006-01-05 23:32:18 +00:00
|
|
|
<chapter id="install">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Installation</title>
|
|
|
|
|
2003-10-29 00:22:07 +00:00
|
|
|
<para>
|
|
|
|
A quick installation guide can be found in the <filename>README</filename>
|
|
|
|
file. Please read it first and then come back here for the rest of the gory
|
|
|
|
details.
|
|
|
|
</para>
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
2006-11-21 20:28:27 +00:00
|
|
|
In this section you will be guided through the compilation and configuration
|
2003-03-23 23:35:12 +00:00
|
|
|
process of <application>MPlayer</application>. It's not easy, but it won't
|
2006-11-21 20:28:27 +00:00
|
|
|
necessarily be hard. If you experience a behavior different from this
|
|
|
|
description, please search through this documentation and you'll find your
|
|
|
|
answers.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="softreq">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Software requirements</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
2006-11-21 20:28:27 +00:00
|
|
|
<emphasis role="bold">binutils</emphasis> - recommended version is
|
|
|
|
<emphasis role="bold">2.11.x</emphasis>.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-11-21 20:28:27 +00:00
|
|
|
<emphasis role="bold">gcc</emphasis> - recommended versions are 2.95
|
2006-11-12 16:44:54 +00:00
|
|
|
and 3.4+. 2.96 and 3.0.x are known to generate faulty code, 3.1 and
|
2006-11-12 18:41:30 +00:00
|
|
|
3.2 also had problems, 3.3 some minor ones. On PowerPC, use 4.x.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-11-21 20:28:27 +00:00
|
|
|
<emphasis role="bold">Xorg/XFree86</emphasis> - recommended version is
|
|
|
|
4.3 or later. Make sure the
|
|
|
|
<emphasis role="bold">development packages</emphasis> are installed,
|
2003-03-23 23:35:12 +00:00
|
|
|
too, otherwise it won't work.
|
2006-11-21 20:28:27 +00:00
|
|
|
You don't absolutely need X, some video output drivers work without it.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-11-21 20:28:27 +00:00
|
|
|
<emphasis role="bold">make</emphasis> - recommended version is
|
|
|
|
3.79.x or later. To build the XML documentation you need 3.80.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
2006-09-13 13:19:20 +00:00
|
|
|
<listitem><para>
|
2006-11-29 09:41:57 +00:00
|
|
|
<emphasis role="bold">FreeType</emphasis> - optional,
|
2006-11-29 23:50:18 +00:00
|
|
|
required to have a font for the OSD and subtitles. At least 2.0.9 is required.
|
2006-09-13 13:19:20 +00:00
|
|
|
</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>
|
2006-11-29 23:50:18 +00:00
|
|
|
<emphasis role="bold">libjpeg</emphasis> - optional JPEG en/decoder,
|
|
|
|
required for the JPEG video output driver and decoding MJPEG video
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-11-29 09:41:57 +00:00
|
|
|
<emphasis role="bold">libpng</emphasis> - optional (M)PNG en/decoder,
|
|
|
|
required for the GUI and the PNG video output driver
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-11-21 20:28:27 +00:00
|
|
|
<emphasis role="bold">lame</emphasis> - 3.90 or later is recommended,
|
|
|
|
necessary for encoding MP3 audio with <application>MEncoder</application>.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
2003-10-30 00:21:31 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">zlib</emphasis> - recommended, necessary for compressed
|
2006-11-21 20:28:27 +00:00
|
|
|
MOV header and PNG support
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-01-22 16:26:42 +00:00
|
|
|
<emphasis role="bold"><ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink></emphasis>
|
2006-11-21 20:28:27 +00:00
|
|
|
- optional, needed for some RTSP/RTP streams
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
2006-11-21 20:28:27 +00:00
|
|
|
<emphasis role="bold">directfb</emphasis> - optional, use 0.9.13 or later.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">cdparanoia</emphasis> - optional, for CDDA support
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">libxmms</emphasis> - optional, for XMMS input plugin
|
|
|
|
support. At least 1.2.7 is required.
|
|
|
|
</para></listitem>
|
2003-05-19 17:18:05 +00:00
|
|
|
<listitem><para>
|
2006-11-14 21:20:48 +00:00
|
|
|
<emphasis role="bold">libsmb</emphasis> - optional, for smb networking support
|
2003-05-19 17:18:05 +00:00
|
|
|
</para></listitem>
|
2005-01-02 22:44:35 +00:00
|
|
|
<listitem><para>
|
|
|
|
<emphasis role="bold">ALSA</emphasis> - optional, for ALSA audio output
|
|
|
|
support. At least 0.9.0rc4 is required.
|
|
|
|
</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
</itemizedlist>
|
2006-01-05 23:32:18 +00:00
|
|
|
</sect1>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
|
2006-01-05 23:32:18 +00:00
|
|
|
<sect1 id="features">
|
2003-03-23 23:35:12 +00:00
|
|
|
<title>Features</title>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>
|
2003-11-16 19:55:53 +00:00
|
|
|
Decide if you need GUI. If you do, see the <link linkend="gui">GUI</link>
|
|
|
|
section before compiling.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
If you want to install <application>MEncoder</application> (our great
|
2003-11-30 13:07:40 +00:00
|
|
|
all-purpose encoder), see the
|
|
|
|
<link linkend="mencoder"><application>MEncoder</application></link> section.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
If you have a V4L compatible <emphasis role="bold">TV tuner</emphasis> card,
|
|
|
|
and wish to watch/grab and encode movies with <application>MPlayer</application>,
|
|
|
|
read the <link linkend="tv-input">TV input</link> section.
|
|
|
|
</para></listitem>
|
2006-08-28 17:05:18 +00:00
|
|
|
<listitem><para>
|
2006-08-29 00:57:26 +00:00
|
|
|
If you have a V4L compatible <emphasis role="bold">radio tuner</emphasis> card,
|
2006-08-28 17:05:18 +00:00
|
|
|
and wish to listen and capture sound with <application>MPlayer</application>,
|
2006-08-29 00:57:26 +00:00
|
|
|
read the <link linkend="radio">radio</link> section.
|
2006-08-28 17:05:18 +00:00
|
|
|
</para></listitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
<listitem><para>
|
|
|
|
There is a neat <emphasis role="bold">OSD Menu</emphasis> support ready to be
|
|
|
|
used. Check the <link linkend="subosd">OSD menu</link> section.
|
|
|
|
</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Then build <application>MPlayer</application>:
|
|
|
|
<screen>
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install</screen>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
At this point, <application>MPlayer</application> is ready to use. The
|
|
|
|
directory <filename class="directory">$PREFIX/share/mplayer</filename>
|
|
|
|
contains the <filename>codecs.conf</filename> file, which is used to tell
|
2003-05-19 17:18:05 +00:00
|
|
|
the program all the codecs and their capabilities. This file is needed only
|
|
|
|
when you want to change its properties, as the main binary contains an internal
|
|
|
|
copy of it. Check if you have
|
2003-03-23 23:35:12 +00:00
|
|
|
<filename>codecs.conf</filename> in your home directory
|
|
|
|
(<filename>~/.mplayer/codecs.conf</filename>) left from old
|
|
|
|
<application>MPlayer</application> versions, and remove it.
|
|
|
|
</para>
|
|
|
|
|
2003-07-09 17:35:34 +00:00
|
|
|
<para>
|
|
|
|
Note that if you have a <filename>codecs.conf</filename> in
|
|
|
|
<filename>~/.mplayer/</filename>, the builtin and system
|
|
|
|
<filename>codecs.conf</filename> will be ignored completely.
|
2003-11-30 13:07:40 +00:00
|
|
|
Do not do this unless you want to fiddle with <application>MPlayer</application>
|
|
|
|
internals as this can can cause many problems. If you want to change the codecs
|
|
|
|
search order, use the <option>-vc</option>, <option>-ac</option>, <option>-vfm</option>,
|
2003-07-09 17:35:34 +00:00
|
|
|
or <option>-afm</option> options either on the command line or in your
|
|
|
|
config file (see the manual page).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
|
|
|
Debian users can build a .deb package for themselves, it's very simple.
|
|
|
|
Just exec
|
|
|
|
<screen>fakeroot debian/rules binary</screen>
|
|
|
|
in <application>MPlayer</application>'s root directory. See
|
2003-10-26 14:58:17 +00:00
|
|
|
<link linkend="debian">Debian packaging</link> for detailed instructions.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<emphasis role="bold">Always browse the output of</emphasis>
|
|
|
|
<filename>./configure</filename>, and the
|
|
|
|
<filename>configure.log</filename> file, they contain information about
|
|
|
|
what will be built, and what will not. You may also want to view
|
|
|
|
<filename>config.h</filename> and <filename>config.mak</filename> files.
|
|
|
|
If you have some libraries installed, but not detected by
|
|
|
|
<filename>./configure</filename>, then check if you also have the proper
|
|
|
|
header files (usually the -dev packages) and their version matches. The
|
|
|
|
<filename>configure.log</filename> file usually tells you what is missing.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Though not mandatory, the fonts should be installed in order to gain OSD,
|
|
|
|
and subtitle functionality. The recommended method is installing a TTF
|
2003-11-30 13:07:40 +00:00
|
|
|
font file and telling <application>MPlayer</application> to use it.
|
|
|
|
See the <link linkend="subosd">Subtitles and OSD</link> section for details.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- ********** -->
|
|
|
|
|
|
|
|
<sect1 id="gui">
|
|
|
|
<title>What about the GUI?</title>
|
|
|
|
|
|
|
|
<para>
|
2005-10-04 21:43:29 +00:00
|
|
|
The GUI needs GTK 1.2.x or GTK 2.0 (it isn't fully GTK, but the panels are).
|
|
|
|
The skins are stored in PNG format, so GTK, <systemitem class="library">libpng</systemitem>
|
2003-10-26 14:58:17 +00:00
|
|
|
(and their devel stuff, usually called <systemitem class="library">gtk-dev</systemitem>
|
2003-03-23 23:35:12 +00:00
|
|
|
and <systemitem class="library">libpng-dev</systemitem>) has to be installed.
|
|
|
|
You can build it by specifying <option>--enable-gui</option> during
|
2003-04-26 22:52:46 +00:00
|
|
|
<filename>./configure</filename>. Then, to turn on GUI mode, you have to
|
|
|
|
execute the <command>gmplayer</command> binary.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
As <application>MPlayer</application> doesn't have a skin included, you
|
|
|
|
have to download them if you want to use the GUI. See the <ulink
|
2006-03-01 10:01:43 +00:00
|
|
|
url="http://www.mplayerhq.hu/dload.html">download page</ulink>.
|
2003-03-23 23:35:12 +00:00
|
|
|
They should be extracted to the usual system-wide directory (<filename
|
2006-03-27 11:39:27 +00:00
|
|
|
class="directory">$PREFIX/share/mplayer/skins</filename>), or to <filename
|
|
|
|
class="directory">$HOME/.mplayer/skins</filename>.
|
2003-03-23 23:35:12 +00:00
|
|
|
<application>MPlayer</application> by default looks in these directories
|
|
|
|
for a directory named <filename class="directory">default</filename>, but
|
|
|
|
you can use the <option>-skin <replaceable>newskin</replaceable></option>
|
|
|
|
option, or the <literal>skin=newskin</literal> config file directive to use
|
2006-03-27 11:39:27 +00:00
|
|
|
the skin in <filename class="directory">*/skins/newskin</filename>
|
2003-03-23 23:35:12 +00:00
|
|
|
directory.
|
|
|
|
</para>
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- ********** -->
|
|
|
|
|
2006-09-13 14:30:44 +00:00
|
|
|
<sect1 id="fonts-osd">
|
|
|
|
<title>Fonts and OSD</title>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
<para>
|
2006-09-13 13:19:20 +00:00
|
|
|
You need to tell <application>MPlayer</application> which font to use to
|
|
|
|
enjoy OSD and subtitles. Any TrueType font or special bitmap fonts will
|
|
|
|
work. However, TrueType fonts are recommended as they look far better,
|
|
|
|
can be properly scaled to the movie size and cope better with different
|
|
|
|
encodings.
|
2006-09-13 14:30:44 +00:00
|
|
|
</para>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
2006-09-13 14:33:54 +00:00
|
|
|
|
2006-09-13 14:30:44 +00:00
|
|
|
<sect2 id="truetype-fonts">
|
|
|
|
<title>TrueType fonts</title>
|
|
|
|
|
|
|
|
<para>
|
2006-09-13 14:33:54 +00:00
|
|
|
There are two ways to get TrueType fonts to work. The first is to pass
|
|
|
|
the <option>-font</option> option to specify a TrueType font file on
|
|
|
|
the command line. This option will be a good candidate to put in your
|
|
|
|
configuration file (see the manual page for details).
|
|
|
|
The second is to create a symlink called <filename>subfont.ttf</filename>
|
|
|
|
to the font file of your choice. Either
|
|
|
|
<screen>ln -s <replaceable>/path/to/sample_font.ttf</replaceable> ~/.mplayer/subfont.ttf</screen>
|
|
|
|
for each user individually or a system-wide one:
|
|
|
|
<screen>ln -s <replaceable>/path/to/sample_font.ttf</replaceable> $PREFIX/share/mplayer/subfont.ttf</screen>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If <application>MPlayer</application> was compiled with
|
|
|
|
<systemitem class="library">fontconfig</systemitem> support, the above methods
|
|
|
|
won't work, instead <option>-font</option> expects a
|
|
|
|
<systemitem class="library">fontconfig</systemitem> font name
|
2006-10-23 13:26:56 +00:00
|
|
|
and defaults to the sans-serif font. Example:
|
2003-03-23 23:35:12 +00:00
|
|
|
|
2006-09-13 13:19:20 +00:00
|
|
|
<screen>mplayer -font <replaceable>'Bitstream Vera Sans'</replaceable> <replaceable>anime.mkv</replaceable></screen>
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
2006-10-23 13:26:56 +00:00
|
|
|
<para>
|
|
|
|
To get a list of fonts known to
|
|
|
|
<systemitem class="library">fontconfig</systemitem>,
|
|
|
|
use <command>fc-list</command>.
|
|
|
|
</para>
|
2006-09-13 14:02:02 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 id="bitmap-fonts">
|
|
|
|
<title>bitmap fonts</title>
|
|
|
|
|
2003-03-29 23:17:46 +00:00
|
|
|
<para>
|
2006-09-13 13:19:20 +00:00
|
|
|
If for some reason you wish or need to employ bitmap fonts, download a set
|
|
|
|
from our homepage. You can choose between various
|
|
|
|
<ulink url="http://www.mplayerhq.hu/MPlayer/releases/fonts/">ISO fonts</ulink>
|
|
|
|
and some sets of fonts
|
|
|
|
<ulink url="http://www.mplayerhq.hu/MPlayer/contrib/fonts/">contributed by users</ulink>
|
|
|
|
in various encodings.
|
2003-03-30 13:47:11 +00:00
|
|
|
</para>
|
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
<para>
|
2006-09-13 13:19:20 +00:00
|
|
|
Uncompress the file you downloaded to
|
|
|
|
<filename class="directory">~/.mplayer</filename> or
|
|
|
|
<filename class="directory">$PREFIX/share/mplayer</filename>.
|
|
|
|
Then rename or symlink one of the extracted directories to
|
|
|
|
<filename class="directory">font</filename>, for example:
|
|
|
|
<screen>ln -s <replaceable>~/.mplayer/arial-24</replaceable> ~/.mplayer/font</screen>
|
|
|
|
<screen>ln -s <replaceable>$PREFIX/share/mplayer/arial-24</replaceable> $PREFIX/share/mplayer/font</screen>
|
|
|
|
</para>
|
2003-03-23 23:35:12 +00:00
|
|
|
|
2006-09-13 13:19:20 +00:00
|
|
|
<para>
|
|
|
|
Fonts should have an appropriate <filename>font.desc</filename> file
|
|
|
|
which maps unicode font positions to the actual code page of the
|
|
|
|
subtitle text. Another solution is to have UTF-8-encoded subtitles
|
2006-10-23 13:26:56 +00:00
|
|
|
and use the <option>-utf8</option> option or give the subtitles
|
|
|
|
file the same name as your video file with a <filename>.utf</filename>
|
|
|
|
extension and have it in the same directory as the video file.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
2006-09-13 13:19:20 +00:00
|
|
|
|
2003-03-23 23:35:12 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 id="osdmenu">
|
|
|
|
<title>OSD menu</title>
|
|
|
|
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
<application>MPlayer</application> has a completely user definiable OSD Menu interface.
|
2003-03-23 23:35:12 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<note><simpara>
|
|
|
|
the Preferences menu is currently UNIMPLEMENTED!
|
|
|
|
</simpara></note>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<title>Installation</title>
|
|
|
|
<listitem><simpara>
|
|
|
|
compile <application>MPlayer</application> by passing the <option>--enable-menu</option>
|
|
|
|
to <filename>./configure</filename>
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
make sure you have an OSD font installed
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
copy <filename>etc/menu.conf</filename> to your
|
|
|
|
<filename class="directory">.mplayer</filename> directory
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
copy <filename>etc/input.conf</filename> to your
|
|
|
|
<filename class="directory">.mplayer</filename> directory, or to the system-wide
|
|
|
|
<application>MPlayer</application> config dir (default:
|
|
|
|
<filename class="directory">/usr/local/etc/mplayer</filename>)
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
check and edit <filename>input.conf</filename> to enable menu movement keys
|
|
|
|
(it is described there).
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
start <application>MPlayer</application> by the following example:
|
2004-01-01 17:44:41 +00:00
|
|
|
<screen>$ mplayer -menu <replaceable>file.avi</replaceable></screen>
|
2003-03-23 23:35:12 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
push any menu key you defined
|
|
|
|
</simpara></listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- ********** -->
|
|
|
|
|
|
|
|
<sect1 id="rtc">
|
|
|
|
<title>RTC</title>
|
|
|
|
<para>
|
2003-11-30 13:07:40 +00:00
|
|
|
There are three timing methods in <application>MPlayer</application>.
|
2003-03-23 23:35:12 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">To use the old method</emphasis>, you don't have to do
|
|
|
|
anything. It uses <systemitem>usleep()</systemitem> to tune
|
|
|
|
A/V sync, with +/- 10ms accuracy. However sometimes the sync has to be
|
|
|
|
tuned even finer.
|
|
|
|
</simpara></listitem>
|
|
|
|
<listitem><para>
|
2004-07-09 15:19:47 +00:00
|
|
|
<emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime Clock)
|
2006-09-09 22:40:00 +00:00
|
|
|
for this task, because it has precise 1ms timers. The <option>-rtc</option>
|
|
|
|
option enables it, but a properly set up kernel is required.
|
2003-03-23 23:35:12 +00:00
|
|
|
If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC
|
2003-12-22 15:23:16 +00:00
|
|
|
frequency for normal users through the <systemitem class="systemname">/proc
|
2006-09-24 17:01:07 +00:00
|
|
|
</systemitem> filesystem. Use one of the following two commands to
|
2003-03-23 23:35:12 +00:00
|
|
|
enable RTC for normal users:
|
|
|
|
<screen>echo 1024 > /proc/sys/dev/rtc/max-user-freq</screen>
|
2006-09-24 17:01:07 +00:00
|
|
|
<screen>sysctl dev/rtc/max-user-freq=1024</screen>
|
|
|
|
You can make this setting permanent by adding the latter to
|
|
|
|
<filename>/etc/sysctl.conf</filename>.
|
|
|
|
</para>
|
|
|
|
<para>
|
2003-03-23 23:35:12 +00:00
|
|
|
You can see the new timer's efficiency in the status line.
|
|
|
|
The power management functions of some notebook BIOSes with speedstep CPUs
|
|
|
|
interact badly with RTC. Audio and video may get out of sync. Plugging the
|
|
|
|
external power connector in before you power up your notebook seems to help.
|
|
|
|
In some hardware combinations (confirmed during usage of non-DMA DVD drive
|
|
|
|
on an ALi1541 board) usage of the RTC timer causes skippy playback. It's
|
|
|
|
recommended to use the third method in these cases.
|
|
|
|
</para></listitem>
|
|
|
|
<listitem><simpara>
|
|
|
|
<emphasis role="bold">The third timer code</emphasis> is turned on with the
|
|
|
|
<option>-softsleep</option> option. It has the efficiency of the RTC, but it
|
|
|
|
doesn't use RTC. On the other hand, it requires more CPU.
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
|
|
|
</sect1>
|
2006-01-05 23:32:18 +00:00
|
|
|
|
|
|
|
</chapter>
|