LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zhfg

emerge xorg-server后运行x死机

[复制链接]
发表于 2010-7-29 15:05:06 | 显示全部楼层
看到这个名字我以为张老大发现什么重大bug了,仔细一看是zhfg不是zhllg,呵呵。

X的问题是一定要贴/var/log/Xorg.0.log的,虽然你这个问题不贴估计也能解决:
1、不要相信Xorg --configure生成的配置文件,那并不可靠。
2、使用xorg-1.7 配合 hal和evdev是目前最适合新手的方法,除了在/etc/make.conf里指定

VIDEO_CARDS="XXXX vesa"
INPUT_DEVICES="evdev"

之外,基本启动hald后就自动搞定了。
回复 支持 反对

使用道具 举报

发表于 2010-7-30 16:03:25 | 显示全部楼层
emerge xterm 了没?

Post by zhfg;2105249
大家好,这两天刚刚装好gentoo,我是按照手册装的。装好基本系统后第一时间安装了xorg-server 系统给我安装的版本是xorg-server1.7.6.

可是当我执行Xorg -config ~/xorg.conf.new时,系统死机了。
我只能强行关机后再开机,
查看/var/log目录下无Xorg.log.

不知道有没有人知道这种情况。
另:我不知道我还要提供一些什么信息。xorg.conf.new是我用Xorg -configure来生成的。

我的电脑是TCL k10,一台很老的笔记本,硬件配置请看我的签名。
回复 支持 反对

使用道具 举报

发表于 2010-7-30 17:54:00 | 显示全部楼层
楼主,如果希望别人能帮你解决问题,贴上下面几个文件,如果没有对应文件请做出说明

/etc/make.conf
~/.xinitrc
/etc/X11/xorg.conf
/var/log/Xorg.0.log
另外,列出 rc-status default 和 rc-status boot 的结果
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-3 18:29:47 | 显示全部楼层
谢谢楼上各位的回复,这两天没时间上网。不好意思。
我现在正在按照jsun的方法重新安装xorg-server


先贴上/etc/make.conf的内容
  1. # These settings were set by the catalyst build script that automatically
  2. # built this stage.
  3. # Please consult /usr/share/portage/config/make.conf.example for a more
  4. # detailed example.
  5. CFLAGS="-O2 -march=i686 -pipe"
  6. CXXFLAGS="-O2 -march=i686 -pipe"
  7. # WARNING: Changing your CHOST is not something that should be done lightly.
  8. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
  9. CHOST="i686-pc-linux-gnu"
  10. MAKEOPTS="-j2"
  11. ##################################
  12. # Mirrors
  13. ########################################
  14. GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo \
  15.                 ftp://mirrors.163.com/gentoo \
  16.                 http://linux.ntcu.net/ftp/dists/gentoo"
  17. SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage"
  18. #SYNC="rsync://linux.ntcu.net/gentoo-portage"
  19. #################################################
  20. ##USE
  21. ########################################################
  22. USE="alsa automount bash-completion bzip2 chm chroot cjk \
  23. colordiff command-args compress cscope curl fat ffmpeg fontconfig \
  24. glib gtkmm gzip gtk gnome jpeg2k jpgraph mp4 mplayer mplayer-bin \
  25. network ntfs openssh openssl opensslcrypt p2p \
  26. rar samba scim unzip xface -ipv6 -kde -truetype-fonts -type1-fonts \
  27. dvd emacs ssl iconv"
  28. VIDEO_CARDS="intel vesa"
  29. INPUT_DEVICE="evdev"
复制代码

