📄 143-145.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Configuration and Installation:Installing and Configuring XFree86</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=1558285660//-->
<!--TITLE=Linux Configuration and Installation//-->
<!--AUTHOR=Patrick Volkerding//-->
<!--AUTHOR=Kevin Reichard//-->
<!--AUTHOR=Eric Foster//-->
<!--PUBLISHER=IDG Books Worldwide, Inc.//-->
<!--IMPRINT=M & T Books//-->
<!--CHAPTER=3//-->
<!--PAGES=143-145//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="139-143.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="145-148.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><FONT SIZE="+1"><B>Probing for Dot Clocks</B></FONT></P>
<P>The XFree86 X server has a special <B>probeonly</B> mode that outputs values from the <B>XF86Config</B> file and values it detects. You need to run X in this mode to see if things are going to work and to see if it detects any problems.</P>
<P>Run the command line:</P>
<!-- CODE SNIP //-->
<PRE>
X -probeonly
</PRE>
<!-- END CODE SNIP //-->
<P>when your system has no extra load on it. Stop any unneeded programs before running this, as any extra system load may influence the timings X obtains.
</P>
<P>The following command runs X in <B>probeonly</B> mode and sends the output to the file named <B>/tmp/x.values</B>:</P>
<!-- CODE SNIP //-->
<PRE>
X -probeonly > /tmp/x.values 2>&1
</PRE>
<!-- END CODE SNIP //-->
<P>Be sure to run <B>X</B> from the console. Don’t try to run <B>X</B> if you’re already running <B>X</B>.</P>
<P>If you have some dot clocks in the <B>XF86Config</B> file, then <B>X -probeonly</B> won’t try to detect new ones. Because of this, the first time you run X this way, you should comment out the clocks in your <B>XF86Config</B> file. After you run X in <B>probeonly</B> mode, you can add the clocks to the <B>XF86Config</B> file and try it again, seeing if things still seem to work.</P>
<P>You can then look at the file <B>/tmp/x.values</B>, which should contain something like the following:</P>
<!-- CODE //-->
<PRE>
XFree86 Version 3.1.1 / X Window System
(protocol Version 11, revision 0, vendor release 6000)
Operating System: Linux
Configured drivers:
S3: accelerated server for S3 graphics adapters (Patchlevel 0)
mmio_928, s3_generic
(using VT number 7)
XF86Config: /usr/X11R6/lib/X11/XF86Config
(**) stands for supplied, (-) stands for probed/default values
(**) Mouse: type: Microsoft, device: /dev/ttyS0, baudrate: 1200
(**) S3: Graphics device ID: "Actix GE32+ 2MB"
(**) S3: Monitor ID: "NEC MultiSync XE17"
(**) FontPath set to
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X1
1R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/li
b/X11/fonts/100dpi/"
(-) S3: card type: ISA
(-) S3: chipset: 928, rev E or above
(-) S3: chipset driver: mmio_928
(**) S3: videoram: 1024k
(**) S3: Ramdac type: att20c490
(-) S3: Ramdac speed: 110
(-) S3: clocks: 25.24 28.32 39.99 0.00 50.13 77.02 37.35 44.89
(-) S3: clocks: 90.11 119.98 80.30 31.50 110.16 65.08 75.17 94.68
(-) S3: Maximum allowed dot-clock: 110.000 MHz
(**) S3: Mode "1024x768": mode clock = 81.000, clock used = 80.300
(**) S3: Mode "800x600": mode clock = 50.000, clock used = 50.130
(**) S3: Mode "640x480": mode clock = 31.000, clock used = 31.500
(-) S3: Using 6 bits per RGB value
(**) S3: Virtual resolution set to 1024x768
</PRE>
<!-- END CODE //-->
<P>Note that many of these values come from our <B>XF86Config</B> file.</P>
<P>Now, add the clocks to the Device section of your <B>XF86Config</B> file. Note that each time we ran <B>X -probeonly</B>, it returned slightly different clock values. For example, in this run, we got the following clock values (formatted for the <B>XF86Config</B> file):</P>
<!-- CODE SNIP //-->
<PRE>
Clocks 25.24 28.32 39.99 0.00 50.13 77.02 37.35 44.89
Clocks 90.11 119.98 80.30 31.50 110.16 65.08 75.17 94.68
</PRE>
<!-- END CODE SNIP //-->
<P>From the <B>AccelCards</B> file, we found these clocks—close, but not exact:</P>
<!-- CODE SNIP //-->
<PRE>
Clocks 25 28 40 72 50 77 36 45
Clocks 90 120 80 32 110 65 75 95
</PRE>
<!-- END CODE SNIP //-->
<H4 ALIGN="LEFT"><A NAME="Heading20"></A><FONT COLOR="#000077">Testing Your Configuration</FONT></H4>
<P>Now you’re ready to start X and see if things work. Type in the following command and see if things start up:
</P>
<!-- CODE SNIP //-->
<PRE>
startx
</PRE>
<!-- END CODE SNIP //-->
<P>The <B>startx</B> shell script is the official way to start X from a user account.</P>
<H3><A NAME="Heading21"></A><FONT COLOR="#000077">Starting X</FONT></H3>
<P>The <B>startx</B> script runs the <B>xinit</B> program, which does two things: runs the X server (the program named <B>X</B>) and then runs the commands in the <B>.xinitrc</B> file in your home directory. These commands should set up the X applications you want launched on startup. If there’s no <B>.xinitrc</B> file in your home directory, then <B>xinit</B> runs a default script. The system default <B>.xinitrc</B> file is <B>/usr/lib/X11/xinit/xinitrc.fvwm</B> (no dot).</P>
<P>The best way to start out with X is—once you verify your <B>XF86Config</B> file—to copy the system <B>.xinitrc</B> into your home directory and then edit this file. Most of the <B>.xinitrc</B> file comes from the standard XFree86 installation for Linux; it looks for certain files, few of which will actually exist, and it executes programs using those files it finds. The section at the end is where you’ll set up the X applications you want started when X starts.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="139-143.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="145-148.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 + -