DebuggingXAutoconfiguration

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

DebuggingXAutoconfiguration

#1

帖子 oneleaf » 2005-09-12 12:02

A great deal of effort has been made to allow automatic configuration of the X window system without asking questions of the user. However, there is an astounding variety of hardware in use around the world, and so it is impossible to test every combination of devices...at least, without your help!

Exceptional situations which are known to be handled sub-optimally by the current configuration infrastructure include:

*

Systems with multiple video cards - this will be addressed in the future
*

Systems which are attached to a KVM switch (keyboard, video and mouse) - it is impossible to properly detect the capabilities of a monitor when using some KVM switches, as they do not allow DDC probing

If you are not using one of the above configurations, and Ubuntu is unable to automatically configure X for your hardware (asking no questions), or the resulting configuration is not optimal, please follow the procedure below to collect information that will help us to configure your system more gracefully.
Procedure for Ubuntu 4.10 (Warty)

1.

Log out from GNOME, if you are logged in
2.

Log in on the text console (Control-Alt-F1):

Ubuntu 4.10 "Warty Warthog" computer_name tty1

computer_name login: your_username
Password: your_password

Linux potpal 2.6.8.1-2-386 #1 Tue Sep 14 10:30:08 BST 2004 i686 GNU/Linux

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
your_username@computer_name ~ $

3.

Stop the GNOME display manager:

your_username@computer_name ~ $ sudo invoke-rc.d gdm stop
Password: your_password
* Stopping GNOME Display Manager... [ ok ]

4.

cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.backup
5.

DEBUG_XFREE86_PACKAGE=yes XF86FORCEPROBE=yes dpkg-reconfigure xserver-xfree86
6.

Attach:
*

Output of lspci -n
*

Output of sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%S\t%D\n" video
*

Output of sudo xresprobe <driver>
*

/var/log/XFree86.0.log
*

/etc/X11/XF86Config-4 and /etc/X11/XF86Config-4.backup

Information for Ubuntu 5.04 (Hoary)

1.

Log out from GNOME, if you are logged in
2.

Log in on the text console (Control-Alt-F1):

Ubuntu 5.04 "Hoary Hedgehog" computer_name tty1

computer_name login: your_username
Password: your_password

Linux computer_name 2.6.10-4-386 #1 Wed Mar 2 06:19:32 UTC 2005 i686 GNU/Linux

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
your_username@computer_name ~ $

3.

Stop the GNOME display manager:

your_username@computer_name ~ $ sudo invoke-rc.d gdm stop
Password: your_password
* Stopping GNOME Display Manager... [ ok ]

4.

sudo dpkg-reconfigure xserver-xorg
5.

Attach:
*

Output of lspci -n
*

Output of sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%S\t%D\n" video
*

Output of sudo xresprobe <driver>
*

/var/log/Xorg.0.log
*

/etc/X11/xorg.conf and /etc/X11/XF86Config-4.backup*
*

preferably a good description of what went wrong -- server failed to start, server started with blank screen, server started with mangled screen, server started with weird colours, et al
6.

Things to try:
*

Adding HorizSync 36-x, and VertRefresh 36-60, to the Monitor section of xorg.conf, where x is defined as (horizontal res)/20; for example, for 1024x768, x = 1024/20 ~= 52 (round up), so the Monitor section would need 'HorizSync 36-52' and 'VertRefresh 36-60'. No quotes, no Option.
*

Or, if HorizSync and VertRefresh lines are already there, removing them.
*

Dropping bit depth to 16.
*

If it's a weird screen (Apple LCDs come to mind here, so do some strange laptop screens), Google for a modeline for that particular screen. If this helps, please report the specific modeline in a bug.
*

'Option "NoAccel"' in the Device section, if it comes up but is rather weird.
*

Option "IgnoreEDID" or Option "NoDDC", but remember to add sync ranges.
*

If the log suggests that any particular option may help (e.g. i810 suggests that Option "DisplayInfo" "FALSE" might prevent hangs), try that.
*

Start Xorg with a lot of verbosity: sudo Xorg :1 -ac -logverbose 999. This will give you a lot of output in the log to check out.
*

Search [WWW] https://bugs.freedesktop.org for any bugs reported upstream on xorg.
*

Check out [WWW] http://cvs.freedesktop.org/xorg/xc/prog ... er/<driver name> for any recent commits that look like they might just be useful.

https://wiki.ubuntu.com/DebuggingXAutoconfiguration
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
TubuX
帖子: 14
注册时间: 2005-04-08 15:11

