⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 434-436.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Installing the X Windows System</TITLE>

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

 -->




<!--ISBN=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

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

<!--IMPRINT=Que//-->

<!--CHAPTER=21//-->

<!--PAGES=434-436//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="431-434.html">Previous</A></TD>

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

<TD><A HREF="437-438.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>Some of the other options available in the <TT>Pointer</TT> section are shown in Table 21.6, but you shouldn&#146;t add them to your XF86Config file unless you&#146;re absolutely sure what effect they&#146;ll have on your system.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 21.6</B> <TT>Pointer</TT> Section Options

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="40%" ALIGN="LEFT">Option

<TH WIDTH="60%" ALIGN="LEFT">Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><TT>BaudRate <I>rate</I></TT>

<TD>Specifies the baud rate for a serial mouse.

<TR>

<TD><TT>SampleRate <I>rate</I></TT>

<TD>Needed by some Logitech mice.

<TR>

<TD><TT>ClearDTR</TT> or <TT>ClearRTS</TT>

<TD>Required by some mice using the MouseSystem protocol.

<TR>

<TD><TT>ChordMiddle</TT>

<TD>Needed by some Logitech mice.

<TR>

<TD VALIGN="TOP"><TT>Emulate3Buttons</TT>

<TD>Allows a two-button mouse, such as Microsoft mice, to emulate a three-button mouse. The third button is emulated by pressing both buttons at once. Many X applications need a three-button mouse for proper operation.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>If you have a Logitech mouse, especially one that doesn&#146;t emulate a Microsoft mouse, you may have to experiment with some of the options in Table 21.6.<HR></FONT>

</BLOCKQUOTE>

<P><FONT SIZE="+1"><B>The <I>Monitor</I> Section

</B></FONT></P>

<P>The <TT>Monitor</TT> section is probably the most important section of the XF86Config file&#151;and probably the most dangerous. Misinformation in this file can cause catastrophic damage to your system, so be careful!</P>

<P>The SuperProbe program and your manufacturer&#146;s documentation will help greatly in creating this section. You can also use the files /usr/X11R6/lib/X11/doc/modesDB.txt and /usr/X11R6/lib/X11/doc/monitors to search for information on your particular monitor.</P>

<P>A typical <TT>Monitor</TT> section follows:</P>

<!-- CODE //-->

<PRE>

Section &#147;Monitor&#148;

Identifier   &#147;Sanyo 1450 NI&#148;

VendorName   &#147;Sanyo&#148;

ModelName    &#147;My 14 inch monitor&#148;

Bandwidth     60

HorizSync    30-60

VeriRefresh  50-90

#Modes:    Name     dotclock   Horizontal Timing     Vertical Timing

ModeLine   &#147;640x480&#148;   25      640 672 768 800       480 490 492 525

ModeLine   &#147;800x600&#148;   36      800 840 912 1024      600 600 602 625

ModeLine   &#147;1024x768i&#148; 45      1024 1024 1224 1264   768 768 776 816

EndSection

</PRE>

<!-- END CODE //-->

<P>Your <TT>Monitor</TT> section can have more than one monitor defined, so for each monitor you must supply the information shown in Table 21.7.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 21.7</B> <TT>Monitor</TT> Section Options

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="30%" ALIGN="LEFT"><B>Option</B>

<TH WIDTH="70%" ALIGN="LEFT"><B>Description</B>

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><TT>Identifier <I>string</I></TT>

<TD>Monitor identifier.

<TR>

<TD><TT>VendorName <I>string</I></TT>

<TD>Identifies the manufacturer.

<TR>

<TD><TT>ModelName <I>string</I></TT>

<TD>Identifies the make and model.

<TR>

<TD><TT>Bandwidth <I>value</I></TT>

<TD>The monitor&#146;s bandwidth.

<TR>

<TD VALIGN="TOP"><TT>HorizSync <I>range</I></TT>

<TD>The valid horizontal sync frequencies (in kHz). This can be a range if you have a multisync monitor, or a series of single values for a fixed-frequency monitor.

<TR>

<TD VALIGN="TOP"><TT>VertRefresh <I>range</I></TT>