再贴上emerge -pv xorg-server的内容
  1. These are the packages that would be merged, in order:
  2. Calculating dependencies... done!
  3. [ebuild  N    ] x11-libs/libxkbfile-1.0.6  USE="-debug" 0 kB
  4. [ebuild  N    ] x11-proto/xineramaproto-1.2  0 kB
  5. [ebuild  N    ] x11-libs/libpciaccess-0.11.0  USE="zlib -debug -minimal" 0 kB
  6. [ebuild  N    ] x11-proto/trapproto-3.4.3  0 kB
  7. [ebuild  N    ] x11-proto/bigreqsproto-1.1.0  0 kB
  8. [ebuild  N    ] x11-proto/xf86dgaproto-2.1  0 kB
  9. [ebuild  N    ] x11-apps/rgb-1.0.3  USE="-debug" 0 kB
  10. [ebuild  N    ] x11-apps/iceauth-1.0.3  USE="-debug" 0 kB
  11. [ebuild  N    ] x11-proto/xf86rushproto-1.1.2  0 kB
  12. [ebuild  N    ] x11-proto/recordproto-1.14  0 kB
  13. [ebuild  N    ] x11-proto/xcmiscproto-1.2.0  0 kB
  14. [ebuild  N    ] x11-apps/xinit-1.2.0-r3  USE="minimal pam -debug" 0 kB
  15. [ebuild  N    ] app-admin/eselect-xvmc-0.1  0 kB
  16. [ebuild  N    ] x11-apps/xkbcomp-1.1.1  USE="-debug" 0 kB
  17. [ebuild  N    ] x11-libs/libxkbui-1.0.2  USE="-debug" 0 kB
  18. [ebuild  N    ] x11-libs/libXvMC-1.0.5  USE="-debug" 0 kB
  19. [ebuild  N    ] x11-misc/xkeyboard-config-1.9  0 kB
  20. [ebuild  N    ] x11-base/xorg-server-1.7.6  USE="hal nptl sdl xorg -debug -dmx -
  21. ipv6 -kdrive -minimal -tslib" 0 kB
  22. [ebuild  N    ] x11-drivers/xf86-input-keyboard-1.4.0  USE="-debug" 0 kB
  23. [ebuild  N    ] x11-drivers/xf86-video-vesa-2.3.0  USE="-debug" 259 kB
  24. [ebuild  N    ] x11-drivers/xf86-video-intel-2.9.1  USE="dri -debug" 0 kB
  25. [ebuild  N    ] x11-drivers/xf86-input-mouse-1.5.0  USE="-debug" 0 kB
  26. [ebuild  N    ] x11-drivers/xf86-input-evdev-2.4.0  USE="-debug" 0 kB
  27. [ebuild  N    ] x11-base/xorg-drivers-1.7  INPUT_DEVICES="evdev keyboard mouse -
  28. acecad -aiptek -fpit -joystick -penmount -synaptics -tslib -virtualbox -vmmouse
  29. -void -wacom" VIDEO_CARDS="intel vesa -apm -ark -ast -chips -cirrus -dummy -epso
  30. n -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -mach64 -mga -neomagic (-new
  31. port) -nouveau -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -sava
  32. ge -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb
  33. ) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -via -virtualbox -vmware (
  34. -voodoo) -xgi" 0 kB
  35. Total: 24 packages (24 new), Size of downloads: 259 kB
复制代码

稍后再贴上xorg.conf.new的内容。

关于Xorg.0.log 我也很奇怪,上一次装xorg-server后运行Xorg -config ~/xorg.conf.new
/var/log/目录下根本就没有Xorg.0.log 这个文件。


等这次装完我再运行试试。