DebuggingXAutoconfiguration

#2

帖子 TubuX » 2005-09-14 21:43

很多努力已经被做出,以允许X窗口系统的自动的构造而没有问用户的问题。 但是, 在全世界有震惊的使用中的硬件的种类, 没有你的帮助,因此至少测试设备的每结合是不可能的!

哪个是最佳办理附属以当今的构造基础设施包括,众所周知的特别形势:

*

有多张录像卡片的系统 - 这将来将被处理
*

附在KVM上的系统接通(键盘,录像和鼠标) - 当使用一些KVM 开关时,正确地发现一台显视器的能力是不可能的,因为他们不允许DDC检查

如果你没使用上述构造之一, 并且Ubuntu不能自动为你的硬件使X成形(没有问问题), 个导致的构造不最佳,请下列下面的程序收集将制止我们更优美地使你的系统成形的信息。
Ubuntu 4.10(疣)的程序

1.

从国际金融家那里注销,如果如果你被登录
2.

登录在正文上安慰(控制alt di ):

Ubuntu 4.10台"疣的疣猪"计算机 _ 名字tty1

计算机 _ 名字登录: 你的 _ 用户名
密码: 你的 _ 密码

Linux potpal 2.6.8.1-2-386 #1星期二9月14 10:30:08 BST 2004 i686 gnu主题/ Linux

