LinuxSir.cn,穿越时空的Linuxsir!

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

(已解决)升级系统后无法启动X

[复制链接]
发表于 2009-3-11 10:41:49 | 显示全部楼层 |阅读模式
出现这个问题应该是在一次emerge -avuDN world之后的,在网上搜了两天还找不到解决方法,只能请教大家了:

xorg.0.log
  1. X.Org X Server 1.5.3
  2. Release Date: 5 November 2008
  3. X Protocol Version 11, Revision 0
  4. Build Operating System: Linux 2.6.28-gentoo-r3 i686
  5. Current Operating System: Linux MyGentoo 2.6.28-gentoo-r3 #1 SMP Wed Mar 11 00:12:46 CST 2009 i686
  6. Build Date: 10 March 2009  04:19:44PM

  7.     Before reporting problems, check http://wiki.x.org
  8.     to make sure that you have the latest version.
  9. Markers: (--) probed, (**) from config file, (==) default setting,
  10.     (++) from command line, (!!) notice, (II) informational,
  11.     (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  12. (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 11 09:28:55 2009
  13. (==) Using config file: "/etc/X11/xorg.conf"
  14. (==) ServerLayout "Default Layout"
  15. (**) |-->Screen "Screen0" (0)
  16. (**) |   |-->Monitor "Monitor0"
  17. (**) |   |-->Device "Videocard0"
  18. (**) |-->Input Device "Mouse0"
  19. (**) |-->Input Device "Touchpad"
  20. (**) |-->Input Device "Keyboard0"
  21. (**) Option "BlankTime" "5"
  22. (**) Option "StandbyTime" "10"
  23. (**) Option "SuspendTime" "20"
  24. (**) Option "OffTime" "30"
  25. (==) Not automatically adding devices
  26. (==) Not automatically enabling devices
  27. (==) FontPath set to:
  28.     /usr/share/fonts/misc/,
  29.     /usr/share/fonts/TTF/,
  30.     /usr/share/fonts/OTF,
  31.     /usr/share/fonts/Type1/,
  32.     /usr/share/fonts/100dpi/,
  33.     /usr/share/fonts/75dpi/,
  34.     built-ins
  35. (==) ModulePath set to "/usr/lib/xorg/modules"
  36. (**) Extension "Composite" is enabled
  37. (**) Extension "RANDR" is enabled
  38. (II) Open ACPI successful (/var/run/acpid.socket)
  39. (II) Loader magic: 0xb60
  40. (II) Module ABI versions:
  41.     X.Org ANSI C Emulation: 0.4
  42.     X.Org Video Driver: 4.1
  43.     X.Org XInput driver : 2.1
  44.     X.Org Server Extension : 1.1
  45. (II) Loader running on linux
  46. (--) using VT number 7

  47. (II) System resource ranges:
  48. (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
  49. (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
  50. (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
  51. (II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
  52. (II) "record" will be loaded. This was enabled by default and also specified in the config file.
  53. (II) "dri" will be loaded by default.
  54. (II) LoadModule: "dbe"

  55. (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
  56. (II) Module dbe: vendor="X.Org Foundation"
  57.     compiled for 1.5.3, module version = 1.0.0
  58.     Module class: X.Org Server Extension
  59.     ABI class: X.Org Server Extension, version 1.1
  60. (II) Loading extension DOUBLE-BUFFER
  61. (II) LoadModule: "extmod"

  62. (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
  63. (II) Module extmod: vendor="X.Org Foundation"
  64.     compiled for 1.5.3, module version = 1.0.0
  65.     Module class: X.Org Server Extension
  66.     ABI class: X.Org Server Extension, version 1.1
  67. (II) Loading extension SHAPE
  68. (II) Loading extension MIT-SUNDRY-NONSTANDARD
  69. (II) Loading extension BIG-REQUESTS
  70. (II) Loading extension SYNC
  71. (II) Loading extension MIT-SCREEN-SAVER
  72. (II) Loading extension XC-MISC
  73. (II) Loading extension XFree86-VidModeExtension
  74. (II) Loading extension XFree86-Misc
  75. (II) Loading extension XFree86-DGA
  76. (II) Loading extension DPMS
  77. (II) Loading extension TOG-CUP
  78. (II) Loading extension Extended-Visual-Information
  79. (II) Loading extension XVideo
  80. (II) Loading extension XVideo-MotionCompensation
  81. (II) Loading extension X-Resource
  82. (II) LoadModule: "fbdevhw"

  83. (II) Loading /usr/lib/xorg/modules/linux//libfbdevhw.so
  84. (II) Module fbdevhw: vendor="X.Org Foundation"
  85.     compiled for 1.5.3, module version = 0.0.2
  86.     ABI class: X.Org Video Driver, version 4.1
  87. (II) LoadModule: "glx"

  88. (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
  89. (II) Module glx: vendor="NVIDIA Corporation"
  90.     compiled for 4.0.2, module version = 1.0.0
  91.     Module class: X.Org Server Extension
  92. (II) NVIDIA GLX Module  180.37  Thu Mar  5 18:43:15 PST 2009
  93. (II) Loading extension GLX
  94. (II) LoadModule: "record"

  95. (II) Loading /usr/lib/xorg/modules/extensions//librecord.so
  96. (II) Module record: vendor="X.Org Foundation"
  97.     compiled for 1.5.3, module version = 1.13.0
  98.     Module class: X.Org Server Extension
  99.     ABI class: X.Org Server Extension, version 1.1
  100. (II) Loading extension RECORD
  101. (II) LoadModule: "freetype"

  102. (WW) Warning, couldn't open module freetype
  103. (II) UnloadModule: "freetype"
  104. (EE) Failed to load module "freetype" (module does not exist, 0)
  105. (II) LoadModule: "synaptics"

  106. (II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
  107. (II) Module synaptics: vendor="X.Org Foundation"
  108.     compiled for 1.5.3, module version = 1.0.0
  109.     Module class: X.Org XInput Driver
  110.     ABI class: X.Org XInput driver, version 2.1
  111. (II) LoadModule: "dri"

  112. (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
  113. (II) Module dri: vendor="X.Org Foundation"
  114.     compiled for 1.5.3, module version = 1.0.0
  115.     ABI class: X.Org Server Extension, version 1.1
  116. (II) Loading extension XFree86-DRI
  117. (II) LoadModule: "nvidia"

  118. (II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
  119. (II) Module nvidia: vendor="NVIDIA Corporation"
  120.     compiled for 4.0.2, module version = 1.0.0
  121.     Module class: X.Org Video Driver
  122. (II) LoadModule: "mouse"

  123. (II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
  124. (II) Module mouse: vendor="X.Org Foundation"
  125.     compiled for 1.5.3, module version = 1.4.0
  126.     Module class: X.Org XInput Driver
  127.     ABI class: X.Org XInput driver, version 2.1
  128. (II) LoadModule: "synaptics"

  129. (II) Reloading /usr/lib/xorg/modules/input//synaptics_drv.so
  130. (II) LoadModule: "kbd"

  131. (II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
  132. (II) Module kbd: vendor="X.Org Foundation"
  133.     compiled for 1.5.3, module version = 1.3.2
  134.     Module class: X.Org XInput Driver
  135.     ABI class: X.Org XInput driver, version 2.1
  136. (II) NVIDIA dlloader X Driver  180.37  Thu Mar  5 18:18:44 PST 2009
  137. (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
  138. (II) Primary Device is: ISA
  139. (EE) No devices detected.

  140. Fatal server error:
  141. no screens found
复制代码



显卡明明是PCIE接口的呀,怎么会是ISA了呢?

lspci
  1. 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
  2. 00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03)
  3. 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 04)
  4. 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 04)
  5. 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 04)
  6. 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 04)
  7. 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 04)
  8. 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 04)
  9. 00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 04)
  10. 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 04)
  11. 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 04)
  12. 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 04)
  13. 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 04)
  14. 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 04)
  15. 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f4)
  16. 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 04)
  17. 00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 04)
  18. 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 04)
  19. 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M G (rev a1)
  20. 04:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
  21. 06:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02)
