LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决,谢谢大家]N卡 X无法启动 “no screens found” D620 DELL。请大家帮忙

[复制链接]
发表于 2011-5-28 17:09:03 | 显示全部楼层 |阅读模式
以前装gentoo的时候完全可以,很久之前,这次装发现X不能启动,找不到设备,大家帮忙看看是什么原因 谢谢大家:)
我安装的是官方驱动,kernel是2.6.39
  1. localhost ~ # lspci | grep -i nvidia
  2. 01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
  3. localhost ~ #
复制代码
  1. [i] x11-drivers/nvidia-drivers
  2.      Available versions:  96.43.19!s 173.14.28!s (~)173.14.30!s (~)256.53!s 260.19.36!s (~)260.19.44!s (~)270.41.03!s (~)270.41.06!s (~)270.41.19!s {acpi custom-cflags gtk kernel_linux multilib}
  3.      Installed versions:  270.41.19!s(00:44:24 05/29/11)(gtk kernel_linux -acpi -custom-cflags -multilib)
  4.      Homepage:            http://www.nvidia.com/
  5.      Description:         NVIDIA X11 driver and GLX libraries
复制代码

X启动时的信息如下:

  1. [   274.666] (II) Loading extension RECORD
  2. [   274.666] (II) LoadModule: "nvidia"
  3. [   274.666] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
  4. [   274.667] (II) Module nvidia: vendor="NVIDIA Corporation"
  5. [   274.667]    compiled for 4.0.2, module version = 1.0.0
  6. [   274.667]    Module class: X.Org Video Driver
  7. [   274.667] (II) NVIDIA dlloader X Driver  270.41.19  Mon May 16 23:33:05 PDT 2011
  8. [   274.667] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
  9. [   274.667] (--) using VT number 7

  10. [   274.676] (EE) No devices detected.
  11. [   274.676]
  12. Fatal server error:
  13. [   274.676] no screens found
  14. [   274.676]
  15. Please consult the The X.Org Foundation support
