|
楼主 |
发表于 2002-9-14 21:45:52
|
显示全部楼层
今天开始校对编号004,希望大家热情参与:
******************************
编号004
__________________________________________________________________________
__________________________________________________________________________
( sec-03 ) 编辑你的 XF86CONFIG 文件
__________________________________________________________________________
当 XFree86 4.0 正式版发行时,与 3.x 系列做了对比,它使用了稍微不同
的 XF86Config 文件句法, 并且这样允许 XFree86 的 3.x 和 4.x
版本在一样的系统上共存, XFree86 4.x 是使用这个配置文件"/etc/X11/XF86Config-4 "
如果它存在了,并且仅仅当那个配置文件
没存在将使用这个配置文件" /etc/X11/XF86Config " ( 实际上, 那是简化了的
搜索标准;请阅读XF86Config文档以获取完整的搜索路径说明
) 。请保证你知道文件 XFree86 正在使用什么配置。如果你存在
疑问,请在XFree86记录文件( "/var/log/XFree86.0.log")里寻找以 "(==) Using config file:"开头的行
。这个README文件将使用"XF68Config"参考你的配置文件, 无论它被起什么名子。
如果你没有一个工作的 XF86Config 文件,这里有开始的若干方法:这里有一
件与你的XFree86带来的XFree86设置样本文件,并且这里有一件包含在NVIDIA_GLX 包
里的样本设置文件 ( 它保存在路径 /usr/share/doc/NVIDIA_GLX-1.0/ 下 ) 。你当然也能用像"
xf86config"这样的配置工具来完成;一些发行商也提供他们自己特有的产生XF86Config文件
的工具。为了获取更多的有关XF86Config文件句法上的信息,
请参考其文档。
如果你已经让一个 XF86Config 文件与一个不同的驱动程序一起工作
( 例如" nv "或" vesa "驱动程序 ), 然后所有你要做的只是找到相关的
设备部分并且用合适的设置从新配置:
Driver " nv "
(或Driver " vesa ")
替换为
Driver " nvidia "
在模块部分,确保你有:
Load " glx "
如果下列选项存在,你也应该将其删除:
Load " dri "
Load " GLcore "
也有众多的经常用到的XF86Config文件选项能被加到 XF86Config文件里
来配置NVIDIA XFree86驱动 。请阅读附录D以获得一个完整的选项清单。
一旦你已经设置好了你的 XF86Config 文件,这就意味着你已经准备好了重启 X 并且
开始使用加速的 OpenGL 库。在你重启 X 后,你应该能够运行任何一个OpenGL应用
并且它将自动地使用新的NVIDIA驱动程序库。如果你遇见任何
问题,请阅读下面的常见问题部分。
-----------------------
英文原文:
__________________________________________________________________________
(sec-03) EDITING YOUR XF86CONFIG FILE
__________________________________________________________________________
When XFree86 4.0 was released, it used a slightly different XF86Config
file syntax than the 3.x series did, and so to allow both 3.x and 4.x
versions of XFree86 to co-exist on the same system, it was decided that
XFree86 4.x was to use the configuration file "/etc/X11/XF86Config-4"
if it existed, and only if that file did not exist would the file
"/etc/X11/XF86Config" be used (actually, that is an over-simplification
of the search criteria; please see the XF86Config man page for a complete
description of the search path). Please make sure you know what
configuration file XFree86 is using. If you are in doubt, look for a
line beginning with "(==) Using config file:" in your XFree86 log file
("/var/log/XFree86.0.log"). This README will use "XF68Config" to refer
to your configuration file, whatever it is named.
If you do not have a working XF86Config file, there are several ways
to start: there is a sample config file that comes with XFree86, and
there is a sample config file included with the NVIDIA_GLX package (it
gets installed in /usr/share/doc/NVIDIA_GLX-1.0/). You could also use
a program like 'xf86config'; some distributions provide their own tool
for generating an XF86Config file. For more on XF86Config file syntax,
please refer to the man page.
If you already have an XF86Config file working with a different driver
(such as the 'nv' or 'vesa' driver), then all you need to do is find
the relevant Device section and replace the line:
Driver "nv"
(or Driver "vesa")
with
Driver "nvidia"
In the Module section, make sure you have:
Load "glx"
You should also remove the following lines:
Load "dri"
Load "GLcore"
if they exist. There are also numerous options that can be added to
the XF86Config file to fine-tune the NVIDIA XFree86 driver. Please see
Appendix D for a complete list of these options.
Once you have configured your XF86Config file, you are ready to restart
X and begin using the accelerated OpenGL libraries. After you restart X,
you should be able to run any OpenGL application and it will automatically
use the new NVIDIA libraries. If you encounter any problems, please
see the FREQUENTLY ASKED QUESTIONS section below. |
|