个人工具

“UbuntuHelp:DebuggingXAutoconfiguration”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:DebuggingXAutoconfiguration}}
 
{{Languages|UbuntuHelp:DebuggingXAutoconfiguration}}
 
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!
 
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!
 
 
=== Common Known Issues ===
 
=== Common Known Issues ===
 
 
'''"Error activating XKB configuration." after upgrade''' - After upgrading from 6.10 to 7.04, the following error message can appear on reboot or when trying to change keyboard preferences:
 
'''"Error activating XKB configuration." after upgrade''' - After upgrading from 6.10 to 7.04, the following error message can appear on reboot or when trying to change keyboard preferences:
 
Error activating XKB configuration.
 
Error activating XKB configuration.
 
It can happen under various circumstances:
 
It can happen under various circumstances:
**** a bug in libxklavier library
+
* a bug in libxklavier library
**** a bug in X server (xkbcomp, xmodmap utilities)
+
* a bug in X server (xkbcomp, xmodmap utilities)
**** X server with incompatible libxkbfile implementation
+
* X server with incompatible libxkbfile implementation
 
There are a few causes for this behavior, and several possible solutions to try:
 
There are a few causes for this behavior, and several possible solutions to try:
* Disable the following option in /etc/X11/xorg.conf:
+
# Disable the following option in /etc/X11/xorg.conf:
 
# Option "XkbVariant" "qwerty"
 
# Option "XkbVariant" "qwerty"
* Especially if you have a non-us keyboard, doublecheck the XkbLayout option.  Change the value to one that matches your language (for example, "pl" for Polish, "gb" for British, etc.)
+
# Especially if you have a non-us keyboard, doublecheck the XkbLayout option.  Change the value to one that matches your language (for example, "pl" for Polish, "gb" for British, etc.)
 
Option "XkbLayout" "ie"
 