复制代码

  1. localhost ~ # cat /var/log/Xorg.0.log
  2. [   492.137]
  3. This is a pre-release version of the X server from The X.Org Foundation.
  4. It is not supported in any way.
  5. Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
  6. Select the "xorg" product for bugs you find in this release.
  7. Before reporting bugs in pre-release versions please check the
  8. latest version in the X.Org Foundation git repository.
  9. See http://wiki.x.org/wiki/GitPage for git access instructions.
  10. [   492.137]
  11. X.Org X Server 1.10.1.902 (1.10.2 RC 2)
  12. Release Date: 2011-05-20
  13. [   492.137] X Protocol Version 11, Revision 0
  14. [   492.137] Build Operating System: Linux 2.6.39-gentoo i686 Gentoo
  15. [   492.137] Current Operating System: Linux localhost 2.6.39-gentoo #2 SMP Sat May 28 23:18:57 CST 2011 i686
  16. [   492.137] Kernel command line: root=/dev/sda9
  17. [   492.137] Build Date: 29 May 2011  12:40:09AM
  18. [   492.137]  
  19. [   492.137] Current version of pixman: 0.22.0
  20. [   492.137]    Before reporting problems, check http://wiki.x.org
  21.         to make sure that you have the latest version.
  22. [   492.137] Markers: (--) probed, (**) from config file, (==) default setting,
  23.         (++) from command line, (!!) notice, (II) informational,
  24.         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  25. [   492.138] (==) Log file: "/var/log/Xorg.0.log", Time: Sun May 29 00:54:31 2011
  26. [   492.138] (==) Using config file: "/etc/X11/xorg.conf"
  27. [   492.138] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
  28. [   492.138] (==) ServerLayout "Layout0"
  29. [   492.138] (**) |-->Screen "Screen0" (0)
  30. [   492.138] (**) |   |-->Monitor "Monitor0"
  31. [   492.138] (**) |   |-->Device "Device0"
  32. [   492.138] (**) |-->Input Device "Keyboard0"
  33. [   492.138] (**) |-->Input Device "Mouse0"
  34. [   492.138] (==) Automatically adding devices
  35. [   492.138] (==) Automatically enabling devices
  36. [   492.138] (WW) The directory "/usr/share/fonts/misc/" does not exist.
  37. [   492.138]    Entry deleted from font path.
  38. [   492.138] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
  39. [   492.138]    Entry deleted from font path.
  40. [   492.138] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
  41. [   492.138]    Entry deleted from font path.
  42. [   492.138] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
  43. [   492.138]    Entry deleted from font path.
  44. [   492.138] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
  45. [   492.138]    Entry deleted from font path.
  46. [   492.138] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
  47. [   492.138]    Entry deleted from font path.
  48. [   492.138] (==) FontPath set to:

  49. [   492.138] (==) ModulePath set to "/usr/lib/xorg/modules"
  50. [   492.138] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
  51. [   492.138] (WW) Disabling Keyboard0
  52. [   492.138] (WW) Disabling Mouse0
  53. [   492.138] (II) Loader magic: 0x81f7d00
  54. [   492.138] (II) Module ABI versions:
  55. [   492.138]    X.Org ANSI C Emulation: 0.4
  56. [   492.139]    X.Org Video Driver: 10.0
  57. [   492.139]    X.Org XInput driver : 12.2
  58. [   492.139]    X.Org Server Extension : 5.0
  59. [   492.139] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
  60. [   492.139] (WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.
  61. [   492.139] (WW) "dri2" will not be loaded unless you've specified it to be loaded elsewhere.
  62. [   492.139] (II) "extmod" will be loaded by default.
  63. [   492.139] (II) "dbe" will be loaded by default.
  64. [   492.139] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
  65. [   492.139] (II) "record" will be loaded by default.
  66. [   492.139] (II) "dri" will be loaded even though the default is to disable it.
  67. [   492.139] (II) "dri2" will be loaded even though the default is to disable it.
  68. [   492.139] (II) LoadModule: "glx"
  69. [   492.139] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
  70. [   492.168] (II) Module glx: vendor="NVIDIA Corporation"
  71. [   492.168]    compiled for 4.0.2, module version = 1.0.0
  72. [   492.168]    Module class: X.Org Server Extension
  73. [   492.168] (II) NVIDIA GLX Module  270.41.19  Mon May 16 23:49:08 PDT 2011
  74. [   492.168] (II) Loading extension GLX
  75. [   492.168] (II) LoadModule: "extmod"
  76. [   492.168] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
  77. [   492.168] (II) Module extmod: vendor="X.Org Foundation"
  78. [   492.168]    compiled for 1.10.1.902, module version = 1.0.0
  79. [   492.168]    Module class: X.Org Server Extension
  80. [   492.168]    ABI class: X.Org Server Extension, version 5.0
  81. [   492.168] (II) Loading extension MIT-SCREEN-SAVER
  82. [   492.168] (II) Loading extension XFree86-VidModeExtension
  83. [   492.168] (II) Loading extension XFree86-DGA
  84. [   492.168] (II) Loading extension DPMS
  85. [   492.168] (II) Loading extension XVideo
  86. [   492.168] (II) Loading extension XVideo-MotionCompensation
  87. [   492.168] (II) Loading extension X-Resource
  88. [   492.168] (II) LoadModule: "dbe"
  89. [   492.169] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
  90. [   492.169] (II) Module dbe: vendor="X.Org Foundation"
  91. [   492.169]    compiled for 1.10.1.902, module version = 1.0.0
  92. [   492.169]    Module class: X.Org Server Extension
  93. [   492.169]    ABI class: X.Org Server Extension, version 5.0
  94. [   492.169] (II) Loading extension DOUBLE-BUFFER
  95. [   492.169] (II) LoadModule: "record"
  96. [   492.169] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
  97. [   492.169] (II) Module record: vendor="X.Org Foundation"
  98. [   492.169]    compiled for 1.10.1.902, module version = 1.13.0
  99. [   492.169]    Module class: X.Org Server Extension
  100. [   492.169]    ABI class: X.Org Server Extension, version 5.0
  101. [   492.169] (II) Loading extension RECORD
  102. [   492.169] (II) LoadModule: "nvidia"
  103. [   492.169] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
  104. [   492.170] (II) Module nvidia: vendor="NVIDIA Corporation"
  105. [   492.170]    compiled for 4.0.2, module version = 1.0.0
  106. [   492.170]    Module class: X.Org Video Driver
  107. [   492.170] (II) NVIDIA dlloader X Driver  270.41.19  Mon May 16 23:33:05 PDT 2011
  108. [   492.170] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
  109. [   492.170] (--) using VT number 7

  110. [   492.179] (EE) No devices detected.
  111. [   492.179]
  112. Fatal server error:
  113. [   492.179] no screens found
  114. [   492.179]
  115. Please consult the The X.Org Foundation support
  116.          at http://wiki.x.org
  117. for help.
  118. [   492.179] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
  119. [   492.179]
复制代码
  1. localhost ~ # ls /dev/n*     
  2. /dev/network_latency  /dev/network_throughput  /dev/null  /dev/nvram
复制代码


xorg.conf是通过nvidia-xconfig生成的,Module段是我手动加上的
  1. localhost ~ # cat /etc/X11/xorg.conf
  2. # nvidia-xconfig: X configuration file generated by nvidia-xconfig
  3. # nvidia-xconfig:  version 270.41.19  (buildmeister@swio-display-x86-rhel47-02.nvidia.com)  Mon May 16 23:53:00 PDT 2011


  4. Section "ServerLayout"
  5.     Identifier     "Layout0"
  6.     Screen      0  "Screen0" 0 0
  7.     InputDevice    "Keyboard0" "CoreKeyboard"
  8.     InputDevice    "Mouse0" "CorePointer"
  9. EndSection

  10. Section "Files"
  11. EndSection

  12. Section "Module"
  13.     Load           "glx"
  14.     Disable        "dri"
  15.     Disable        "dri2"
  16. EndSection

  17. Section "InputDevice"

  18.     # generated from data in "/etc/conf.d/gpm"
  19.     Identifier     "Mouse0"
  20.     Driver         "mouse"
  21.     Option         "Protocol"
  22.     Option         "Device" "/dev/input/mice"
  23.     Option         "Emulate3Buttons" "no"
  24.     Option         "ZAxisMapping" "4 5"
  25. EndSection

  26. Section "InputDevice"

  27.     # generated from default
  28.     Identifier     "Keyboard0"
  29.     Driver         "kbd"
  30. EndSection

  31. Section "Monitor"
  32.     Identifier     "Monitor0"
  33.     VendorName     "Unknown"
  34.     ModelName      "Unknown"
  35.     HorizSync       28.0 - 33.0
  36.     VertRefresh     43.0 - 72.0
  37.     Option         "DPMS"
  38. EndSection

  39. Section "Device"
  40.     Identifier     "Device0"
  41.     Driver         "nvidia"
  42.     VendorName     "NVIDIA Corporation"
  43. EndSection

  44. Section "Screen"
  45.     Identifier     "Screen0"
  46.     Device         "Device0"
  47.     Monitor        "Monitor0"
  48.     DefaultDepth    24
  49.     SubSection     "Display"
  50.         Depth       24
  51.     EndSubSection
  52. EndSection
复制代码

以下是我的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=native -pipe"
  6. CXXFLAGS="${CFLAGS}"
  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. FEATURES="parallel-fetch ccache"
  11. CCACHE_DIR="/var/ccache"
  12. CCACHE_SIZE="10G"

  13. LINGUAS="zh_CN zh"

  14. MAKEOPTS="-j5"
  15. ACCEPT_KEYWORDS="~x86"

  16. USE="nptl nptlonly -ipv6 -qt -kde -doc nls cjk X gtk gnome jpeg mp3 png -cups opengl cairo udev dbus"

  17. VIDEO_CARDS="nvidia"
  18. INPUT_DEVICES="synaptics evdev"
  19. ALSA_CARDS="hda-intel"

  20. GENTOO_MIRRORS="ftp://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ ftp://mirrors.stuhome.net/gentoo/ rsync://mirrors.stuhome.net/gentoo/ http://mirrors.stuhome.net/gentoo/ rsync://mirrors.xmu.edu.cn/gentoo/ http://mirrors.xmu.edu.cn/gentoo ftp://mirrors.xmu.edu.cn/gentoo"
复制代码
  1. localhost ~ # emerge --info
  2. Portage 2.1.9.50 (default/linux/x86/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo i686)
  3. =================================================================
  4. System uname: Linux-2.6.39-gentoo-i686-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.0.2
  5. Timestamp of tree: Sat, 28 May 2011 07:30:01 +0000
  6. ccache version 3.1.4 [enabled]
  7. app-shells/bash:          4.1_p9
  8. dev-lang/python:          2.7.1-r1, 3.1.3-r1
  9. dev-util/ccache:          3.1.4
  10. sys-apps/baselayout:      2.0.2
  11. sys-apps/openrc:          0.8.2-r1
  12. sys-apps/sandbox:         2.4
  13. sys-devel/autoconf:       2.65-r1
  14. sys-devel/automake:       1.11.1
  15. sys-devel/binutils:       2.20.1-r1
  16. sys-devel/gcc:            4.4.5
  17. sys-devel/gcc-config:     1.4.1-r1
  18. sys-devel/libtool:        2.2.10
  19. sys-devel/make:           3.81-r2
  20. sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
  21. sys-libs/glibc:           2.12.2
  22. ACCEPT_KEYWORDS="x86 ~x86"
  23. ACCEPT_LICENSE="* -@EULA"
  24. CBUILD="i686-pc-linux-gnu"
  25. CFLAGS="-O2 -march=native -pipe"
  26. CHOST="i686-pc-linux-gnu"
  27. CONFIG_PROTECT="/etc"
  28. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
  29. CXXFLAGS="-O2 -march=native -pipe"
  30. DISTDIR="/usr/portage/distfiles"
  31. FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
  32. FFLAGS=""
  33. GENTOO_MIRRORS="ftp://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ ftp://mirrors.stuhome.net/gentoo/ rsync://mirrors.stuhome.net/gentoo/ http://mirrors.stuhome.net/gentoo/ rsync://mirrors.xmu.edu.cn/gentoo/ http://mirrors.xmu.edu.cn/gentoo ftp://mirrors.xmu.edu.cn/gentoo"
  34. LDFLAGS="-Wl,-O1 -Wl,--as-needed"
  35. LINGUAS="zh_CN zh"
  36. MAKEOPTS="-j5"
  37. PKGDIR="/usr/portage/packages"
  38. PORTAGE_CONFIGROOT="/"
  39. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  40. PORTAGE_TMPDIR="/var/tmp"
  41. PORTDIR="/usr/portage"
  42. PORTDIR_OVERLAY=""
  43. SYNC="rsync://rsync.gentoo.org/gentoo-portage"
  44. USE="X acl berkdb bzip2 cairo cjk cli cracklib crypt cxx dbus dri fortran gdbm gnome gpm gtk iconv jpeg modules mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python readline session ssl sysfs tcpd udev unicode x86 xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
  45. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码
 楼主| 发表于 2011-5-28 17:18:20 | 显示全部楼层
  1. localhost init.d # dmesg | grep -i nvidia
  2. [  112.421061] nvidia: module license 'NVIDIA' taints kernel.
  3. [  113.707778] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
  4. [  113.707788] nvidia 0000:01:00.0: setting latency timer to 64
  5. [  113.708335] NVRM: loading NVIDIA UNIX x86 Kernel Module  270.41.19  Mon May 16 23:31:36 PDT 2011
  6. localhost init.d #
复制代码

  1. localhost init.d # lsmod
  2. Module                  Size  Used by
  3. nvidia               9590852  0
  4. localhost init.d #
复制代码
回复 支持 反对

使用道具 举报

发表于 2011-5-28 17:19:43 | 显示全部楼层
eselect opengl list ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-5-28 17:20:50 | 显示全部楼层
Post by zhangmms;2140936
eselect opengl list ?

  1. localhost ~ # eselect opengl list
  2. Available OpenGL implementations:
  3.   [1]   nvidia *
  4.   [2]   xorg-x11
  5. localhost ~ #
复制代码
回复 支持 反对

使用道具 举报

发表于 2011-5-28 17:32:17 | 显示全部楼层
先把bios中显卡设成discrete试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-5-28 17:35:08 | 显示全部楼层
Post by zhangmms;2140940
先把bios中显卡设成discrete试试。


我的本本 只有一个独立的显卡,以前也没有改动过BIOS。我改改试试,谢谢啦
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-5-28 17:43:12 | 显示全部楼层
我的BIOS里面没有显卡设置相关的东西,,,,应该不是这个原因>..<
回复 支持 反对

使用道具 举报

发表于 2011-5-28 17:53:40 | 显示全部楼层
emerge --deep --newuse --update --ask --verbose world 再搞一次?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-5-28 17:55:26 | 显示全部楼层
其实我已经装过一次了 =,,=
回复 支持 反对

使用道具 举报

发表于 2011-5-28 18:00:22 | 显示全部楼层
我以前也遇到过,忘记怎么解决了,可能不是一个原因。
回复 支持 反对

使用道具 举报

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

本版积分规则

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