409-411.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 158 行

HTML
158
字号
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Installing and Configuring XFree86</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=22//-->

<!--PAGES=409-411//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="406-408.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="412-414.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading17"></A><FONT COLOR="#000077">Video Cards</FONT></H4>

<P>The next subsection of the <TT>XF86Config</TT> file deals with the video card your system uses. You can have several cards defined with different resolutions, or simply enter the one that you will use the most. For example, the following subsection has a VGA and SVGA generic driver defined:</P>

<!-- CODE //-->

<PRE>

Section &#147;Device&#148;

    Identifier    &#147;Generic VGA&#148;

    VendorName    &#147;Unknown&#148;

    BoardName    &#147;Unknown&#148;

    Chipset    &#147;generic&#148;

    VideoRam    256

    Clocks    25.2 28.3

EndSection



Section &#147;Device&#148;

    # SVGA server auto-detected chipset

    Identifier     &#147;Generic SVGA&#148;

    VendorName     &#147;Unknown&#148;

    BoardName     &#147;Unknown&#148;

EndSection

</PRE>

<!-- END CODE //-->

<P>The <TT>Identifier</TT>, <TT>VendorName</TT>, <TT>BoardName</TT>, and optional <TT>Chipset</TT> entries are strings and are used only for identification purposes. The <TT>VideoRam</TT> (the amount of RAM on the video board) and <TT>Clocks</TT> entries are used to specify any particular behavior for your card. These should be carefully checked to verify the information, as illegal entries can cause damage to some video boards.</P>

<P>If you have a particular video board that has special features, you can create a <TT>Device</TT> entry for that board. For example, the following entry is used for a Trident TVGA board:</P>

<!-- CODE SNIP //-->

<PRE>

Section &#147;Device&#148;

   Identifier    &#147;Any Trident TVGA 9000&#148;

   VendorName    &#147;Trident&#148;

   BoardName    &#147;TVGA 9000&#148;

   Chipset    &#147;tvga9000&#148;

   VideoRam    512

   Clocks    25 28 45 36 57 65 50 40 25 28 0 45 72 77 80 75

EndSection

</PRE>

<!-- END CODE SNIP //-->

<P>The information in the <TT>VideoRam</TT> and <TT>Clocks</TT> lines is taken from the documentation file that accompanies XFree86, although it can be entered manually from the video card&#146;s documentation.</P>

<P>Some video boards require more detail, provided by additional entries in the devices subsection. For example, the following is for an Actix GE32&#43; video card with 2MB of RAM on board:</P>

<!-- CODE //-->

<PRE>

 Section &#147;Device&#148;

    Identifier    &#147;Actix GE32&#43; 2MB&#148;

    VendorName    &#147;Actix&#148;

    BoardName    &#147;GE32&#43;&#148;

    Ramdac    &#147;ATT20C490&#148;

    Dacspeed    110

    Option    &#147;dac_8_bit&#148;

    Clocks     25.0 28.0 40.0  0.0 50.0 77.0 36.0 45.0

    Clocks    130.0 120.0 80.0 31.0 110.0 65.0 75.0 94.0

 EndSection

</PRE>

<!-- END CODE //-->

<P>You will see that the <TT>Ramdac</TT> and <TT>Dacspeed</TT> options, as well as an <TT>Option</TT> line, have been added to the entry. The entries that are allowed in this subsection change with each release of XFree86, so check the man pages or documentation files for more details if you want to get the most out of your video card.</P>

<H4 ALIGN="LEFT"><A NAME="Heading18"></A><FONT COLOR="#000077">The XFree86 Server</FONT></H4>

<P>Earlier in this chapter, we looked at the XFree86 server and showed how you should choose one for your X server specifically. The server section of the <TT>Xconfig</TT> or <TT>XF86Config</TT> file is where the server specification is located. The server subsection from an <TT>XF86Config</TT> file looks like this:</P>

<!-- CODE //-->

<PRE>

Section &#147;Screen&#148;

    Driver     &#147;svga&#148;

    Device     &#147;Generic SVGA&#148;

    Monitor     &#147;Generic Monitor&#148;

    Subsection &#147;Display&#148;

        Depth         8

        Modes         &#147;640x480&#148;

        ViewPort    0 0

        Virtual     800 600

    EndSubsection

EndSection

</PRE>

<!-- END CODE //-->

<P>The preceding section shows a generic SVGA driver. The card supports the VGA 640&#215;480 and SVGA 800&#215;600 resolutions. If you have a more powerful video card and monitor combination, you can use a specific server file if it exists, such as the driver for the Actix GE32&#43; card with 2MB RAM, shown as follows:

</P>

<!-- CODE //-->

<PRE>

 Section &#147;Screen&#148;

     Driver     &#147;accel&#148;

     Device     &#147;Actix GE32&#43; 2MB&#148;

     Monitor     &#147;Generic Monitor&#148;

     Subsection   &#147;Display&#148;

         Depth          8

         Modes          &#147;640x480&#148;

         ViewPort     0 0

         Virtual      1280 1024

     EndSubsection

     SubSection &#147;Display&#148;

         Depth         16

         Weight         565

         Modes         &#147;640x480&#148;

         ViewPort    0 0

         Virtual         1024 768

     EndSubsection

 EndSection

</PRE>

<!-- END CODE //-->

<P>This card is set to use the special accelerated server file for the Actix card, supporting up to 1,280&#215;1,024 resolutions. Check the list of servers to see whether there is one specifically designed for your video card. If you are not sure, default to a generic driver!

</P>

<P>The options in this subsection do not apply to all cards, but you can set their values if you know them. The most important (and most often used) options are as follows:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Depth</I>: the number of color planes (the number of bits per pixel). Usually the depth is 8, although VGA16 servers have a depth of 4 and monochrome displays have a depth of 1. Accelerated video cards can have depths of 16, 24, 32, or even 64 bits per pixel, usually indicated as part of the model name (for example, the Diamond Stealth 24 card has a pixel depth of 24, although check before you assume the card&#146;s model name really is the depth!).

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Modes</I>: a list of the video mode names defined in the ModeLine option in the Monitor section. This shows all the modes the card supports and that you want to use. The first mode on the list is the default value when XFree86 starts. You can then switch between the other modes when XFree86 is running.

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Virtual</I>: the virtual desktop size. With extra RAM on the video card, you can have a virtual desktop larger than the screen display, and can then scroll around the virtual desktop with the mouse. You can, for example, have a virtual desktop of 1,024&#215;768 but display only 800&#215;600 (SVGA). The support for different virtual desktop sizes depends on the amount of RAM and the depth you use. For example, 1MB of RAM on the video card supports 1,024&#215;768 with a depth of 8.2MB RAM supports the same size with a depth of 16 or a 1,280&#215;1,024 desktop at a depth of 8. To use a true virtual desktop, use the <TT>fvwm</TT> window manager (usually used by default).

<DD><B>&#149;</B>&nbsp;&nbsp;<I>ViewPort</I>: used with the virtual desktop to define the coordinates of the upper-left corner of the virtual desktop when XFree86 starts.

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="406-408.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="412-414.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?