LinuxSir.cn,穿越时空的Linuxsir!

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

执行xinit出错 /var/log/Xorg.0.log /etc/X11/xorg.conf文件内容分别如下:

[复制链接]
发表于 2010-8-24 20:11:01 | 显示全部楼层 |阅读模式
==============================/var/log/Xorg.0.log内容============================================

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/cn:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.7.1
Release Date: 2009-10-23
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32.8 i686
Current Operating System: Linux cn 2.6.32.8 #1 SMP Wed Aug 18 16:15:29 CST 2010 i686
Kernel command line: root=/dev/sda2
Build Date: 23 August 2010  09:02:05PM

Current version of pixman: 0.15.20
        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: Tue Aug 24 01:08:05 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Not automatically adding devices
(==) Not automatically enabling devices
(WW) The directory "/usr/X11R7/lib/X11/fonts/misc/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/OTF" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/Type1/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/100dpi/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/75dpi/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/misc/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/OTF" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/Type1/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/100dpi/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/X11R7/lib/X11/fonts/75dpi/" does not exist.
        Entry deleted from font path.
(**) FontPath set to:
       
(**) ModulePath set to "/usr/X11R7/lib/X11/modules"
(II) Loader magic: 0x81e27e0
(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:0:15:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xf0000000/134217728, 0xe8000000/8388608, I/O @ 0x00001400/16, BIOS @ 0x????????/32768
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "glx"
(II) Loading /usr/X11R7/lib/X11/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "dbe"
(II) Loading /usr/X11R7/lib/X11/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.1, 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: "dri"
(II) Loading /usr/X11R7/lib/X11/modules/extensions/libdri.so
dlopen: libdrm.so.2: cannot open shared object file: No such file or directory
(EE) Failed to load /usr/X11R7/lib/X11/modules/extensions/libdri.so
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (loader failed, 7)
(II) LoadModule: "extmod"
(II) Loading /usr/X11R7/lib/X11/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.1, 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: "dri2"
(II) Loading /usr/X11R7/lib/X11/modules/extensions/libdri2.so
dlopen: libdrm.so.2: cannot open shared object file: No such file or directory
(EE) Failed to load /usr/X11R7/lib/X11/modules/extensions/libdri2.so
(II) UnloadModule: "dri2"
(EE) Failed to load module "dri2" (loader failed, 7)
(II) LoadModule: "vesa"
(II) Loading /usr/X11R7/lib/X11/modules//driversvesa_drv.so
dlopen: /usr/X11R7/lib/X11/modules//driversvesa_drv.so: cannot open shared object file: No such file or directory
(EE) Failed to load /usr/X11R7/lib/X11/modules//driversvesa_drv.so
(II) UnloadModule: "vesa"
(EE) Failed to load module "vesa" (loader failed, 7)
(II) LoadModule: "mouse"
(II) Loading /usr/X11R7/lib/X11/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
        compiled for 1.7.1, 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/X11R7/lib/X11/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
        compiled for 1.7.1, 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/X11/xorg.conf内容============================



Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/X11R7/lib/X11/modules"
        FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R7/lib/X11/fonts/OTF"
        FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "dri2"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"                   # [<bool>]
        #Option     "DefaultRefresh"             # [<bool>]
        #Option     "ModeSetClearScreen"         # [<bool>]
        Identifier  "Card0"
        Driver      "vesa"
        VendorName  "Unknown Vendor"
        BoardName   "Unknown Board"
        BusID       "CI:0:15:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
 楼主| 发表于 2010-8-24 20:16:24 | 显示全部楼层
log中有三个错:
(EE) Failed to load /usr/X11R7/lib/X11/modules/extensions/libdri.so
(EE) Failed to load /usr/X11R7/lib/X11/modules/extensions/libdri2.so
(EE) Failed to load /usr/X11R7/lib/X11/modules//driversvesa_drv.so

前两个错很怪,对应目录下的文件都存在
第三个错误,我有文件:/usr/X11R7/lib/X11/modules/drivers/vesa_drv.so
但不知为啥,xinit找了个错误路径
回复 支持 反对

使用道具 举报

发表于 2010-8-25 13:19:18 | 显示全部楼层
我也被xorg卡住了,一执行xorg -xonfigure 就黑屏死机,而且没有生成xorg.conf文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-25 13:45:22 | 显示全部楼层
我的问题已经解决
就是不能在~目录下执行xinit   (root用户的~目录就是/root目录)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-25 13:48:27 | 显示全部楼层
##因为自动脚本安装了所有的显卡驱动,执行下面的指令会导致黑屏,原因可能是Xorg -configure方法产生xorg.conf.new配置文件时,使尝试所有安装的显卡驱动,我的解决办法是将/usr/X11R7/lib/modules/drivers下的驱动移走只留下vesa_drv.so vesa_drv.la,这时再执行Xorg -configure就不会死机了,便在/root/下产生xorg.conf.new文件。

#Xorg -conigure
#X -retro -config ~/xorg.conf.new
#install -v -m644 ~/xorg.conf.new /etc/X11/xorg.conf

不同xorg版本路径可能不一样,可能是:
/usr/X11R7/lib/X11/modules/drivers/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-25 14:11:40 | 显示全部楼层
xinit 执行后进入图形界面并打开一个xterm,这时键盘可用,鼠标不可用,不知为啥
回复 支持 反对

使用道具 举报

发表于 2010-8-26 10:04:57 | 显示全部楼层
Post by shader;2109751
##因为自动脚本安装了所有的显卡驱动,执行下面的指令会导致黑屏,原因可能是Xorg -configure方法产生xorg.conf.new配置文件时,使尝试所有安装的显卡驱动,我的解决办法是将/usr/X11R7/lib/modules/drivers下的驱动移走只留下vesa_drv.so vesa_drv.la,这时再执行Xorg -configure就不会死机了,便在/root/下产生xorg.conf.new文件。

#Xorg -conigure
#X -retro -config ~/xorg.conf.new
#install -v -m644 ~/xorg.conf.new /etc/X11/xorg.conf

不同xorg版本路径可能不一样,可能是:
/usr/X11R7/lib/X11/modules/drivers/


:cool:谢谢,今晚回家试试
回复 支持 反对

使用道具 举报

发表于 2010-8-26 22:03:36 | 显示全部楼层
Post by shader;2109750
我的问题已经解决
就是不能在~目录下执行xinit   (root用户的~目录就是/root目录)


虽然不死机了,但是执行Xorg -configure报:
(EE) Failed to load /usr/X11R7/lib/X11/modules//driversvesa_drv.so
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-28 10:39:46 | 显示全部楼层
把xinitrc内容改成一句:
xterm

xclock
之后执行startx或xinit会看的图形化的终端或钟表
xinitrc的位置在/etc/X11/xinit/xinitrc或/root/.xinitrc
要是你两个文件都有,那就都该吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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