<TD>Specifies the vertical refresh frequencies. They can be listed as a range or a series of single values, like the <TT>HorizSync</TT> value.

<TR>

<TD><TT>Gamma <I>value</I></TT>

<TD>The gamma correction value for your monitor.

<TR>

<TD VALIGN="TOP"><TT>ModeLine <I>values</I></TT>

<TD>Specifies a series of values for each resolution to be displayed on the monitor.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P>For each resolution, you&#146;ll need a <TT>ModeLine</TT> entry in the <TT>Monitor</TT> section. The entry has the following format:</P>

<!-- CODE SNIP //-->

<PRE>

ModeLine &#147;name&#148; <I>dotclock</I>     Horizontal <I>Freq</I> Vertical <I>Freq</I>

</PRE>

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

<P>The horizontal and vertical frequencies are a series of four values expressed in kHz. You can get most values from running the <TT>xf86Config</TT> program (discussed later in the section &#147;Running the <TT>xf86Config</TT> Program&#148;) or from the various documentation files included with the XFree86 package. For your initial test, it&#146;s best to enter a standard configuration from the documentation and then let X probe your system for more appropriate values.</P>

<P><FONT SIZE="+1"><B>The <I>Device</I> Section

</B></FONT></P>

<P>The <TT>Device</TT> section describes the system&#146;s video card to XFree86. The <TT>Device</TT> section for Standard VGA looks like the following:</P>

<!-- CODE //-->

<PRE>

Section &#147;Device&#148;

Identifier    &#147;SVGA&#148;

VendorName    &#147;Trident&#148;

BoardName     &#147;TVG89&#148;

Chipset       &#147;tvga8900c&#148;

VideoRam      1024

Clocks        25.30 28.32 45.00 36.00 57.30 65.10 50.40 39.90

Option        ...

EndSection

</PRE>

<!-- END CODE //-->

<P>The only values that might be hard to come by are the clock values. You video card uses these values to generate the clock signals that in turn provide the various frequencies needed to display information on your monitor. If you get these values really wrong, you can blow your monitor! You can get this value by running X with a special parameter, <TT>-probeonly</TT>, which allows X to scan your system without much chance of physical damage to your system (<TT>-probeonly</TT> is discussed later in this chapter). X then generates a report with most of the values needed for your configuration.</P>

<P>Your server may also require optional parameters. These optional entries in the <TT>Device</TT> section are detailed in the appropriate man page for your server.</P>

<P><FONT SIZE="+1"><B>The <I>Screen</I> Section

</B></FONT></P>

<P>Your XF86Config file can contain many monitor and device entries. These entries are tied together in the <TT>Screen</TT> section to create your X desktop for your X server. A sample <TT>Screen</TT> section follows:</P>

<!-- CODE //-->

<PRE>

Section &#147;Screen&#148;

Driver     &#147;vga2&#148;

Device     &#147;SVGA&#148;

Monitor    &#147;Sanyo 1450 NI&#148;

Subsection &#147;Display&#148;

Depth      8

Modes      &#147;1024x768&#148; &#147;800x600&#148; &#147;640x480&#148;

ViewPort   0 0

Virtual    1024 768

EndSubsection

EndSection

</PRE>

<!-- END CODE //-->

<P>The <TT>Screen</TT> section uses the identifier names from the <TT>Device</TT> and <TT>Monitor</TT> sections. The <TT>Driver</TT> value tells what X server you&#146;re running and can have one of the following values:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Accel

<DD><B>&#149;</B>&nbsp;&nbsp;SVGA

<DD><B>&#149;</B>&nbsp;&nbsp;VGA16

<DD><B>&#149;</B>&nbsp;&nbsp;VGA2

<DD><B>&#149;</B>&nbsp;&nbsp;Mono

</DL>

<P>Within the <TT>Screen</TT> section are display subsections, which describe the various modes available for a particular resolution. Each <TT>Mode</TT> value refers back to each <TT>ModeLine</TT> value defined in the <TT>Monitor</TT> section.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="431-434.html">Previous</A></TD>

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

<TD><A HREF="437-438.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





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

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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