<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY xorg-openchrome-driver-version "0.3.3">

  <!ENTITY xorg-openchrome-driver-download-http "&xorg-download-http;/driver/xf86-video-openchrome-&xorg-openchrome-driver-version;.tar.bz2">
  <!ENTITY xorg-openchrome-driver-download-ftp  "&xorg-download-ftp;/driver/xf86-video-openchrome-&xorg-openchrome-driver-version;.tar.bz2">
  <!ENTITY xorg-openchrome-driver-md5sum        "f21abcdf87f73b5b547491281e894c87">
  <!ENTITY xorg-openchrome-driver-size          "507 KB">
  <!ENTITY xorg-openchrome-driver-buildsize     "14 MB">
  <!ENTITY xorg-openchrome-driver-time          "0.1 SBU">
]>

  <!-- Begin Xorg OpenChrome Driver -->
  <sect2 id="xorg-openchrome-driver" xreflabel="Xorg OpenChrome Driver-&xorg-openchrome-driver-version;">

    <title>Xorg OpenChrome Driver-&xorg-openchrome-driver-version;</title>

    <indexterm zone="xorg-openchrome-driver">
      <primary sortas="a-xorg-openchrome-driver">xorg-openchrome-driver</primary>
    </indexterm>

    <sect3 role="package">
      <title>Introduction to Xorg OpenChrome Driver</title>

      <para>
        The <application>Xorg OpenChrome Driver</application> package contains the X.Org
        Video Driver for Via integrated video cards including Unichrome, Unichrome Pro
        and Chrome9 series.
      </para>

      &lfs76_built;

      <bridgehead renderas="sect4">Package Information</bridgehead>
      <itemizedlist spacing="compact">
        <listitem>
          <para>
            Download (HTTP): <ulink url="&xorg-openchrome-driver-download-http;"/>
          </para>
        </listitem>
        <listitem>
          <para>
            Download (FTP): <ulink url="&xorg-openchrome-driver-download-ftp;"/>
          </para>
        </listitem>
        <listitem>
          <para>
            Download MD5 sum: &xorg-openchrome-driver-md5sum;
          </para>
        </listitem>
        <listitem>
          <para>
            Download size: &xorg-openchrome-driver-size;
          </para>
        </listitem>
        <listitem>
          <para>
            Estimated disk space required: &xorg-openchrome-driver-buildsize;
          </para>
        </listitem>
        <listitem>
          <para>
            Estimated build time: &xorg-openchrome-driver-time;
          </para>
        </listitem>
      </itemizedlist>

      <bridgehead renderas="sect4">Xorg OpenChrome Driver Dependencies</bridgehead>

      <bridgehead renderas="sect5">Required</bridgehead>
      <para role="required">
        <xref linkend="xorg-server"/>
      </para>

      <para condition="html" role="usernotes">
        User Notes: <ulink url="&blfs-wiki;/xorg-openchrome-driver"/>
      </para>
    </sect3>

    <sect3 role="kernel" id="xorg-openchrome-driver-kernel">
      <title>Kernel Configuration</title>

    <para>
      Enable the following options in the kernel configuration and recompile the
      kernel if necessary:
    </para>

<screen><literal>Device Drivers  ---&gt;
  Graphics support ---&gt;
    Via unichrome video cards: Y or M</literal></screen>

      <indexterm zone="xorg-openchrome-driver xorg-openchrome-driver-kernel">
        <primary sortas="d-xorg-openchrome-driver">xorg-openchrome-driver</primary>
      </indexterm>
    </sect3>

    <sect3 role="installation">
      <title>Installation of Xorg OpenChrome Driver</title>

      <para>
        Install <application>Xorg OpenChrome Driver</application> by running the following
        commands:
      </para>

<screen><userinput>sed -i "/via_3d.h/i #include &lt;xorg-server.h&gt;" src/via_3d.c &amp;&amp;

./configure $XORG_CONFIG &amp;&amp;
make</userinput></screen>

      <para>
        This package does not come with a test suite.
      </para>

      <para>
        Now, as the <systemitem class="username">root</systemitem> user:
      </para>

<screen role="root"><userinput>make install</userinput></screen>
    </sect3>

    <sect3>
      <title>Command Explanations</title>
      <para>
        <command>sed -i ...</command>: This sed fixes building with the latest
        version of <application>Glibc</application>.
      </para>
    </sect3>

    <sect3 role="content">
      <title>Contents</title>

      <segmentedlist>
        <segtitle>Installed Libraries</segtitle>
        <segtitle>Installed Xorg Driver</segtitle>

        <seglistitem>
          <seg>
            libchromeXvMCPro.so and libchromeXvMC.so
          </seg>
          <seg>
            openchrome_drv.so
          </seg>
        </seglistitem>
      </segmentedlist>

      <variablelist>
        <bridgehead renderas="sect4">Short Descriptions</bridgehead>
        <?dbfo list-presentation="list"?>
        <?dbhtml list-presentation="table"?>

        <varlistentry id="openchrome_drv">
          <term><filename class="libraryfile">openchrome_drv.so</filename></term>
          <listitem>
            <para>
              is an Xorg video driver for VIA integrated graphics chipsets.
            </para>
            <indexterm zone="xorg-openchrome-driver openchrome_drv">
              <primary sortas="c-openchrome_drv">openchrome_drv.so</primary>
            </indexterm>
          </listitem>
        </varlistentry>

      </variablelist>

    </sect3>

  </sect2>
  <!-- End Xorg OpenChrome Driver -->
