1 |
r0bertz 09/05/01 19:31:51 |
2 |
|
3 |
Modified: gentoo-amd64-faq.xml metadoc.xml |
4 |
Added: xorg-server-1.5-upgrade-guide.xml |
5 |
Log: |
6 |
[zh_cn] added xorg-server-1.5-upgrade-guide, updated gentoo-amd64-faq, thanks to Ye Baotai (Tell) |
7 |
|
8 |
Revision Changes Path |
9 |
1.6 xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml?rev=1.6&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml?rev=1.6&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml?r1=1.5&r2=1.6 |
14 |
|
15 |
Index: gentoo-amd64-faq.xml |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml,v |
18 |
retrieving revision 1.5 |
19 |
retrieving revision 1.6 |
20 |
diff -u -r1.5 -r1.6 |
21 |
--- gentoo-amd64-faq.xml 19 Apr 2009 17:57:30 -0000 1.5 |
22 |
+++ gentoo-amd64-faq.xml 1 May 2009 19:31:51 -0000 1.6 |
23 |
@@ -1,8 +1,8 @@ |
24 |
<?xml version="1.0" encoding="utf-8"?> |
25 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
26 |
|
27 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml,v 1.5 2009/04/19 17:57:30 r0bertz Exp $ --> |
28 |
-<!-- English CVS version: 1.32 --> |
29 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/gentoo-amd64-faq.xml,v 1.6 2009/05/01 19:31:51 r0bertz Exp $ --> |
30 |
+<!-- English CVS version: 1.33 --> |
31 |
|
32 |
<guide link="/doc/zh_cn/gentoo-amd64-faq.xml" lang="zh_cn"> |
33 |
<title>Gentoo Linux/AMD64常见问题</title> |
34 |
@@ -34,8 +34,8 @@ |
35 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
36 |
<license/> |
37 |
|
38 |
-<version>1.23</version> |
39 |
-<date>2009-04-14</date> |
40 |
+<version>1.24</version> |
41 |
+<date>2009-04-24</date> |
42 |
|
43 |
<faqindex> |
44 |
<title>问题</title> |
45 |
@@ -215,7 +215,7 @@ |
46 |
<body> |
47 |
|
48 |
<p> |
49 |
-当然可以。只要<c>emerge netscape-flash</c>。Adobe已经从10.0.22.87版本开始提供一个64位的Flash插件。 |
50 |
+当然可以。只要<c>emerge adobe-flash</c>。Adobe已经从10.0.22.87版本开始提供一个64位的Flash插件。如果不需要32位的插件,则执行<c>echo "www-plugins/adobe-flash -32bit" >> /etc/portage/package.use</c>。这样将只安装64位的flash插件。 |
51 |
</p> |
52 |
|
53 |
</body> |
54 |
|
55 |
|
56 |
|
57 |
1.52 xml/htdocs/doc/zh_cn/metadoc.xml |
58 |
|
59 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml?rev=1.52&view=markup |
60 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml?rev=1.52&content-type=text/plain |
61 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml?r1=1.51&r2=1.52 |
62 |
|
63 |
Index: metadoc.xml |
64 |
=================================================================== |
65 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml,v |
66 |
retrieving revision 1.51 |
67 |
retrieving revision 1.52 |
68 |
diff -u -r1.51 -r1.52 |
69 |
--- metadoc.xml 15 Apr 2009 08:31:07 -0000 1.51 |
70 |
+++ metadoc.xml 1 May 2009 19:31:51 -0000 1.52 |
71 |
@@ -1,6 +1,6 @@ |
72 |
<?xml version="1.0" encoding="UTF-8"?> |
73 |
<!DOCTYPE metadoc SYSTEM "/dtd/metadoc.dtd"> |
74 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml,v 1.51 2009/04/15 08:31:07 r0bertz Exp $ --> |
75 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/metadoc.xml,v 1.52 2009/05/01 19:31:51 r0bertz Exp $ --> |
76 |
<!-- English CVS version: 1.218 --> |
77 |
<metadoc lang="zh_cn" parent="/doc/en/metadoc.xml"> |
78 |
<version>1.140</version> |
79 |
@@ -306,7 +306,7 @@ |
80 |
<file id="kernel-upgrade">/doc/en/kernel-upgrade.xml</file> |
81 |
<file id="modular-x-howto">/proj/en/desktop/x/x11/modular-x-howto.xml</file> |
82 |
<file id="porting-modular-x">/proj/zh_cn/desktop/x/x11/porting-modular-x-howto.xml</file> |
83 |
- <file id="xserver-1.5-upgrade">/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml</file> |
84 |
+ <file id="xserver-1.5-upgrade">/proj/zh_cn/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml</file> |
85 |
<file id="new-dev-training">/proj/en/devrel/new-dev-training.xml</file> |
86 |
<file id="devrel-policy">/proj/en/devrel/policy.xml</file> |
87 |
<file id="translators-howto">/proj/en/gdp/doc/translators-howto.xml</file> |
88 |
|
89 |
|
90 |
|
91 |
1.1 xml/htdocs/doc/zh_cn/xorg-server-1.5-upgrade-guide.xml |
92 |
|
93 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/xorg-server-1.5-upgrade-guide.xml?rev=1.1&view=markup |
94 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/xorg-server-1.5-upgrade-guide.xml?rev=1.1&content-type=text/plain |
95 |
|
96 |
Index: xorg-server-1.5-upgrade-guide.xml |
97 |
=================================================================== |
98 |
<?xml version="1.0" encoding="UTF-8"?> |
99 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/xorg-server-1.5-upgrade-guide.xml,v 1.1 2009/05/01 19:31:51 r0bertz Exp $ --> |
100 |
<!-- English CVS version: 1.4 --> |
101 |
|
102 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
103 |
|
104 |
<guide link="/proj/zh_cn/desktop/x/x11/upgrading-to-xorg-1.5.xml" lang="zh_cn"> |
105 |
<title>Xorg 1.5升级向导</title> |
106 |
|
107 |
<author title="作者"> |
108 |
<mail link="remi"/> |
109 |
</author> |
110 |
<author title="译者"> |
111 |
<mail link="tysnoo@×××××.com">叶宝泰</mail> |
112 |
</author> |
113 |
|
114 |
<abstract> |
115 |
这篇向导教你如何将X.org升级到1.5版本·· |
116 |
</abstract> |
117 |
|
118 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
119 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
120 |
<license/> |
121 |
|
122 |
<version>1</version> |
123 |
<date>2009-03-30</date> |
124 |
|
125 |
<chapter> |
126 |
<title>Ebuild变更</title> |
127 |
<section> |
128 |
<body> |
129 |
|
130 |
<ul> |
131 |
<li> |
132 |
<c>x11-misc/xkbdata</c>现在已经完全过时了。如果你未使用它的替代品(<c>x11-misc/xkeyboard-config</c>),Portage可能会在进行更新之前叫你删掉它。 |
133 |
</li> |
134 |
<li> |
135 |
X现在不再强行对<c>media-libs/mesa</c>隐式地构建两次。mesa现在使用软件加速(swrast)和你通过<c>VIDEO_CARDS</c>变量选择的任意一种硬件驱动程序来构建。 |
136 |
</li> |
137 |
<li> |
138 |
由于上述变更,<c>dri</c> USE标记被放弃了。除非设置了<c>USE=minimal</c>,否则Xorg现在总会支持OpenGL。 |
139 |
</li> |
140 |
<li> |
141 |
XPrint在Xorg 1.6以及更新版本中已经被移除了,不过我们已决定也将它从1.5版本放弃。XPrint的支持已经从所有X库中移除了。 |
142 |
</li> |
143 |
<li> |
144 |
Xorg现在支持HAL来自动热插拔输入设备,参阅下面的章节以作适当的配置。 |
145 |
</li> |
146 |
<li> |
147 |
“synaptics”驱动程序现在由<c>x11-drivers/xf86-input-synaptics</c>提供。 |
148 |
</li> |
149 |
</ul> |
150 |
|
151 |
</body> |
152 |
</section> |
153 |
</chapter> |
154 |
|
155 |
<chapter> |
156 |
<title>配置输入</title> |
157 |
<section> |
158 |
<title>使用HAL(使用xf86-input-evdev)</title> |
159 |
<body> |
160 |
|
161 |
<p> |
162 |
简单地说,HAL允许设置跟<path>xorg.conf</path>完全相同的特性,但拥有更多灵活性:比如你现在可以为每个键盘设定一个布局。这些全都是由<c>xf86-input-evdev</c>驱动程序提供。 |
163 |
</p> |
164 |
|
165 |
<p> |
166 |
首先,确定你已经用<c>INPUT_DEVICES="evdev"</c>构建了xorg-server并且内核中启用了evdev。 |
167 |
</p> |
168 |
<pre caption="2.6内核配置"> |
169 |
Device Drivers ---> |
170 |
|
171 |
Input device support ---> |
172 |
|
173 |
--- Input device support |
174 |
[*] Event interface |
175 |
</pre> |
176 |
|
177 |
<p> |
178 |
然后,我们就可以配置HAL使它正确地报告键盘布局。HAL通过装载于<path>/usr/share/hal</path>中的设备规则运作。 |
179 |
</p> |
180 |
|
181 |
<impo> |
182 |
<e>不要</e>编辑这里面的东西,它们会在下次HAL更新的时候被覆写。你可以换成将自己的规则加入<path>/etc/hal/fdi/policy</path>。 |
183 |
</impo> |
184 |
|
185 |
<p> |
186 |
FDI配置文件的示例在<path>/usr/share/doc/hal-*/*.fdi*</path>。挑选一个最适合你当前配置的文件,复制到<path>/etc/hal/fdi/policy</path>。 |
187 |
</p> |
188 |
|
189 |
<p> |
190 |
例如,如果你只想要为一个非美式键盘布局使用一个基本配置,复制<path>/usr/share/doc/hal-*/use-estonian-layout.fdi.bz2</path>中的内容至<path>/etc/hal/fdi/policy/10-xinput-configuration.fdi</path>(使用<c>bzcat</c>)并编辑使之匹配你要用的键盘布局。 |
191 |
</p> |
192 |
|
193 |
<p> |
194 |
别忘了阅读<c>man evdev</c>了解驱动程序的性能和选项(特别是鼠标滚轮模拟、鼠标中键模拟……)。 |
195 |
</p> |
196 |
|
197 |
<note> |
198 |
当前版本的HAL(仍)不能自己分辨出FDI文件的变更。你必须重启HAL的初始化脚本来察看变更。使用<c>lshal</c>实用工具列出HAL的设备树并搜索“input”,确定一切正常。HAL规则的内容会显示在lshal的输出中。 |
199 |
</note> |
200 |
|
201 |
</body> |
202 |
</section> |
203 |
<section> |
204 |
<title>使用HAL和其他驱动程序(xf86-input-synaptics、linuxwacom,……)</title> |
205 |
<body> |
206 |
|
207 |
<p> |
208 |
默认情况下,HAL会告诉X服务器使用<c>evdev</c>驱动程序来访问所有输入设备。不过这可以根据需要改成任何输入驱动程序。 |
209 |
</p> |
210 |
|
211 |
<p> |
212 |
因此你可以将所有的输入设备配置放入HAL,即便你使用的是其他如<c>synaptics</c>或<c>linuxwacom</c>之类的驱动程序。 |
213 |
</p> |
214 |
|
215 |
<p> |
216 |
关于如何配置这些驱动程序的更多信息可以从这些地方找到: |
217 |
</p> |
218 |
|
219 |
<ul> |
220 |
<li> |
221 |
<uri>http://cgit.freedesktop.org/xorg/xserver/tree/config/x11-input.fdi</uri> |
222 |
</li> |
223 |
<li> |
224 |
<uri>http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/tree/fdi/11-x11-synaptics.fdi</uri> |
225 |
</li> |
226 |
<li> |
227 |
<uri>http://cvs.fedoraproject.org/viewvc/rpms/linuxwacom/F-10/10-linuxwacom.fdi?view=markup</uri> |
228 |
</li> |
229 |
</ul> |
230 |
|
231 |
</body> |
232 |
</section> |
233 |
<section> |
234 |
<title>不使用HAL</title> |
235 |
<body> |
236 |
|
237 |
<p> |
238 |
如果你不想使用HAL,可以通过<c>USE="-hal"</c>来构建<c>xorg-server</c>,或者在<path>xorg.conf</path>的ServerFlags项中关闭AutoAddDevices选项。 |
239 |
</p> |
240 |
|
241 |
<pre caption="关闭AutoAddDevices"> |
242 |
Option "AutoAddDevices" "false" |
243 |
</pre> |
244 |
|
245 |
<p> |
246 |
这两种方法都将允许X服务器使用传统的<c>mouse</c>和<c>kbd</c>驱动程序。 |
247 |
</p> |
248 |
|
249 |
</body> |
250 |
</section> |
251 |
</chapter> |
252 |
|
253 |
<chapter> |
254 |
<title>配置显卡</title> |
255 |
<section> |
256 |
<body> |
257 |
|
258 |
<p> |
259 |
xorg.conf中的“Device”项基本上不用修改便可以正常工作。 |
260 |
</p> |
261 |
|
262 |
<p> |
263 |
尽管如此,如果你遇到任何问题,可以尝试这几个步骤: |
264 |
</p> |
265 |
|
266 |
<ul> |
267 |
<li> |
268 |
尝试注释掉xorg.conf中“Device”、“Screen”和“Monitor”等项中的所有“Options” |
269 |
</li> |
270 |
<li> |
271 |
甚而,尝试不使用<e>任何</e><path>xorg.conf</path>(可以将它重命名为<path>xorg.conf.old</path>)运行Xorg |
272 |
</li> |
273 |
</ul> |
274 |
|
275 |
<p> |
276 |
Xorg驱动程序现在更加善于真实地检测出你的硬件类型并(除了<e>少数</e>特殊情况)应用默认的设置。 |
277 |
</p> |
278 |
|
279 |
</body> |
280 |
</section> |
281 |
</chapter> |
282 |
|
283 |
<chapter> |
284 |
<title>杂项</title> |
285 |
<section> |
286 |
<body> |
287 |
|
288 |
<p> |
289 |
在1.5.3版本中旧字体的处理方式发生了很大改变。<c>freetype</c>模块现在没有用了,因为服务器使用<c>libXfont</c>为传统应用程序载入你可能拥有的任何字体。 |
290 |
</p> |
291 |
|
292 |
<p> |
293 |
对于传统字体自身,它们现在几乎都没用了,因为我们提供一个内嵌的“fixed”字体可供所有传统应用程序和工具使用。但是要注意这种字体极其丑陋。 |
294 |
</p> |
295 |
|
296 |
<p> |
297 |
xdmx坏掉了。不要使用它,除非你知道自己在做什么。 |
298 |
</p> |
299 |
</body> |
300 |
</section> |
301 |
</chapter> |
302 |
<chapter> |
303 |
<title>疑难解答</title> |
304 |
<section> |
305 |
<body> |
306 |
<p> |
307 |
如果你在所有基于SDL的应用程序(很多游戏)中鼠标行为有不正常,则需要在<path>xorg.conf</path>中作如下设置: |
308 |
</p> |
309 |
<pre caption="关闭DGA"> |
310 |
Section "Module" |
311 |
... |
312 |
SubSection "extmod" |
313 |
Option "omit xfree86-dga" |
314 |
EndSubSection |
315 |
... |
316 |
EndSection |
317 |
</pre> |
318 |
</body> |
319 |
</section> |
320 |
</chapter> |
321 |
</guide> |