Gentoo Archives: gentoo-commits

From: "Le Zhang (r0bertz)" <r0bertz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/doc/zh_cn: dri-howto.xml metadoc.xml openrc-migration.xml
Date: Fri, 01 Jan 2010 19:38:26
Message-Id: E1NQnKK-0006sO-Hm@stork.gentoo.org
1 r0bertz 10/01/01 19:38:24
2
3 Modified: dri-howto.xml metadoc.xml openrc-migration.xml
4 Log:
5 [zh_cn] updated dri-howto.xml
6
7 Revision Changes Path
8 1.7 xml/htdocs/doc/zh_cn/dri-howto.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/dri-howto.xml?rev=1.7&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/dri-howto.xml?rev=1.7&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/dri-howto.xml?r1=1.6&r2=1.7
13
14 Index: dri-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/dri-howto.xml,v
17 retrieving revision 1.6
18 retrieving revision 1.7
19 diff -u -r1.6 -r1.7
20 --- dri-howto.xml 11 Dec 2008 16:14:32 -0000 1.6
21 +++ dri-howto.xml 1 Jan 2010 19:38:24 -0000 1.7
22 @@ -1,21 +1,21 @@
23 <?xml version="1.0" encoding="utf-8"?>
24
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/dri-howto.xml,v 1.6 2008/12/11 16:14:32 r0bertz Exp $ -->
26 -<!-- English CVS version: 1.43 -->
27 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/dri-howto.xml,v 1.7 2010/01/01 19:38:24 r0bertz Exp $ -->
28 +<!-- English CVS version: 1.45 -->
29 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
30
31 -<guide link="/doc/zh_cn/dri-howto.xml" lang="zh_cn">
32 +<guide lang="zh_cn">
33
34 <title>硬件3D加速指南</title>
35
36 <author title="作者">
37 - <mail link="dberkholz@g.o">Donnie Berkholz</mail>
38 + <mail link="dberkholz"/>
39 </author>
40 <author title="编辑">
41 - <mail link="peesh@g.o">Jorge Paulo</mail>
42 + <mail link="peesh"/>
43 </author>
44 <author title="编辑">
45 - <mail link="nightmorph@g.o">Joshua Saddler</mail>
46 + <mail link="nightmorph"/>
47 </author>
48 <author title="译者">
49 <mail link="r0bertz@g.o">张乐</mail>
50 @@ -29,8 +29,8 @@
51 See http://creativecommons.org/licenses/by-sa/2.5 -->
52 <license/>
53
54 -<version>1.11</version>
55 -<date>2008-12-11</date>
56 +<version>1.13</version>
57 +<date>2010-01-02</date>
58
59 <chapter>
60 <title>解释</title>
61 @@ -258,92 +258,18 @@
62 </pre>
63
64 <note>
65 -FPS可能会受你的屏幕的刷新率所限,所以如果<c>glxgears</c>显示FPS只有70-100时不要忘了这一点。<c>games-fps/ut2004-demo</c>是一个更好的测试工具,它可以给你真实世界的表现结果。
66 +FPS可能会受你的屏幕的刷新率所限,所以如果<c>glxgears</c>显示FPS只有70-100时不要忘了这一点。<c>games-fps/ut2004-demo</c>或者其他3D游戏是更好的测试工具,它们可以给你真实世界的表现结果。
67 </note>
68
69 </body>
70 </section>
71 -</chapter>
72
73 -<chapter>
74 -<title>优化你的显卡的表现</title>
75 <section>
76 <title>获取直接渲染的最高性能</title>
77 <body>
78
79 <p>
80 -有一些选项可以提高表现百分之30或以上。请在<path>/etc/X11/xorg.conf</path>里设定它们。不过,首先你要检查你的主板和显卡是否支持这些选项。
81 -</p>
82 -
83 -<p>
84 -首先,我们来看看你的显卡是否支持fast write。我们通过仔细分析<c>lspci</c>的输出来检查这一点。我们主要看“VGA compatible controller”的信息。
85 -</p>
86 -
87 -<pre caption="显卡检查">
88 -# <i>lspci -vv</i>
89 -01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA])
90 -. . .
91 -Capabilities: [58] AGP version 2.0
92 - Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
93 -</pre>
94 -
95 -<p>
96 -虽然产生了很多信息,不过我们寻找的是“Capabilities”段的“Status”子段的<b>FW</b>。如果<b>FW+</b>出现在“Status”行,这表示这个显卡支持fast write。现在我们可以检查主板是否支持fast write。
97 -</p>
98 -
99 -<impo>
100 -如果你没有看到<b>FW+</b>,但是看到了<b>FW-</b>,你不能在<path>xorg.conf</path>启用fast write。你的显卡不支持fast write。
101 -</impo>
102 -
103 -<p>
104 -现在我们要确保主板也支持fast write。这次我们看你的<c>lspci</c>输出的“Host bridge”段。
105 -</p>
106 -
107 -<pre caption="主板检查">
108 -# <i>lspci -vv</i>
109 -00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 02)
110 -. . .
111 -Capabilities: [a0] AGP version 2.0
112 - Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
113 -</pre>
114 -
115 -<p>
116 -同样,检查你的AGP“Capabilities”段的“Status”子段。寻找<b>FW</b>。如果你看到<b>FW+</b>,你的主板支持fast
117 -write。
118 -</p>
119 -
120 -<impo>
121 -记住,你的显卡和主板要有一样的<b>FW</b>能力。如果有一个设备在“Status”里显示<b>FW-</b>,你就不能在<path>xorg.conf</path>里启用fast
122 -write。
123 -</impo>
124 -
125 -<p>
126 -假设一切正常而且你的主板和显卡都支持fast write,让我们在<path>/etc/X11/xorg.conf</path>里启用这个选项以获取你的硬件的最佳性能。
127 -</p>
128 -
129 -<pre caption="xorg.conf">
130 -Section "Device"
131 - Option "AGPMode" "4"
132 - <comment>(这样FPS能从609上升到618。)</comment>
133 - Option "AGPFastWrite" "True"
134 - <comment>(这一项没有可测量的效果,不过它可能导致系统不稳定。)</comment>
135 - <comment>(你还需要在你的BIOS里设定它。)</comment>
136 - Option "EnablePageFlip" "True"
137 - <comment>(这一项可以使FPS从618上升到702。它也是比较“危险的”,不过很少有人报告过问题。)</comment>
138 - ...
139 -EndSection
140 -</pre>
141 -
142 -<warn>
143 -在VIA芯片组上启用<c>AGPFastWrite</c>几乎肯定会导致你的机器死机。VIA芯片组不能很好的支持fast write,所以你要自己承担使用这个设定的风险。
144 -</warn>
145 -
146 -<note>
147 -记住如果你想让fast write正常运作,你首先需要在你的BIOS里启用相关的设定。
148 -</note>
149 -
150 -<p>
151 -如果你想要设定更多的功能,请查看DRI网页上的<uri link="http://dri.freedesktop.org/wiki/FeatureMatrix">功能矩阵</uri>或者Sourceforge上的<uri link="http://dri.sourceforge.net/doc/dri_driver_features.phtml">功能列表</uri>。
152 +如果你想要设定更多的特性,以获取更高的性能和其他原因,请查看DRI网页上的<uri link="http://dri.freedesktop.org/wiki/FeatureMatrix">特性矩阵</uri>或者Sourceforge上的<uri link="http://dri.sourceforge.net/doc/dri_driver_features.phtml">特性列表</uri>。
153 </p>
154
155 </body>
156 @@ -389,7 +315,7 @@
157 <body>
158
159 <p>
160 -请试试二进制驱动。对于<c>ati-drivers</c>来说,这里有两个连接<uri>http://ati.amd.com/support/drivers/linux/linux-radeon.html</uri>(x86)和<uri>http://ati.amd.com/support/drivers/linux64/linux64-radeon.html</uri>(amd64)。如果这些也不支持,就用fbdev。虽然它比较慢,但是它可以运行的起来。
161 +请试试二进制驱动。对于<c>ati-drivers</c>来说,这里有个连接<uri>http://support.amd.com/us/gpudownload/Pages/index.aspx</uri>。如果这些也不支持,就用fbdev。虽然它比较慢,但是它可以运行的起来。
162 </p>
163
164 </body>
165 @@ -411,24 +337,6 @@
166 </chapter>
167
168 <chapter>
169 -<title>致谢</title>
170 -<section>
171 -<body>
172 -
173 -<ol>
174 - <li>
175 - Christopher Webber,感谢他提供了一个有关改变或者重编译内核的疑难解答问题。
176 - </li>
177 - <li>
178 - Steve,感谢他建议在XF86Config里统一dri和DRI的大小写。
179 - </li>
180 -</ol>
181 -
182 -</body>
183 -</section>
184 -</chapter>
185 -
186 -<chapter>
187 <title>参考</title>
188 <section>
189 <body>
190
191
192
193 1.60 xml/htdocs/doc/zh_cn/metadoc.xml
194
195 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml?rev=1.60&view=markup
196 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml?rev=1.60&content-type=text/plain
197 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml?r1=1.59&r2=1.60
198
199 Index: metadoc.xml
200 ===================================================================
201 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml,v
202 retrieving revision 1.59
203 retrieving revision 1.60
204 diff -u -r1.59 -r1.60
205 --- metadoc.xml 10 Dec 2009 16:57:22 -0000 1.59
206 +++ metadoc.xml 1 Jan 2010 19:38:24 -0000 1.60
207 @@ -1,9 +1,9 @@
208 <?xml version="1.0" encoding="UTF-8"?>
209 <!DOCTYPE metadoc SYSTEM "/dtd/metadoc.dtd">
210 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml,v 1.59 2009/12/10 16:57:22 r0bertz Exp $ -->
211 -<!-- English CVS version: 1.222 -->
212 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml,v 1.60 2010/01/01 19:38:24 r0bertz Exp $ -->
213 +<!-- English CVS version: 1.228 -->
214 <metadoc lang="zh_cn" parent="/doc/en/metadoc.xml">
215 - <version>1.144</version>
216 + <version>1.150</version>
217 <members>
218 <lead>r0bertz</lead>
219 </members>
220 @@ -206,7 +206,6 @@
221 <file id="quick-samba-howto">/doc/en/quick-samba-howto.xml</file>
222 <file id="ltsp">/doc/en/ltsp.xml</file>
223 <file id="gentoolkit">/doc/zh_cn/gentoolkit.xml</file>
224 - <file id="gentoo-sparc-quickinstall">/doc/en/gentoo-sparc-quickinstall.xml</file>
225 <file id="gnupg-user">/doc/en/gnupg-user.xml</file>
226 <file id="ipv6">/doc/en/ipv6.xml</file>
227 <file id="guide-localization">/doc/zh_cn/guide-localization.xml</file>
228 @@ -214,7 +213,7 @@
229 <file id="uml">/doc/en/uml.xml</file>
230 <file id="java">/doc/en/java.xml</file>
231 <file id="openafs">/doc/en/openafs.xml</file>
232 - <file id="kde-config">/proj/zh_cn/desktop/kde/kde-config.xml</file>
233 + <file id="kde4-guide">/proj/en/desktop/kde/kde4-guide.xml</file>
234 <file id="nano-basics-guide">/doc/zh_cn/nano-basics-guide.xml</file>
235 <file id="shoutcast-config">/doc/en/shoutcast-config.xml</file>
236 <file id="vdr-guide">/doc/zh_cn/vdr-guide.xml</file>
237 @@ -242,7 +241,7 @@
238 <file id="gentoo-sparc-netboot-howto">/doc/en/gentoo-sparc-netboot-howto.xml</file>
239 <file id="gentoo-sparc-obpreference">/doc/en/gentoo-sparc-obpreference.xml</file>
240 <file id="gnome-config">/doc/zh_cn/gnome-config.xml</file>
241 - <file id="gnome-upgrade">/proj/zh_cn/desktop/gnome/howtos/gnome-2.22-upgrade.xml</file>
242 + <file id="gnome-upgrade">/proj/en/desktop/gnome/howtos/gnome-2.26-upgrade.xml</file>
243 <file id="gpm">/doc/zh_cn/gpm.xml</file>
244 <file id="home-router-howto">/doc/en/home-router-howto.xml</file>
245 <file id="arm-requirements">/doc/en/arm-requirements.xml</file>
246 @@ -272,7 +271,7 @@
247 <file id="kernel-upgrade">/doc/zh_cn/kernel-upgrade.xml</file>
248 <file id="modular-x-howto">/proj/en/desktop/x/x11/modular-x-howto.xml</file>
249 <file id="porting-modular-x">/proj/zh_cn/desktop/x/x11/porting-modular-x-howto.xml</file>
250 - <file id="xserver-1.5-upgrade">/proj/zh_cn/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml</file>
251 + <file id="xserver-1.6-upgrade">/proj/en/desktop/x/x11/xorg-server-1.6-upgrade-guide.xml</file>
252 <file id="devrel-policy">/proj/en/devrel/policy.xml</file>
253 <file id="translators-howto">/proj/en/gdp/doc/translators-howto.xml</file>
254 <file id="hardened-primer">/proj/en/hardened/primer.xml</file>
255 @@ -311,7 +310,6 @@
256 <file id="metadoc-guide">/proj/en/gdp/doc/metadoc-guide.xml</file>
257 <file id="hpc-howto">/doc/en/hpc-howto.xml</file>
258 <file id="gnap-userguide">/proj/en/base/embedded/gnap-userguide.xml</file>
259 - <file id="kde-split-ebuilds">/proj/en/desktop/kde/kde-split-ebuilds.xml</file>
260 <file id="grub-error-guide">/doc/zh_cn/grub-error-guide.xml</file>
261 <file id="usb-guide">/doc/zh_cn/usb-guide.xml</file>
262 <file id="liveusb">/doc/zh_cn/liveusb.xml</file>
263 @@ -346,7 +344,6 @@
264 <file id="php-upgrade">/proj/zh_cn/php/php-upgrading.xml</file>
265 <file id="jffnms">/doc/en/jffnms.xml</file>
266 <file id="conky">/doc/zh_cn/conky-howto.xml</file>
267 - <file id="ldapdns">/doc/en/ldapdns-guide.xml</file>
268 <file id="man-guide">/doc/zh_cn/man-guide.xml</file>
269 <file id="info-guide">/doc/en/info-guide.xml</file>
270 <file id="java-upgrade">/proj/en/java/java-upgrade.xml</file>
271 @@ -355,6 +352,7 @@
272 <file id="change-chost">/doc/en/change-chost.xml</file>
273 <file id="xfce-config">/doc/zh_cn/xfce-config.xml</file>
274 <file id="openbox">/doc/en/openbox.xml</file>
275 + <file id="lxde-howto">/doc/en/lxde-howto.xml</file>
276 <file id="gcc-optimization">/doc/zh_cn/gcc-optimization.xml</file>
277 <file id="vpnc-howto">/doc/en/vpnc-howto.xml</file>
278 <file id="qa-autofailure">/proj/en/qa/autofailure.xml</file>
279 @@ -372,6 +370,7 @@
280 <file id="multipath">/doc/en/multipath.xml</file>
281 <file id="bind-guide">/doc/zh_cn/bind-guide.xml</file>
282 <file id="devmanual">/proj/en/qa/devmanual.xml</file>
283 + <file id="git-howto">/doc/zh_cn/git-howto.xml</file>
284 </files>
285 <docs>
286 <doc fileid="devmanual">
287 @@ -543,9 +542,6 @@
288 <doc fileid="gentoo-x86-quickinstall_raid">
289 <memberof>install_guides</memberof>
290 </doc>
291 - <doc fileid="gentoo-sparc-quickinstall">
292 - <memberof>install_guides</memberof>
293 - </doc>
294 <doc fileid="amd64-howtos">
295 <memberof>project_base</memberof>
296 </doc>
297 @@ -764,7 +760,7 @@
298 <doc fileid="ati-faq">
299 <memberof>desktop_install</memberof>
300 </doc>
301 - <doc fileid="kde-config">
302 + <doc fileid="kde4-gudie">
303 <memberof>desktop_install</memberof>
304 </doc>
305 <doc fileid="gnome-config">
306 @@ -779,6 +775,9 @@
307 <doc fileid="openbox">
308 <memberof>desktop_install</memberof>
309 </doc>
310 + <doc fileid="lxde-howto">
311 + <memberof>desktop_install</memberof>
312 + </doc>
313 <doc fileid="vserver-howto">
314 <memberof>sysadmin_specific</memberof>
315 </doc>
316 @@ -802,9 +801,6 @@
317 <doc fileid="gpm">
318 <memberof>desktop_config</memberof>
319 </doc>
320 - <doc fileid="kde-split-ebuilds">
321 - <memberof>desktop_install</memberof>
322 - </doc>
323 <doc fileid="nano-basics-guide">
324 <memberof>desktop_apps</memberof>
325 </doc>
326 @@ -1026,7 +1022,7 @@
327 <doc fileid="porting-modular-x">
328 <memberof>gentoodev_docs</memberof>
329 </doc>
330 - <doc fileid="xserver-1.5-upgrade">
331 + <doc fileid="xserver-1.6-upgrade">
332 <memberof>desktop_install</memberof>
333 <memberof>upgrade</memberof>
334 </doc>
335 @@ -1043,9 +1039,6 @@
336 <doc fileid="conky">
337 <memberof>desktop_config</memberof>
338 </doc>
339 - <doc fileid="ldapdns">
340 - <memberof>sysadmin_specific</memberof>
341 - </doc>
342 <doc fileid="man-guide">
343 <memberof>sysadmin_general</memberof>
344 </doc>
345
346
347
348 1.6 xml/htdocs/doc/zh_cn/openrc-migration.xml
349
350 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/openrc-migration.xml?rev=1.6&view=markup
351 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/openrc-migration.xml?rev=1.6&content-type=text/plain
352 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/openrc-migration.xml?r1=1.5&r2=1.6
353
354 Index: openrc-migration.xml
355 ===================================================================
356 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/openrc-migration.xml,v
357 retrieving revision 1.5
358 retrieving revision 1.6
359 diff -u -r1.5 -r1.6
360 --- openrc-migration.xml 11 Jul 2009 11:48:42 -0000 1.5
361 +++ openrc-migration.xml 1 Jan 2010 19:38:24 -0000 1.6
362 @@ -1,7 +1,7 @@
363 <?xml version='1.0' encoding='UTF-8'?>
364 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
365 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/openrc-migration.xml,v 1.5 2009/07/11 11:48:42 r0bertz Exp $ -->
366 -<!-- English CVS version: 1.15 -->
367 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/openrc-migration.xml,v 1.6 2010/01/01 19:38:24 r0bertz Exp $ -->
368 +<!-- English CVS version: 1.17 -->
369
370 <guide link="/doc/zh_cn/openrc-migration.xml" lang="zh_cn">
371 <title>基础布局Baselayout和OpenRC迁移指南</title>
372 @@ -30,8 +30,8 @@
373 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
374 <license/>
375
376 -<version>1.9</version>
377 -<date>2009-07-11</date>
378 +<version>1.11</version>
379 +<date>2010-01-02</date>
380
381 <chapter>
382 <title>背景知识</title>
383 @@ -200,8 +200,8 @@
384 下命令把启动脚本增加到<c>boot</c> runlevel中。
385 </p>
386
387 -<pre caption="把raid和lvm加入boot运行级别">
388 -# <i>rc-update add raid boot</i>
389 +<pre caption="把mdraid和lvm加入boot运行级别">
390 +# <i>rc-update add mdraid boot</i>
391 # <i>rc-update add lvm boot</i>
392 </pre>
393
394 @@ -249,7 +249,7 @@
395 </p>
396
397 <p>
398 -还有,<path>/etc/conf.d/net</path>里的配置不再使用bash风格的数组。请查看<path>/usr/share/doc/openrc/net.example</path>以获取配置指令。这个转化应该很简单,以一个静态IP的配置为例:
399 +还有,<path>/etc/conf.d/net</path>里的配置不再使用bash风格的数组。请查看<path>/usr/share/doc/openrc-&lt;version&gt;/net.example</path>以获取配置指令。这个转化应该很简单,以一个静态IP的配置为例:
400 </p>
401
402 <pre caption="旧的/etc/conf.d/net风格">
403 @@ -269,7 +269,7 @@
404 <body>
405
406 <p>
407 -设置时钟的文件不再叫<path>/etc/conf.d/clock</path>了,而是由系统原生的时钟调整工具的名字命名。这就是说Linux下这个文件叫<path>/etc/conf.d/hwclock</path>,而在FreeBSD中叫<path>/etc/conf.d/adjkerntz</path>。<path>/etc/init.d</path>里的启动脚本的名字也相应的改变了,所以请确保她已经在适当的运行级别里了。
408 +设置时钟的文件不再叫<path>/etc/conf.d/clock</path>了,而是由系统原生的时钟调整工具的名字命名。这就是说Linux下这个文件叫<path>/etc/conf.d/hwclock</path>,而在FreeBSD中叫<path>/etc/conf.d/adjkerntz</path>。如果一个系统没有一个可用的实时时种(RTC)芯片,那么它应该用<path>/etc/init.d/swclock</path>,这个脚本将会根据系统关机时创建的一个文件的修改时间(mtime)来设置系统时间。<path>/etc/init.d</path>里的启动脚本的名字也相应的改变了,所以请确保适用于你的系统的脚本已经在适当的运行级别里了。
409 </p>
410
411 <p>