复制代码
发表于 2009-3-11 10:56:48 | 显示全部楼层
备份你的xorg.conf,然后用nvidia-xconfig重新生成一个
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-11 15:55:18 | 显示全部楼层
试过,问题依旧!
回复 支持 反对

使用道具 举报

发表于 2009-3-12 00:36:08 | 显示全部楼层
因为udev没有启动,导致/sys是空的。
具体可以这么解决:
  1. cd /etc/runlevels/sysinit
  2. ln -s /etc/init.d/udev
复制代码
这样你下次重启的时候就会启动udev,/sys挂载后,X就可以找到你的显卡了。
重启前手动启动udev就可以先解决当前的问题:
  1. /etc/init.d/udev start
复制代码
接下来启动X即可。
回复 支持 反对

使用道具 举报

发表于 2009-3-12 00:46:06 | 显示全部楼层
rc-update add udev sysinit  

不用做链接
回复 支持 反对

使用道具 举报

发表于 2009-3-12 08:35:32 | 显示全部楼层
Post by asmart;1959660
rc-update add udev sysinit  

不用做链接


真是抛砖引玉
回复 支持 反对

使用道具 举报

发表于 2009-3-12 12:13:12 | 显示全部楼层
...
(EE) Failed to load module "freetype" (module does not exist, 0)
...

EE --> ERROR
  1. cat /etc/X11/xorg.conf | grep freetype
复制代码

comment it!
  1. sed -i -e 's/\s\{1,\}Load\s{1,\}"freetype"/#    Load "freetype"/' /etc/X11/xorg.conf
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-3-12 12:39:26 | 显示全部楼层
freetype影响不大啊  ,我的一直都是(EE) Failed to load module "freetype" (module does not exist, 0) ,但是X可以正常进入 , 后来我嫌这个烦  就注释掉了.
回复 支持 反对

使用道具 举报

发表于 2009-3-12 12:50:12 | 显示全部楼层
我在bugs.gentoo.org上file了一个bug:
http://bugs.gentoo.org/show_bug.cgi?id=261934
回复 支持 反对

使用道具 举报

发表于 2009-3-12 12:50:51 | 显示全部楼层
  1. (EE) No devices detected.
复制代码

都没仔细看帖吧。。这个才是原因吧

没找到显卡。没遇到过这种问题

是不是显卡驱动的问题?
回复 支持 反对

使用道具 举报

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

本版积分规则

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