LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 865|回复: 11

安装 Xorg后,配置出错

[复制链接]
发表于 2010-9-22 23:16:24 | 显示全部楼层 |阅读模式
安装 xorg-server 后,运行 env-update 和 source /etc/profile 后。
运行 Xorg -configure 提示出错,查看 /var/log/Xorg.0.log 日志文
件最后发现提示下列错误。

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-gentoo-r6 x86_64
Current Operating System: Linux tux 2.6.34-gentoo-r6 #1 SMP Wed Sep 22 18:28:12 Local time zone must be set--see zic  x86_64
Kernel command line: root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
Build Date: 22 September 2010  07:48:17PM

Current version of pixman: 0.18.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Sep 22 19:57:06 2010
(EE) Unable to locate/open config file: "/root/xorg.conf.new"
(II) Loader magic: 0x7bb5c0
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 6.0
        X.Org XInput driver : 7.0
        X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI:*(0:1:5:0) 1002:4752:1462:0240 rev 39, Mem @ 0xfd000000/16777216, 0xfc102000/4096, I/O @ 0x00002000/256, BIOS @ 0x????????/131072
(==) Using default built-in configuration (30 lines)
(==) --- Start of built-in configuration ---
        Section "Device"
                Identifier      "Builtin Default ati Device 0"
                Driver  "ati"
        EndSection
        Section "Screen"
                Identifier      "Builtin Default ati Screen 0"
                Device  "Builtin Default ati Device 0"
        EndSection
        Section "Device"
                Identifier      "Builtin Default vesa Device 0"
                Driver  "vesa"
        EndSection
        Section "Screen"
                Identifier      "Builtin Default vesa Screen 0"
                Device  "Builtin Default vesa Device 0"
        EndSection
        Section "Device"
                Identifier      "Builtin Default fbdev Device 0"
                Driver  "fbdev"
        EndSection
        Section "Screen"
                Identifier      "Builtin Default fbdev Screen 0"
                Device  "Builtin Default fbdev Device 0"
        EndSection
        Section "ServerLayout"
                Identifier      "Builtin Default Layout"
                Screen  "Builtin Default ati Screen 0"
                Screen  "Builtin Default vesa Screen 0"
                Screen  "Builtin Default fbdev Screen 0"
        EndSection
(==) --- End of built-in configuration ---
(==) ServerLayout "Builtin Default Layout"
(**) |-->Screen "Builtin Default ati Screen 0" (0)
(**) |   |-->Monitor "<default monitor>"
(**) |   |-->Device "Builtin Default ati Device 0"
(==) No monitor specified for screen "Builtin Default ati Screen 0".
        Using a default monitor configuration.
(**) |-->Screen "Builtin Default vesa Screen 0" (1)
(**) |   |-->Monitor "<default monitor>"
(**) |   |-->Device "Builtin Default vesa Device 0"
(==) No monitor specified for screen "Builtin Default vesa Screen 0".
        Using a default monitor configuration.
(**) |-->Screen "Builtin Default fbdev Screen 0" (2)
(**) |   |-->Monitor "<default monitor>"
(**) |   |-->Device "Builtin Default fbdev Device 0"
(==) No monitor specified for screen "Builtin Default fbdev Screen 0".
        Using a default monitor configuration.
(==) Not automatically adding devices
(==) Not automatically enabling devices
(WW) The directory "/usr/share/fonts/misc/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/100dpi/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/75dpi/" does not exist.
        Entry deleted from font path.
(==) FontPath set to:

(==) ModulePath set to "/usr/lib64/xorg/modules"
(==) |-->Input Device "<default pointer>"
(==) |-->Input Device "<default keyboard>"
(==) The core pointer device wasn't specified explicitly in the layout.
        Using the default mouse configuration.
(==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) LoadModule: "extmod"
(II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "ati"
(II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
(II) Module ati: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 6.13.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "mach64"
(WW) Warning, couldn't open module mach64
(II) UnloadModule: "mach64"
(EE) Failed to load module "mach64" (module does not exist, 0)
(II) LoadModule: "vesa"
(WW) Warning, couldn't open module vesa
(II) UnloadModule: "vesa"
(EE) Failed to load module "vesa" (module does not exist, 0)
(II) LoadModule: "fbdev"
(WW) Warning, couldn't open module fbdev
(II) UnloadModule: "fbdev"
(EE) Failed to load module "fbdev" (module does not exist, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/lib64/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.5.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 7.0
(II) LoadModule: "kbd"
(II) Loading /usr/lib64/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.4.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 7.0
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information


/etc/make.conf 配置如下
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon"

鼠标和键盘都是USB的

内核配置方式使用 genkernel

lspci 获取的硬件列表

00:06.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8111 PCI (rev 07)
00:07.0 ISA bridge: Advanced Micro Devices [AMD] AMD-8111 LPC (rev 05)
00:07.1 IDE interface: Advanced Micro Devices [AMD] AMD-8111 IDE (rev 03)
00:07.2 SMBus: Advanced Micro Devices [AMD] AMD-8111 SMBus 2.0 (rev 02)
00:07.3 Bridge: Advanced Micro Devices [AMD] AMD-8111 ACPI (rev 05)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8131 PCI-X Bridge (rev 12)
00:0a.1 PIC: Advanced Micro Devices [AMD] AMD-8131 PCI-X IOAPIC (rev 01)
00:0b.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8131 PCI-X Bridge (rev 12)
00:0b.1 PIC: Advanced Micro Devices [AMD] AMD-8131 PCI-X IOAPIC (rev 01)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
00:19.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:19.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:19.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:19.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 USB Controller: Advanced Micro Devices [AMD] AMD-8111 USB (rev 0b)
01:00.1 USB Controller: Advanced Micro Devices [AMD] AMD-8111 USB (rev 0b)
01:05.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
02:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 03)
02:01.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 03)
02:02.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 07)