Option "XkbLayout" "ie"
* Using gconf-editor, clear both the "layouts" and "options" parameters located at  /desktop/gnome/peripherals/keyboard/kbd.  See [http://lists.freebsd.org/pipermail/freebsd-gnome/2005-December/013059.html]
+
# Using gconf-editor, clear both the "layouts" and "options" parameters located at  /desktop/gnome/peripherals/keyboard/kbd.  See [http://lists.freebsd.org/pipermail/freebsd-gnome/2005-December/013059.html]
 
+
 
'''"Error in I830WaitLpRing(), now is...FatalError re-entered, aborting...lockup" on Intel video''' - These kinds of error messages are produced by a variety of causes.  Generally, Xorg upstream encourages upgrading to the latest -intel driver (Kylem has been providing a [http://people.ubuntu.com/~kyle/testing/crestline/ -intel 2.0.0 driver for Feisty]).  Some other ways to work around it that some users have reported success with:
 
'''"Error in I830WaitLpRing(), now is...FatalError re-entered, aborting...lockup" on Intel video''' - These kinds of error messages are produced by a variety of causes.  Generally, Xorg upstream encourages upgrading to the latest -intel driver (Kylem has been providing a [http://people.ubuntu.com/~kyle/testing/crestline/ -intel 2.0.0 driver for Feisty]).  Some other ways to work around it that some users have reported success with:
 
* Turn off DRI.  Add to the Device section of xorg.conf, Option "DRI" "false".  (Note that this will likely make X run slower).
 
* Turn off DRI.  Add to the Device section of xorg.conf, Option "DRI" "false".  (Note that this will likely make X run slower).
 
* Turn off all power management / acpi, and screensavers that use GL
 
* Turn off all power management / acpi, and screensavers that use GL
 
 
 
=== Howto Debug Display Issues ===
 
=== Howto Debug Display Issues ===
 
+
# Log out from GNOME, if you are logged in
* Log out from GNOME, if you are logged in
+
# Log in on the text console (Control-Alt-F1):  
* Log in on the text console (Control-Alt-F1):  
+
 
<pre><nowiki>
 
<pre><nowiki>
 
Ubuntu 7.04 "Feisty Fawn" computer_name tty1
 
Ubuntu 7.04 "Feisty Fawn" computer_name tty1
 
 
computer_name login: your_username
 
computer_name login: your_username
 
Password: your_password
 
Password: your_password
 
 
Linux computer_name 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
 
Linux computer_name 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
 
 
The programs included with the Ubuntu system are free software;
 
The programs included with the Ubuntu system are free software;
 
the exact distribution terms for each program are described in the
 
the exact distribution terms for each program are described in the
 
individual files in /usr/share/doc/*/copyright.
 
individual files in /usr/share/doc/*/copyright.
 
 
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
 
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
 
applicable law.
 
applicable law.
 
your_username@computer_name ~ $  
 
your_username@computer_name ~ $  
 
</nowiki></pre>
 
</nowiki></pre>
 
+
# Stop the GNOME display manager:  
* Stop the GNOME display manager:  
+
 
<pre><nowiki>
 
<pre><nowiki>
 
your_username@computer_name ~ $ sudo invoke-rc.d gdm stop
 
your_username@computer_name ~ $ sudo invoke-rc.d gdm stop
第50行: 第39行:
 
* Stopping GNOME Display Manager...                                    [ ok ]
 
* Stopping GNOME Display Manager...                                    [ ok ]
 
</nowiki></pre>
 
</nowiki></pre>
 
+
# `sudo dpkg-reconfigure xserver-xorg`
* `sudo dpkg-reconfigure xserver-xorg`
+
# Attach:
 
+
#* Output of `uname -a`
* Attach:
+
#* Output of `lspci -vvnn`
** Output of `uname -a`
+
#* Output of `sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%M\t%S\t%D\t%i\n" video`
** Output of `lspci -vvnn`
+
#* Output of `sudo xresprobe <driver>`
** Output of `sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%M\t%S\t%D\t%i\n" video`
+
#* `/var/log/Xorg.0.log`
** Output of `sudo xresprobe <driver>`
+
#* `/etc/X11/xorg.conf` and `/etc/X11/xorg.conf.*`
** `/var/log/Xorg.0.log`
+
#* 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
** `/etc/X11/xorg.conf` and `/etc/X11/xorg.conf.*`
+
# Things to try:
** 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
+
#* Move your /etc/xorg.conf file aside and try running X with no config file
 
+
#* Get your monitor's manual and look up the HorizSync and VertRefresh settings and add them to the Monitor section of xorg.conf.
* Things to try:
+
#* If you can't find them, 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.
** Move your /etc/xorg.conf file aside and try running X with no config file
+
#* Or, if HorizSync and VertRefresh lines are already there, removing them.
** Get your monitor's manual and look up the HorizSync and VertRefresh settings and add them to the Monitor section of xorg.conf.
+
#* Dropping bit depth to 16.
** If you can't find them, 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.
+
#* 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.
** Or, if HorizSync and VertRefresh lines are already there, removing them.
+
#* 'Option "NoAccel"' in the Device section, if it comes up but is rather weird.
** Dropping bit depth to 16.
+
#* Option "IgnoreEDID" or Option "NoDDC", but remember to add sync ranges.
** 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.
+
#* If the log suggests that any particular option may help (e.g. i810 suggests that Option "DisplayInfo" "FALSE" might prevent hangs), try that.
** 'Option "NoAccel"' in the Device section, if it comes up but is rather weird.
+
#* 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.
** Option "IgnoreEDID" or Option "NoDDC", but remember to add sync ranges.
+
#* Search https://bugs.freedesktop.org for any bugs reported upstream on xorg.
** If the log suggests that any particular option may help (e.g. i810 suggests that Option "DisplayInfo" "FALSE" might prevent hangs), try that.
+
#* Check out http://gitweb.freedesktop.org/ xorg/driver/xf86-video-<driver name> for any recent commits that look like they might just be useful.
** 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 https://bugs.freedesktop.org for any bugs reported upstream on xorg.
+
** Check out http://gitweb.freedesktop.org/ xorg/driver/xf86-video-<driver name> for any recent commits that look like they might just be useful.
+
 
+
 
== Also See ==
 
== Also See ==
 
* [[UbuntuHelp:X/Debugging]] - The Ubuntu X Debugger's Handbook
 
* [[UbuntuHelp:X/Debugging]] - The Ubuntu X Debugger's Handbook
 
 
----
 
----
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 16:42的版本

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!

Common Known Issues

"Error activating XKB configuration." after upgrade - After upgrading from 6.10 to 7.04, the following error message can appear on reboot or when trying to change keyboard preferences: Error activating XKB configuration. It can happen under various circumstances:

  • a bug in libxklavier library
  • a bug in X server (xkbcomp, xmodmap utilities)
  • X server with incompatible libxkbfile implementation

There are a few causes for this behavior, and several possible solutions to try:

  1. Disable the following option in /etc/X11/xorg.conf:
  2. Option "XkbVariant" "qwerty"
  3. Especially if you have a non-us keyboard, doublecheck the XkbLayout option. Change the value to one that matches your language (for example, "pl" for Polish, "gb" for British, etc.)

Option "XkbLayout" "ie"

  1. Using gconf-editor, clear both the "layouts" and "options" parameters located at /desktop/gnome/peripherals/keyboard/kbd. See [1]

"Error in I830WaitLpRing(), now is...FatalError re-entered, aborting...lockup" on Intel video - These kinds of error messages are produced by a variety of causes. Generally, Xorg upstream encourages upgrading to the latest -intel driver (Kylem has been providing a -intel 2.0.0 driver for Feisty). Some other ways to work around it that some users have reported success with:

  • Turn off DRI. Add to the Device section of xorg.conf, Option "DRI" "false". (Note that this will likely make X run slower).
  • Turn off all power management / acpi, and screensavers that use GL

Howto Debug Display Issues

  1. Log out from GNOME, if you are logged in
  2. Log in on the text console (Control-Alt-F1):
Ubuntu 7.04 "Feisty Fawn" computer_name tty1
computer_name login: your_username
Password: your_password
Linux computer_name 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 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 ~ $ 
  1. Stop the GNOME display manager:
your_username@computer_name ~ $ sudo invoke-rc.d gdm stop
Password: your_password
* Stopping GNOME Display Manager...                                     [ ok ]
  1. `sudo dpkg-reconfigure xserver-xorg`
  2. Attach:
    • Output of `uname -a`
    • Output of `lspci -vvnn`
    • Output of `sudo discover --disable=parallel,serial,usb,ide,scsi,pcmcia --format="%M\t%S\t%D\t%i\n" video`
    • Output of `sudo xresprobe <driver>`
    • `/var/log/Xorg.0.log`
    • `/etc/X11/xorg.conf` and `/etc/X11/xorg.conf.*`
    • 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
  3. Things to try:
    • Move your /etc/xorg.conf file aside and try running X with no config file
    • Get your monitor's manual and look up the HorizSync and VertRefresh settings and add them to the Monitor section of xorg.conf.
    • If you can't find them, 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 https://bugs.freedesktop.org for any bugs reported upstream on xorg.
    • Check out http://gitweb.freedesktop.org/ xorg/driver/xf86-video-<driver name> for any recent commits that look like they might just be useful.

Also See