包括Ubuntu系统的程序是免费软件;
那些精确分配术语适合每个计划被描述在方面
个人档案在/usr /分享/文件/* /版权。

Ubuntu 用绝对没有保证来,对允许通过的程度
适用的法律。
你的 _ username@computer_name ~ $

3.

停止国际金融家展示经理:

你的 _ username@computer_name ~ 美元sudo 产生rc.d的gdm 停止
密码: 你的 _ 密码
*停止国际金融家展示经理 ... [ok ]

4.

拷贝/等等/X11 / XF86Config 4 /等等/X11 / XF86Config-4.backup
5.

调试 _ XFREE86 _ XF86FORCEPROBE=yes dpkg 重新配置的包=是xserver-xfree86
6.

附上:
*

lspci-n的产量
*

sudo的产量发现伤残平行,连续的=,"百分之S \ t%D \ n"的usb,ide,scsi,pcmcia 形式= 录像
*

sudo xresprobe<司机>的产量
*

/变量/ 木材/ XFree86 .0.log
*

/等等/X11 / XF86Config 4 和/等等/X11 / XF86Config-4.backup

Ubuntu 5.04(白发苍苍)的信息

1.

从国际金融家那里注销,如果如果你被登录
2.

登录在正文上安慰(控制alt di ):

Ubuntu 5.04台"白发苍苍的刺猬"计算机 _ 名字tty1

计算机 _ 名字登录: 你的 _ 用户名
密码: 你的 _ 密码

Linux 计算机 _ 命名2.6.10-4-386 #1星期三3月2 06:19:32日UTC为2005 i686 gnu主题/ Linux

包括Ubuntu系统的程序是免费软件;
那些精确分配术语适合每个计划被描述在方面
个人档案在/usr /分享/文件/* /版权。

Ubuntu 用绝对没有保证来,对允许通过的程度
适用的法律。
你的 _ username@computer_name ~ $

3.

停止国际金融家展示经理:

你的 _ username@computer_name ~ 美元sudo 产生rc.d的gdm 停止
密码: 你的 _ 密码
*停止国际金融家展示经理 ... [ok ]

4.

sudo dpkg 重新配置xserver-xorg
5.

附上:
*

lspci-n的产量
*

sudo的产量发现伤残平行,连续的=,"百分之S \ t%D \ n"的usb,ide,scsi,pcmcia 形式= 录像
*

sudo xresprobe<司机>的产量
*

/变量/ 木材/ Xorg .0.log
*

/等等/X11 / xorg.conf 和/等等/X11 /XF86Config-4.backup *
*

尽可能所出错的好描述 -- 服务器不能启动,服务器从空白的屏幕开始,服务器从乱砍的屏幕开始,服务器从怪异的颜色,et al开始
6.

要试验的事情:
*

增加HorizSync 36 x,和36-60 VertRefresh,在显视器xorg.conf的部分,x被确定为(水平的调查)/ 20;例如,为1024x 768, x = 1024/20的= 52(聚拢),因此显视器部分将需要' HorizSync 36-52 ' 和' VertRefresh 36-60 '。 并不引用,没有选择。
*

或者,如果HorizSync和VertRefresh 线已经在那里,罢免他们。
*

把一点儿深度下降到16。
*

它是怪异的屏幕(苹果LCDs在这里被想起, 一些奇怪的便携电脑屏幕也是),那特别的屏幕的modeline的Google。 这帮助如果,请报告在一缺陷内的具体的modeline。
*

在设备部分里' 选择"NoAccel"',如果它出现但是相当怪异。
*

选择"IgnoreEDID"或者选择"NoDDC",但是记得要增加同步范围。
*

那些木材建议特别选择帮助可能的那任何(例如i810 建议"错误"的选择"DisplayInfo"防止可能悬挂), 试验那。
*

用许多罗嗦开始Xorg: sudo Xorg:1 ac logverbose 999。 这将在要检查的木材里给你许多产量。
*

搜索 [万维网 ]https: //任何缺陷的bugs.freedesktop.org在xorg上向上游报告。
*

检查 [万维网 ] http://cvs.freedesktop.org/xorg/xc/prog ... er/<driver 名字>为新近一点犯那看起来象他们可能刚刚有用。

https: //wiki.ubuntu.com/DebuggingXAutoconfiguration
Kill of the Linux!
我行我速...............
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#3

帖子 leal » 2005-09-14 22:04

这是金山快译还是哪家的杰作啊? :roll:
用心×恒 | 豆瓣 | 门户 | Blog
韦涛
帖子: 27
注册时间: 2005-06-16 5:29

#4

帖子 韦涛 » 2005-09-15 2:17

使x window系统能够自动进行配置而不再需要询问用户,这一功能现在已经卓有成效的实现了。然而现实世界中使用的硬件是千差万别的,因此测试所有的设备组合是不可能实现的。。。至少,没有你的帮助是实现不了的!

例外的状况,即目前的配置结构只能够半最佳处理的基本设备包括:(这句话没有看懂)

*使用多个显卡的系统 - 这个将会在以后进行处理

*连接到KVM(K-键盘,V-显示器,M-鼠标)开关的系统 - 当使用KVM开关时,是不可能完全地检测到监视器的容量的,因为它们不允许进行DDC尝试这样的操作。

(先翻译这么多,大家一起来阿。。)
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#5

帖子 leal » 2005-09-15 11:30

韦涛 写了:使x window系统能够自动进行配置而不再需要询问用户,这一功能现在已经卓有成效的实现了。然而现实世界中使用的硬件是千差万别的,因此测试所有的设备组合是不可能实现的。。。至少,没有你的帮助是实现不了的!
为了使X Window系统能够自动进行配置且不需询问用户,(人们)已经做了大量的工作(努力)。
例外的状况,即目前的配置结构只能够半最佳处理的基本设备包括:(这句话没有看懂)
就是绝大部分设备没有你的帮助无法进行自动配置,但是下面几种情况已经能够由目前的配置结构进行半最佳的处理
*使用多个显卡的系统 - 这个将会在以后进行处理

*连接到KVM(K-键盘,V-显示器,M-鼠标)开关的系统 - 当使用KVM开关时,是不可能完全地检测到监视器的容量的,因为它们不允许进行DDC尝试这样的操作。

(先翻译这么多,大家一起来阿。。)
* 使用多个显卡的系统 —— 不久会解决这个问题;

* 连接到KVM开关(KVM switch是一种硬件设备,它允许单个键盘、显示器和鼠标控制多台计算机
http://www.webopedia.com/TERM/K/KVM_switch.html
http://en.wikipedia.org/wiki/KVM_switch)的系统——使用KVM开关时,无法正确检测到监视器的性能,因为KVM开关不支持DDC侦测。
用心×恒 | 豆瓣 | 门户 | Blog
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#6

帖子 leal » 2005-09-15 18:06

如果你未使用上述(硬件)配置,同时Ubuntu无法为你的硬件自动(即未向你询问任何问题)配置X,或者得到的配置不是最优的,那么请按照下面的步骤收集信息,它能帮助我们更佳的配置你的系统。

Ubuntu 4.10 (Warty)上的步骤

1.

如果你已登陆到GNOME中,请注销退出

2.

登陆至文本控制台(Control-Alt-F1):

Ubuntu 4.10 "Warty Warthog" computer_name tty1

computer_name login: 你的用户名
Password: 你的密码

Linux potpal 2.6.8.1-2-386 #1 Tue Sep 14 10:30:08 BST 2004 i686 GNU/Linux

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
(版权和声明信息:
Ubuntu系统包含的所有程序都是自由软件;每个程序的确切发布条款在/usr/share/doc/*/copyright目录里各自的文件中都有描述。)

your_username@computer_name ~ $

3.

终止GNOME显示管理器:

your_username@computer_name ~ $ sudo invoke-rc.d gdm stop

Password: 你的密码
* Stopping GNOME Display Manager... [ ok ]
(*正在终止GNOME显示管理器...[完成])

4.
cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.backup

5.
DEBUG_XFREE86_PACKAGE=yes XF86FORCEPROBE=yes dpkg-reconfigure xserver-xfree86

6.
加上:

*
命令lspci -n的输出

*
命令sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%S\t%D\n" video的输出

*
命令sudo xresprobe <driver>的输出

*
/var/log/XFree86.0.log

*
/etc/X11/XF86Config-4 and /etc/X11/XF86Config-4.backup
用心×恒 | 豆瓣 | 门户 | Blog
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#7

帖子 leal » 2005-09-15 18:19

Ubuntu 5.04 (Hoary)上要搜集的信息:

1.

如果你已登陆到GNOME中,请注销退出

2.

登陆至文本控制台(Control-Alt-F1):

Ubuntu 5.04 "Hoary Hedgehog" computer_name tty1

computer_name login: 你的用户名
Password: 你的密码

Linux computer_name 2.6.10-4-386 #1 Wed Mar 2 06:19:32 UTC 2005 i686 GNU/Linux

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
(版权和声明信息:
Ubuntu系统包含的所有程序都是自由软件;每个程序的确切发布条款在/usr/share/doc/*/copyright目录里各自的文件中都有描述。)

your_username@computer_name ~ $

3.

终止GNOME显示管理器:

your_username@computer_name ~ $ sudo invoke-rc.d gdm stop

Password: 你的密码
* Stopping GNOME Display Manager... [ ok ]
(*正在终止GNOME显示管理器...[完成])

4.
sudo dpkg-reconfigure xserver-xorg

5.
加上:

*
命令lspci -n的输出

*
命令sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%S\t%D\n" video的输出

*
命令sudo xresprobe <driver>的输出

*
/var/log/Xorg.0.log

*
/etc/X11/xorg.conf and /etc/X11/XF86Config-4.backup*

*
最好再加上一份何处出错的详细说明——如服务器无法启动、服务器启动后为白屏、服务器启动后屏幕怪异,服务器启动后颜色乱套等等。

6.
你也可以自己试试下列解决方法:

*
在xorg.conf的Monitor段加上HorizSync 36-x和VertRefresh 36-60,此处x定义成(水平分辨率)/20。例如,分辨率为1024x768,则x = 1024/20 ~= 52(取整后),因此Monitor段应该加上'HorizSync 36-52'和'VertRefresh 36-60'。不需要引号,也无需Option。

*
或者,如果HorizSync和VertRefresh相关行已存在,则将其删除。

*
把位深度降至16。

*
如果屏幕怪异(Apple公司的LCD常出现这种问题,有些特殊的笔记本屏幕也是),请在Google上搜索那种特定屏幕的modeline。如果这样能解决问题,请提交一份特定modeline相关的bug报告。(??)

*
'Device段的"NoAccel" Option,if it comes up but is rather weird.(注:weird,这句真诡异)??

*
Option "IgnoreEDID"或Option "NoDDC",记得加上sync范围。

*
如果日志文件提示某些特定选项或许能帮上忙(比如,i810建议Option "DisplayInfo" "FALSE" 也许能防止挂起),那就照着提示试试看。

*
用长参数启动Xorg:sudo Xorg :1 -ac -logverbose 999,这样它能在日志中提供大量输出供你检查。

*
向上搜索[WWW] https://bugs.freedesktop.org 上提交的关于xorg的bugs。

*
检出 [WWW] http://cvs.freedesktop.org/xorg/xc/prog ... er/<driver name> ,查找最近提交的可能相关的修改,它们或许也能帮上忙。

https://wiki.ubuntu.com/DebuggingXAutoconfiguration
用心×恒 | 豆瓣 | 门户 | Blog
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#8

帖子 oneleaf » 2005-09-22 10:54

头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#9

帖子 millenniumdark » 2006-07-30 15:33

这篇文章有些过时,而且不太好整理,先放着
回复