请各位前辈指教。先谢谢了!
发表于 2010-9-22 23:44:02 | 显示全部楼层
试试不用xorg.conf文件呢,我的系统就没有使用它,使用的话反而启动不了桌面
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-9-23 16:13:28 | 显示全部楼层
Post by hongri2010;2113191
试试不用xorg.conf文件呢,我的系统就没有使用它,使用的话反而启动不了桌面


to hongri2010: 能具体一些吗?如果不用xorg.conf,要如何设置呢?谢谢!
回复 支持 反对

使用道具 举报

发表于 2010-9-24 17:28:43 | 显示全部楼层
如果你用的是开源驱动,则可以不用xorg.conf。闭源驱动还是需要的。
从错误提示来看,好像是显卡驱动还没有装好吧?
装好驱动后,还应该eselect opengl set 一下吧?
回复 支持 反对

使用道具 举报

发表于 2010-9-24 18:10:04 | 显示全部楼层
不知道你使用的是不是笔记本,我使用的是笔记本:
首先在/etc/make.conf文件里添加
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="intel" (我的是intel集成显卡)

然后在USE标记里再添加:
USE=“hal nptl xorg -debug -dmx -kdrive -minimal -ipv6 -sdl -tslib"
emerge -av xorg-server安装好xorg-server后,执行
env-update
source /etc/profile
/etc/init.d/hald start
rc-update add hald default
再执行startx,如果出现了黑白屏,并且可以输入的话,就没有问题了,下一步就可以安装桌面了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-9-24 21:37:48 | 显示全部楼层
Post by hongri2010;2113341
不知道你使用的是不是笔记本,我使用的是笔记本:
首先在/etc/make.conf文件里添加
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="intel" (我的是intel集成显卡)

然后在USE标记里再添加:
USE=“hal nptl xorg -debug -dmx -kdrive -minimal -ipv6 -sdl -tslib"
emerge -av xorg-server安装好xorg-server后,执行
env-update
source /etc/profile
/etc/init.d/hald start
rc-update add hald default
再执行startx,如果出现了黑白屏,并且可以输入的话,就没有问题了,下一步就可以安装桌面了


to hongri2010: 非常感谢您的细致解答。我用的机器是正式服务器,AMD 252 CPU,是比较老的K8结构,集成了ATI显卡(也是比较老的),VIDEO_CARDS="radeon"、USE="X gtk gnome -alsa" 配置方式。您安装的是什么桌面?为什么没有 “X gtk gnome”这些配置?
回复 支持 反对

使用道具 举报

发表于 2010-9-24 22:14:36 | 显示全部楼层
我使用的是xfce4桌面,没有安装gnome,所以没有添加gnome这些标志
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-9-24 22:19:36 | 显示全部楼层
Post by kwindva;2113339
如果你用的是开源驱动,则可以不用xorg.conf。闭源驱动还是需要的。
从错误提示来看,好像是显卡驱动还没有装好吧?
装好驱动后,还应该eselect opengl set 一下吧?


to kwindva:感谢您的指点,开源和闭源的驱动一起配置没问题吗?(我是新手)
回复 支持 反对

使用道具 举报

发表于 2010-9-25 00:43:02 | 显示全部楼层
输入设备用xf86-input-evdev提供的驱动:
INPUT_DEVICES="evdev"
不使用xorg.conf的前提是有udev或hal服务:
USE="hal" emerge -vNUD world
rc-update add hal default
/etc/init.d/hal start
rm /etc/X11/xorg.conf
然后启动X
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-9-25 16:57:24 | 显示全部楼层
Post by jsun;2113371
输入设备用xf86-input-evdev提供的驱动:
INPUT_DEVICES="evdev"
不使用xorg.conf的前提是有udev或hal服务:
USE="hal" emerge -vNUD world
rc-update add hal default
/etc/init.d/hal start
rm /etc/X11/xorg.conf
然后启动X


to jsun: 非常感谢您的指教。上次gentoo linux无法安装,也是您的指教,才能完成安装,再次感谢!想弱弱的问您个问题,如果是ATI集成显卡,VIDEO_CARDS="radeon"配置方式有问题吗?是否还需要闭源的“fglrx”驱动?
您的解答中为什么有一条“emerge -vNUD world”命令,有它的前后还要其它命令吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表