📄 x-config.html
字号:
href="http://www.FreeBSD.org/cgi/man.cgi?query=XFree86&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">XFree86</span>(1)</span></a>). The <varclass="LITERAL">Modes</var> keyword describes the resolution to run at for the givencolor depth. Note that only VESA standard modes are supported as defined by the targetsystem's graphics hardware. In the example above, the default color depth is twenty-fourbits per pixel. At this color depth, the accepted resolution is 1024 by 768 pixels.</p><p>Finally, write the configuration file and test it using the test mode given above.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> One of the tools available to assist you during troubleshooting processare the X11 log files, which contain information on each device that the X11 serverattaches to. <b class="APPLICATION">Xorg</b> log file names are in the format of <ttclass="FILENAME">/var/log/Xorg.0.log</tt> (<b class="APPLICATION"><spanclass="TRADEMARK">XFree86</span></b> log file names follow the format of <ttclass="FILENAME">XFree86.0.log</tt>). The exact name of the log can vary from <ttclass="FILENAME">Xorg.0.log</tt> to <tt class="FILENAME">Xorg.8.log</tt> and soforth.</p></blockquote></div><p>If all is well, the configuration file needs to be installed in a common locationwhere <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=Xorg&sektion=1&manpath=X11R6.7.0"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">Xorg</span>(1)</span></a> (or <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=XFree86&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">XFree86</span>(1)</span></a>) can findit. This is typically <tt class="FILENAME">/etc/X11/xorg.conf</tt> or <ttclass="FILENAME">/usr/X11R6/etc/X11/xorg.conf</tt> (for <b class="APPLICATION"><spanclass="TRADEMARK">XFree86</span></b> it is called <ttclass="FILENAME">/etc/X11/XF86Config</tt> or <ttclass="FILENAME">/usr/X11R6/etc/X11/XF86Config</tt>).</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cp xorg.conf.new /etc/X11/xorg.conf</kbd></pre><p>For <b class="APPLICATION"><span class="TRADEMARK">XFree86</span></b>:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cp XF86Config.new /etc/X11/XF86Config</kbd></pre><p>The X11 configuration process is now complete. In order to start <bclass="APPLICATION"><span class="TRADEMARK">XFree86</span> 4.X</b> with <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=startx&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">startx</span>(1)</span></a>, installthe <a href="http://www.FreeBSD.org/cgi/url.cgi?ports/x11/wrapper/pkg-descr"><ttclass="FILENAME">x11/wrapper</tt></a> port. <b class="APPLICATION">Xorg</b> alreadyincludes the wrapper code and does not require the installation of the wrapper port. TheX11 server may also be started with the use of <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xdm&sektion=1&manpath=XFree86+4.4.0"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">xdm</span>(1)</span></a>.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> There is also a graphical configuration tool, <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xorgcfg&sektion=1&manpath=X11R6.7.0"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">xorgcfg</span>(1)</span></a> (<ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xf86cfg&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">xf86cfg</span>(1)</span></a> for <bclass="APPLICATION"><span class="TRADEMARK">XFree86</span></b>), that comes with the X11distribution. It allows you to interactively define your configuration by choosing theappropriate drivers and settings. This program can be invoked from the console, by typingthe command <tt class="COMMAND">xorgcfg -textmode</tt>. For more details, refer to the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xorgcfg&sektion=1&manpath=X11R6.7.0"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">xorgcfg</span>(1)</span></a> and <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xf86cfg&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">xf86cfg</span>(1)</span></a> manualpages.</p><p>Alternatively, there is also a tool called <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xorgconfig&sektion=1&manpath=X11R6.7.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">xorgconfig</span>(1)</span></a> (<ahref="http://www.FreeBSD.org/cgi/man.cgi?query=xf86config&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">xf86config</span>(1)</span></a>for <b class="APPLICATION"><span class="TRADEMARK">XFree86</span></b>), this program is aconsole utility that is less user friendly, but it may work in situations where the othertools do not.</p></blockquote></div></div><div class="SECT2"><h2 class="SECT2"><a id="AEN6440" name="AEN6440">5.4.3 Advanced ConfigurationTopics</a></h2><div class="SECT3"><h3 class="SECT3"><a id="AEN6442" name="AEN6442">5.4.3.1 Configuration with <spanclass="TRADEMARK">Intel</span>® i810 Graphics Chipsets</a></h3><p>Configuration with <span class="TRADEMARK">Intel</span>® i810 integrated chipsetsrequires the <tt class="DEVICENAME">agpgart</tt> AGP programming interface for X11 todrive the card. The <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=agp&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">agp</span>(4)</span></a> driver is inthe <tt class="FILENAME">GENERIC</tt> kernel since releases 4.8-RELEASE and 5.0-RELEASE.On prior releases, you will have to add the following line:</p><pre class="PROGRAMLISTING">device agp</pre><p>in your kernel configuration file and rebuild a new kernel. Instead, you may want toload the <tt class="FILENAME">agp.ko</tt> kernel module automatically with the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=loader&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">loader</span>(8)</span></a> at boottime. For that, simply add this line to <tt class="FILENAME">/boot/loader.conf</tt>:</p><pre class="PROGRAMLISTING">agp_load="YES"</pre><p>Next, if you are running FreeBSD 4.X or earlier, a device node needs to becreated for the programming interface. To create the AGP device node, run <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=MAKEDEV&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">MAKEDEV</span>(8)</span></a> in the <ttclass="FILENAME">/dev</tt> directory:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /dev</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">sh MAKEDEV agpgart</kbd></pre><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> FreeBSD 5.X or later will use <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=devfs&sektion=5&manpath=FreeBSD+6-current"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">devfs</span>(5)</span></a> toallocate device nodes transparently, therefore the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=MAKEDEV&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">MAKEDEV</span>(8)</span></a> step is notrequired.</p></blockquote></div><p>This will allow configuration of the hardware as any other graphics board. Note onsystems without the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=agp&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">agp</span>(4)</span></a> driver compiledin the kernel, trying to load the module with <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=kldload&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">kldload</span>(8)</span></a> will notwork. This driver has to be in the kernel at boot time through being compiled in or using<tt class="FILENAME">/boot/loader.conf</tt>.</p><p>If you are using <b class="APPLICATION"><spanclass="TRADEMARK">XFree86</span> 4.1.0</b> (or later) and messages about unresolvedsymbols like <var class="LITERAL">fbPictureInit</var> appear, try adding the followingline after <var class="LITERAL">Driver "i810"</var> in the X11 configuration file:</p><pre class="PROGRAMLISTING">Option "NoDDC"</pre></div></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="x-install.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="x-fonts.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Installing X11</td><td width="34%" align="center" valign="top"><a href="x11.html" accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Using Fonts in X11</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting <<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br />For questions about this documentation, e-mail <<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -