LinuxSir.cn,穿越时空的Linuxsir!

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

archlinux中xorg启动时当机。

[复制链接]
发表于 2009-12-26 09:37:53 | 显示全部楼层 |阅读模式
只安装基本系统,安装完xorg后 ,启动xorg时当机,无任何反应,只能硬重启。

贴上配置文件和log,大家帮忙分析一下,谢谢。
(不知道为什么,从Linux复制到Windows的文本,在Windows中的肇事本里全部都挤在一起,郁闷。)
上面显示应该是鼠标的问题,我的是笔记本电脑。

-----------Xorg.0.log---------

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
X.Org X Server 1.7.3.901 (1.7.4 RC 1)
Release Date: 2009-12-11
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-ARCH i686
Current Operating System: Linux DRAW 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009 i686
Kernel command line: root=/dev/disk/by-uuid/5b754852-eae9-4adf-881e-e755fd02d7ae ro vga=773
Build Date: 12 December 2009  12:59:40PM

Current version of pixman: 0.16.4
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: Fri Dec 25 14:51:28 2009
(II) Loader magic: 0x81e4c60
(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:2:0) 8086:3582:10cf:1281 Intel Corporation 82852/855GM Integrated Graphics Device rev 2, Mem @ 0xd8000000/134217728, 0xd0000000/524288, I/O @ 0x00001800/8
(--) PCI: (0:0:2:1) 8086:3582:10cf:1281 Intel Corporation 82852/855GM Integrated Graphics Device rev 2, Mem @ 0xe0000000/134217728, 0xd0080000/524288
List of video drivers:
intel
vesa
(II) LoadModule: "intel"
(II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
(II) Module intel: vendor="X.Org Foundation"
compiled for 1.7.1, module version = 2.9.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "vesa"
(II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
(II) Module vesa: vendor="X.Org Foundation"
compiled for 1.7.0.901, module version = 2.2.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) Primary Device is: PCI 00@00:02:0
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale
(II) VESA: driver for VESA chipsets: vesa
(++) Using config file: "/root/xorg.conf.new"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Screen "Screen1" (1)
(**) |   |-->Monitor "Monitor1"
(**) |   |-->Device "Card1"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/TTF" 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/TTF" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1" does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/misc,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled
(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0

Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.
Xorg has configured a multihead system, please check your config.
Your xorg.conf file is /root/xorg.conf.new
To test the server, run 'X -config /root/xorg.conf.new'


-------------Xorg.conf----------------------

Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
Screen      1  "Screen1" RightOf "Screen0"
#InputDevice    "Mouse0" "CorePointer"
#InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/misc"
FontPath     "/usr/share/fonts/100dpi:unscaled"
FontPath     "/usr/share/fonts/75dpi:unscaled"
FontPath     "/usr/share/fonts/TTF"
FontPath     "/usr/share/fonts/Type1"
EndSection
Section "Module"
Load  "dri2"
Load  "dri"
Load  "extmod"
Load  "dbe"
Load  "glx"
EndSection
Section "ServerFlags"
Option      "AutoAddDevice" "false"
Option      "AllowEmptyInput" "false"
EndSection
Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
HorizSync 30.0 - 130.0
VertRefresh 50.0 - 100.0
EndSection
Section "Monitor"
Identifier   "Monitor1"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
HorizSync 30.0 - 130.0
VertRefresh 50.0 - 100.0
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     "NoAccel"             # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"             # [<bool>]
        #Option     "DRI"                 # [<bool>]
        #Option     "NoDDC"               # [<bool>]
        #Option     "ShowCache"           # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "ageFlip"            # [<bool>]
Identifier  "Card0"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "82852/855GM Integrated Graphics Device"
BusID       "CI:0:2:0"
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     "NoAccel"             # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"             # [<bool>]
        #Option     "DRI"                 # [<bool>]
        #Option     "NoDDC"               # [<bool>]
        #Option     "ShowCache"           # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "ageFlip"            # [<bool>]
Identifier  "Card1"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "82852/855GM Integrated Graphics Device"
BusID       "CI:0:2:1"
EndSection
Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
  Viewport   0 0
  Depth     24
  Modes "1024x768" "800x600" "640x480"
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
Section "Screen"
Identifier "Screen1"
Device     "Card1"
Monitor    "Monitor1"
DefaultDepth 24
SubSection "Display"
  Viewport   0 0
  Depth     24
  Modes "1024x768" "800x600" "640x480"
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

-------------------------------
发表于 2009-12-26 10:07:29 | 显示全部楼层
我也在装arch linux,帮你看一下~
文字挤在一起是因为linux的换行是0xa,windows和dos是0xd,0xa,用wordpad打开就不会出现这种情况了。
#InputDevice "Mouse0" "CorePointer"
#InputDevice "Keyboard0" "CoreKeyboard"
Option "AutoAddDevice" "false"
InputDevice这两行禁用了,AutoAddDevice又设置成false,x11没有为你配置输入设备。
要么启用hal,要么加上下面段落
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option          "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Section "InputDevice"
        Identifier  "InterMouse"
        Driver      "mouse"
        Option      "rotocol" "IMPS/2"
        Option      "Device" "/dev/input/mouse0"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-26 10:30:21 | 显示全部楼层
谢谢lifc兄,
我刚试了一下,还是不行。
hal,我加到了rc.conf中了。
xorg.conf我加上你刚写的那几行,还是老样子,当机~~~

不加载xorg.conf也是老样子,当机。
回复 支持 反对

使用道具 举报

发表于 2009-12-26 11:09:25 | 显示全部楼层
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
上面这两行加入Section "ServerLayout",后面几行随便找地方添加。如果成功可以脱离hal运行,只是动态插拔USB HID输入设备(键盘鼠标)不能立刻认到。对ArchLinux不熟悉,gentoo里面hal如果是新加入到USE里面需要重新编译相关包。

另外先不要配置双屏,X是如何启动的,启动后有没有启动xterm或者什么窗口管理器?加上这几行之后报告错误没有?
如果你的系统支持sshd可以登录进去看看,确实死机说明硬件(通常显卡)有冲突,没死机应该就是输入设备配置不当。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-26 11:27:24 | 显示全部楼层
xorg.conf是用X -configure自动生成的。/root/xorg.conf.new
双显示器双显卡,是这台笔记本电脑自身的,装Win的时候也是显示两个显示器,两个显卡。
直接用startx启动,不带xorg.conf,当机。
用X -config /root/xorg.conf.new,也是当机。

我刚又试了一下,Xorg.0.log是运行X -configure时生成的LOG,
编辑xorg.conf.new之后再用X -config /root/xorg.conf.new运行,也是当机,只能硬重启,连LOG都没生成。
单安装xorg.其窗口管理器都没有安装。
回复 支持 反对

使用道具 举报

发表于 2009-12-26 11:35:39 | 显示全部楼层
关注个...............
回复 支持 反对

使用道具 举报

发表于 2009-12-26 11:49:42 | 显示全部楼层
要方便的装hal和xf86-input-evdev,将hal加入daemons,删了xorg.conf
http://wiki.archlinux.org/index. ... 0.E9.9C.80xorg.conf
记得wiki和官方新闻都有的,难道装前都没看哦
另外从log看,xserver没出问题,不知道是其他的啥引起死机,找不出原因就换版本试试了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-26 11:52:49 | 显示全部楼层
huntxu的方法,试过了,
老样子,不行,当机。
回复 支持 反对

使用道具 举报

发表于 2009-12-26 11:53:11 | 显示全部楼层
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
你的xorg.conf里设成false怎么还是on?
回复 支持 反对

使用道具 举报

发表于 2009-12-26 12:10:46 | 显示全部楼层
Post by huntxu;2059435
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
你的xorg.conf里设成false怎么还是on?

Enabled by default if AutoAddDevices and AutoEnableDevices is enabled

能否想办法区分真死机(冲突)和假死机,没生成日志看起来像是真死了。显卡驱动换一下,vesa/intel分别试,不要一起加载两个。
回复 支持 反对

使用道具 举报

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

本版积分规则

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