安装完成,检查/etc/X11/ 目录下没有xorg.conf文件,
没有运行Xorg -configure 命令,直接运行Xorg命令,系统没有死机,但是黑屏,/var/log/Xorg.0.log文件如下:
  1. compiled for 1.7.6, module version = 1.0.0
  2.         Module class: X.Org Server Extension
  3.         ABI class: X.Org Server Extension, version 2.0
  4. (II) Loading extension MIT-SCREEN-SAVER
  5. (II) Loading extension XFree86-VidModeExtension
  6. (II) Loading extension XFree86-DGA
  7. (II) Loading extension DPMS
  8. (II) Loading extension XVideo
  9. (II) Loading extension XVideo-MotionCompensation
  10. (II) Loading extension X-Resource
  11. (II) LoadModule: "dbe"
  12. (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
  13. (II) Module dbe: vendor="X.Org Foundation"
  14.         compiled for 1.7.6, module version = 1.0.0
  15.         Module class: X.Org Server Extension
  16.         ABI class: X.Org Server Extension, version 2.0
  17. (II) Loading extension DOUBLE-BUFFER
  18. (II) LoadModule: "glx"
  19. (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
  20. (II) Module glx: vendor="X.Org Foundation"
  21.         compiled for 1.7.6, module version = 1.0.0
  22.         ABI class: X.Org Server Extension, version 2.0
  23. (==) AIGLX enabled
  24. (II) Loading extension GLX
  25. (II) LoadModule: "record"
  26. (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
  27. (II) Module record: vendor="X.Org Foundation"
  28.         compiled for 1.7.6, module version = 1.13.0
  29.         Module class: X.Org Server Extension
  30.         ABI class: X.Org Server Extension, version 2.0
  31. (II) Loading extension RECORD
  32. (II) LoadModule: "dri"
  33. (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
  34. (II) Module dri: vendor="X.Org Foundation"
  35.         compiled for 1.7.6, module version = 1.0.0
  36.         ABI class: X.Org Server Extension, version 2.0
  37. (II) Loading extension XFree86-DRI
  38. (II) LoadModule: "dri2"
  39. (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
  40. (II) Module dri2: vendor="X.Org Foundation"
  41.         compiled for 1.7.6, module version = 1.1.0
  42.         ABI class: X.Org Server Extension, version 2.0
  43. (II) Loading extension DRI2
  44. (II) LoadModule: "intel"
  45. (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
  46. (II) Module intel: vendor="X.Org Foundation"
  47.         compiled for 1.7.6, module version = 2.9.1
  48.         Module class: X.Org Video Driver
  49.         ABI class: X.Org Video Driver, version 6.0
  50. (II) LoadModule: "vesa"
  51. (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
  52. (II) Module vesa: vendor="X.Org Foundation"
  53.         compiled for 1.7.6, module version = 2.3.0
  54.         Module class: X.Org Video Driver
  55.         ABI class: X.Org Video Driver, version 6.0
  56. (II) LoadModule: "fbdev"
  57. (WW) Warning, couldn't open module fbdev
  58. (II) UnloadModule: "fbdev"
  59. (EE) Failed to load module "fbdev" (module does not exist, 0)
  60. (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
  61.         i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
  62.         E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
  63.         965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
  64.         4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale
  65. (II) VESA: driver for VESA chipsets: vesa
  66. (II) Primary Device is: PCI 00@00:02:0
  67. (WW) Falling back to old probe method for vesa
  68. drmOpenDevice: node name is /dev/dri/card0
  69. drmOpenDevice: open result is 9, (OK)
  70. drmOpenByBusid: Searching for BusID pci:0000:00:02.0
  71. drmOpenDevice: node name is /dev/dri/card0
  72. drmOpenDevice: open result is 9, (OK)
  73. drmOpenByBusid: drmOpenMinor returns 9
  74. drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
  75. (II) intel(0): Creating default Display subsection in Screen section
  76.         "Builtin Default intel Screen 0" for depth/fbbpp 24/32
  77. (==) intel(0): Depth 24, (--) framebuffer bpp 32
  78. (==) intel(0): RGB weight 888
  79. (==) intel(0): Default visual is TrueColor
  80. (II) intel(0): Integrated Graphics Chipset: Intel(R) 852GM
  81. (--) intel(0): Chipset: "852GM/855GM"
  82. (II) intel(0): Output VGA1 has no monitor section
  83. (II) intel(0): Output LVDS1 has no monitor section
  84. (II) intel(0): Output VGA1 disconnected
  85. (II) intel(0): Output LVDS1 connected
  86. (II) intel(0): Using exact sizes for initial modes
  87. (II) intel(0): Output LVDS1 using initial mode 1024x768
  88. (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
  89. (==) intel(0): video overlay key set to 0x101fe
  90. (==) intel(0): DPI set to (96, 96)
  91. (II) Loading sub module "fb"
  92. (II) LoadModule: "fb"
  93. (II) Loading /usr/lib/xorg/modules/libfb.so
  94. (II) Module fb: vendor="X.Org Foundation"
  95.         compiled for 1.7.6, module version = 1.0.0
  96.         ABI class: X.Org ANSI C Emulation, version 0.4
  97. (II) UnloadModule: "vesa"
  98. (II) Unloading /usr/lib/xorg/modules/drivers/vesa_drv.so
  99. (==) Depth 24 pixmap format is 32 bpp
  100. (II) intel(0): [DRI2] Setup complete
  101. (**) intel(0): Kernel mode setting active, disabling FBC.
  102. (**) intel(0): Framebuffer compression disabled
  103. (**) intel(0): Tiling enabled
  104. (**) intel(0): SwapBuffers wait enabled
  105. (==) intel(0): VideoRam: 131072 KB
  106. (II) intel(0): Attempting memory allocation with tiled buffers.
  107. (II) intel(0): Tiled allocation successful.
  108. (II) UXA(0): Driver registered support for the following operations:
  109. (II)         solid
  110. (II)         copy
  111. (II)         composite (RENDER acceleration)
  112. (==) intel(0): Backing store disabled
  113. (==) intel(0): Silken mouse enabled
  114. (II) intel(0): Initializing HW Cursor
  115. (II) intel(0): No memory allocations
  116. (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
  117. (==) intel(0): DPMS enabled
  118. (==) intel(0): Intel XvMC decoder disabled
  119. (WW) intel(0): Disabling Xv because no adaptors could be initialized.
  120. (II) intel(0): direct rendering: DRI2 Enabled
  121. (--) RandR disabled
  122. (II) Initializing built-in extension Generic Event Extension
  123. (II) Initializing built-in extension SHAPE
  124. (II) Initializing built-in extension MIT-SHM
  125. (II) Initializing built-in extension XInputExtension
  126. (II) Initializing built-in extension XTEST
  127. (II) Initializing built-in extension BIG-REQUESTS
  128. (II) Initializing built-in extension SYNC
  129. (II) Initializing built-in extension XKEYBOARD
  130. (II) Initializing built-in extension XC-MISC
  131. (II) Initializing built-in extension XINERAMA
  132. (II) Initializing built-in extension XFIXES
  133. (II) Initializing built-in extension RENDER
  134. (II) Initializing built-in extension RANDR
  135. (II) Initializing built-in extension COMPOSITE
  136. (II) Initializing built-in extension DAMAGE
  137. (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
  138. (II) AIGLX: enabled GLX_SGI_make_current_read
  139. (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
  140. (II) AIGLX: Loaded and initialized /usr/lib/dri/i915_dri.so
  141. (II) GLX: Initialized DRI2 GL provider for screen 0
  142. (II) intel(0): Setting screen physical size to 270 x 203
  143. (II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
  144. (II) LoadModule: "evdev"
  145. (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  146. (II) Module evdev: vendor="X.Org Foundation"
  147.         compiled for 1.7.6, module version = 2.4.0
  148.         Module class: X.Org XInput Driver
  149.         ABI class: X.Org XInput driver, version 7.0
  150. (**) SynPS/2 Synaptics TouchPad: always reports core events
  151. (**) SynPS/2 Synaptics TouchPad: Device: "/dev/input/event6"
  152. (II) SynPS/2 Synaptics TouchPad: Found 11 mouse buttons
  153. (II) SynPS/2 Synaptics TouchPad: Found absolute axes
  154. (II) SynPS/2 Synaptics TouchPad: Found x and y absolute axes
  155. (II) SynPS/2 Synaptics TouchPad: Found absolute touchpad.
  156. (II) SynPS/2 Synaptics TouchPad: Configuring as touchpad
  157. (**) SynPS/2 Synaptics TouchPad: YAxisMapping: buttons 4 and 5
  158. (**) SynPS/2 Synaptics TouchPad: EmulateWheelButton: 4, EmulateWheelInertia: 10,
  159. EmulateWheelTimeout: 200
  160. (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TO
  161. UCHPAD)
  162. (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
  163. (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 0
  164. (II) SynPS/2 Synaptics TouchPad: initialized for absolute axes.
  165. (II) config/hal: Adding input device AT Translated Set 2 keyboard
  166. (**) AT Translated Set 2 keyboard: always reports core events
  167. (**) AT Translated Set 2 keyboard: Device: "/dev/input/event5"
  168. (II) AT Translated Set 2 keyboard: Found keys
  169. (II) AT Translated Set 2 keyboard: Configuring as keyboard
  170. (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type:
  171. KEYBOARD)
  172. (**) Option "xkb_rules" "evdev"
  173. (**) Option "xkb_model" "evdev"
  174. (**) Option "xkb_layout" "us"
  175. (II) config/hal: Adding input device Sleep Button
  176. (**) Sleep Button: always reports core events
  177. (**) Sleep Button: Device: "/dev/input/event1"
  178. (II) Sleep Button: Found keys
  179. (II) Sleep Button: Configuring as keyboard
  180. (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
  181. (**) Option "xkb_rules" "evdev"
  182. (**) Option "xkb_model" "evdev"
  183. (**) Option "xkb_layout" "us"
  184. (II) config/hal: Adding input device Power Button
  185. (**) Power Button: always reports core events
  186. (**) Power Button: Device: "/dev/input/event2"
  187. (II) Power Button: Found keys
  188. (II) Power Button: Configuring as keyboard
  189. (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
  190. (**) Option "xkb_rules" "evdev"
  191. (**) Option "xkb_model" "evdev"
  192. (**) Option "xkb_layout" "us"
  193. (II) config/hal: Adding input device Video Bus
  194. (**) Video Bus: always reports core events
  195. (**) Video Bus: Device: "/dev/input/event4"
  196. (II) Video Bus: Found keys
  197. (II) Video Bus: Configuring as keyboard
  198. (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
  199. (**) Option "xkb_rules" "evdev"
  200. (**) Option "xkb_model" "evdev"
  201. (**) Option "xkb_layout" "us"
  202. (II) config/hal: Adding input device Power Button
  203. (**) Power Button: always reports core events
  204. (**) Power Button: Device: "/dev/input/event3"
  205. (II) Power Button: Found keys
  206. (II) Power Button: Configuring as keyboard
  207. (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
  208. (**) Option "xkb_rules" "evdev"
  209. (**) Option "xkb_model" "evdev"
  210. (**) Option "xkb_layout" "us"
  211. (II) AIGLX: Suspending AIGLX clients for VT switch
  212. (II) Power Button: Close
  213. (II) UnloadModule: "evdev"
  214. (II) Video Bus: Close
  215. (II) UnloadModule: "evdev"
  216. (II) Power Button: Close
  217. (II) UnloadModule: "evdev"
  218. (II) Sleep Button: Close
  219. (II) UnloadModule: "evdev"
  220. (II) AT Translated Set 2 keyboard: Close
  221. (II) UnloadModule: "evdev"
  222. (II) SynPS/2 Synaptics TouchPad: Close
  223. (II) UnloadModule: "evdev"
复制代码

运行rc-status default 结果如下:
  1. Runlevel: default
  2. alsasound
  3.                                     [ started  ]
  4. dbus
  5.                                     [ started  ]
  6. hald
  7.                                     [ started  ]
  8. local
  9.                                     [ started  ]
  10. net.eth0
  11.                                     [ started  ]
  12. netmount
  13.                                     [ started  ]
  14. sshd
  15.                                     [ started  ]
  16. syslog-ng
  17.                                     [ started  ]
  18. udev-postmount
  19.                                     [ started  ]
复制代码


运行rc-status boot结果如下:
  1. Runlevel: boot
  2. bootmisc
  3.                                     [ started  ]
  4. checkfs
  5.                                     [ started  ]
  6. checkroot
  7.                                     [ started  ]
  8. clock
  9.                                     [ started  ]
  10. consolefont
  11.                                     [ started  ]
  12. hostname
  13.                                     [ started  ]
  14. keymaps
  15.                                     [ started  ]
  16. localmount
  17.                                     [ started  ]
  18. modules
  19.                                     [ started  ]
  20. net.lo
  21.                                     [ started  ]
  22. rmnologin
  23.                                     [ started  ]
  24. urandom
  25.                                     [ started  ]
复制代码

另外:今天我下载了一个ArchLinux LiveCD 也不能启动到X环境,这个LiveCD中的Xorg-server用的是1.8
现在我只能在frambuffer with KMS折腾了。
回复 支持 反对

使用道具 举报

发表于 2010-8-6 16:06:33 | 显示全部楼层
装完X-Server不要start,直接安装gnome-light。以前我也停在那个地方,后来干脆不管那个问题,装上GUI后就没这个问题了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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