查看: 10757|回复: 12
收起左侧

[系统] centos 6.4 一直不能使用NVIDIA 显卡

[复制链接]
cenyebin
发表于 2013-10-3 22:52:51 | 显示全部楼层 |阅读模式
本帖最后由 cenyebin 于 2013-10-3 22:55 编辑

这个问题已经折腾了好久了,还是没有得到解决,安装NVIDIA过程没有提示什么错误,但是安装完以后,重新启动系统,
就仅仅黑屏,左上角一个光标,下面几个错误的提示。还有就是那个nouveau 一直放不入blacklist。

提示的错误在下,谢谢了,帮帮忙。
1 使用startx 提示的错误:

  2416.473]
X.Org X Server 1.13.0
Release Date: 2012-09-05
[  2416.475] X Protocol Version 11, Revision 0
[  2416.475] Build Operating System: c6b7 2.6.32-220.el6.x86_64
[  2416.476] Current Operating System: Linux www.centos.cenyebin 2.6.32-358.el6.i686 #1 SMP Thu Feb 21 21:50:49 UTC 2013 i686
[  2416.476] Kernel command line: ro root=UUID=185465e2-15a3-414e-9fc7-55cc72d781fd rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
[  2416.479] Build Date: 22 February 2013  11:26:16AM
[  2416.480] Build ID: xorg-x11-server 1.13.0-11.el6.centos
[  2416.480] Current version of pixman: 0.26.2
[  2416.482]         Before reporting problems, check http://wiki.centos.org/Documentation
        to make sure that you have the latest version.
[  2416.482] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2416.486] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct  4 06:04:37 2013
[  2416.486] (==) Using config file: "/etc/X11/xorg.conf"
[  2416.486] (==) ServerLayout "Layout0"
[  2416.487] (**) |-->Screen "Screen0" (0)
[  2416.487] (**) |   |-->Monitor "Monitor0"
[  2416.487] (**) |   |-->Device "Device0"
[  2416.487] (**) |-->Input Device "Keyboard0"
[  2416.487] (**) |-->Input Device "Mouse0"
[  2416.487] (==) Automatically adding devices
[  2416.487] (==) Automatically enabling devices
[  2416.487] (==) Not automatically adding GPU devices
[  2416.487] (**) FontPath set to:
        /usr/share/fonts/default/Type1,
        catalogue:/etc/X11/fontpath.d,
        built-ins
[  2416.487] (==) ModulePath set to "/usr/lib/xorg/modules"
[  2416.487] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  2416.487] (WW) Disabling Keyboard0
[  2416.487] (WW) Disabling Mouse0
[  2416.487] (II) Loader magic: 0x826d020
[  2416.487] (II) Module ABI versions:
[  2416.487]         X.Org ANSI C Emulation: 0.4
[  2416.487]         X.Org Video Driver: 13.1
[  2416.487]         X.Org XInput driver : 18.0
[  2416.487]         X.Org Server Extension : 7.0
[  2416.487] (--) PCI:*(0:0:2:0) 8086:0166:17aa:3901 rev 9, Mem @ 0xdb000000/4194304, 0xc0000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[  2416.487] (--) PCI: (0:1:0:0) 10de:1058:17aa:3901 rev 161, Mem @ 0xda000000/16777216, 0xd0000000/134217728, 0xd8000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/65536
[  2416.488] Initializing built-in extension Generic Event Extension
[  2416.489] Initializing built-in extension SHAPE
[  2416.490] Initializing built-in extension MIT-SHM
[  2416.491] Initializing built-in extension XInputExtension
[  2416.491] Initializing built-in extension XTEST
[  2416.492] Initializing built-in extension BIG-REQUESTS
[  2416.493] Initializing built-in extension SYNC
[  2416.494] Initializing built-in extension XKEYBOARD
[  2416.495] Initializing built-in extension XC-MISC
[  2416.495] Initializing built-in extension XINERAMA
[  2416.496] Initializing built-in extension XFIXES
[  2416.497] Initializing built-in extension RENDER
[  2416.497] Initializing built-in extension RANDR
[  2416.498] Initializing built-in extension COMPOSITE
[  2416.499] Initializing built-in extension DAMAGE
[  2416.499] Initializing built-in extension MIT-SCREEN-SAVER
[  2416.500] Initializing built-in extension DOUBLE-BUFFER
[  2416.501] Initializing built-in extension RECORD
[  2416.501] Initializing built-in extension DPMS
[  2416.502] Initializing built-in extension X-Resource
[  2416.503] Initializing built-in extension XVideo
[  2416.503] Initializing built-in extension XVideo-MotionCompensation
[  2416.504] Initializing built-in extension SELinux
[  2416.504] Initializing built-in extension XFree86-VidModeExtension
[  2416.505] Initializing built-in extension XFree86-DGA
[  2416.506] Initializing built-in extension XFree86-DRI
[  2416.506] Initializing built-in extension DRI2
[  2416.506] (II) LoadModule: "glx"
[  2416.507] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  2416.521] (II) Module glx: vendor="NVIDIA Corporation"
[  2416.521]         compiled for 4.0.2, module version = 1.0.0
[  2416.521]         Module class: X.Org Server Extension
[  2416.521] (II) NVIDIA GLX Module  319.17  Thu Apr 25 21:05:05 PDT 2013
[  2416.521] Loading extension GLX
[  2416.521] (II) LoadModule: "nvidia"
[  2416.521] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  2416.522] (II) Module nvidia: vendor="NVIDIA Corporation"
[  2416.522]         compiled for 4.0.2, module version = 1.0.0
[  2416.522]         Module class: X.Org Video Driver
[  2416.522] (II) NVIDIA dlloader X Driver  319.17  Thu Apr 25 20:43:54 PDT 2013
[  2416.522] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  2416.522] (--) using VT number 7

[  2416.524] (EE) No devices detected.
[  2416.524]
Fatal server error:
[  2416.524] no screens found
[  2416.524] (EE)

Please consult the CentOS support
         at http://wiki.centos.org/Documentation
for help.
[  2416.525] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2416.525] (EE)

2.使用 lspci 看驱动与模块:
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1058 (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 3901
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at da000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=128M]
        Memory at d8000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 3000 [size=128]
        Expansion ROM at <ignored> [disabled]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nouveau, nvidiafb

3 xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 319.17  (buildmeister@swio-display-x86-rhel47-10)  Thu Apr 25 21:56:05 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
恋爱的夏娜
头像被屏蔽
发表于 2013-10-3 23:40:58 | 显示全部楼层
woodelf
发表于 2013-10-3 23:45:44 | 显示全部楼层
nvidia-xconfig配置出来的xorg.conf会有问题,不要用它来配置。老老实实用X -configure来配置。
另外,不知道你说的无法把nouveau加入blacklist是什么意思。
满楼听疯语
发表于 2013-10-4 00:21:55 | 显示全部楼层
关于显卡问题,你就不应该折腾centos,centos是服务器linux版本,所以关于这方面显有人折腾,另一方面centos使用的技术较老,所以还是建议你使用redhat的亲儿子fedora
cenyebin
 楼主| 发表于 2013-10-4 10:00:06 | 显示全部楼层
woodelf 发表于 2013-10-3 23:45
nvidia-xconfig配置出来的xorg.conf会有问题,不要用它来配置。老老实实用X -configure来配置。
另外,不知 ...

使用了X -configure 提示这样的错误 Number of created screens does not match number of detected devices.
woodelf
发表于 2013-10-4 10:55:26 | 显示全部楼层
cenyebin 发表于 2013-10-4 10:00
使用了X -configure 提示这样的错误 Number of created screens does not match number of detected devi ...

双显卡还是多显示器?前者的话先不要安装独立显卡驱动,后者的话先拔掉其他显示器。
如果都不是,可能xorg创建的配置文件里面包含了vesa驱动,需要修改一下,最好能把你生成的xorg.conf.new贴一下,我告诉你怎么改。
cenyebin
 楼主| 发表于 2013-10-4 11:23:27 | 显示全部楼层
本帖最后由 cenyebin 于 2013-10-4 11:26 编辑
woodelf 发表于 2013-10-4 10:55
双显卡还是多显示器?前者的话先不要安装独立显卡驱动,后者的话先拔掉其他显示器。
如果都不是,可能xo ...


笔记本电脑,联想G480 两个显卡,一个是集成,一个是独立
以下内容分三个小段,请您耐心的看,谢谢

集成的显卡如下:
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 3901
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at db000000 (64-bit, non-prefetchable) [size=4M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 4000
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915

独立的NVIDIA显卡如下:
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1058 (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 3901
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at da000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=128M]
        Memory at d8000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 3000 [size=128]
        Expansion ROM at <ignored> [disabled]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nouveau, nvidiafb

X server 配置文件:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 319.17  (buildmeister@swio-display-x86-rhel47-10)  Thu Apr 25 21:56:05 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

woodelf
发表于 2013-10-4 12:01:00 | 显示全部楼层
问题很明确了,对于Intel+nvidia的双显卡笔记本,先卸载你的nvidia闭源驱动,仅使用xf86-video-intel这个集显驱动(通常已集成)来生成xorg.conf。配置文件应该类似如下,或者照抄应该也可:
  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection

  7. Section "Files"
  8.         ModulePath   "/usr/lib64/xorg/modules"
  9.         FontPath     "/usr/share/fonts/misc/"
  10.         FontPath     "/usr/share/fonts/TTF/"
  11.         FontPath     "/usr/share/fonts/OTF/"
  12.         FontPath     "/usr/share/fonts/Type1/"
  13.         FontPath     "/usr/share/fonts/100dpi/"
  14.         FontPath     "/usr/share/fonts/75dpi/"
  15. EndSection

  16. Section "Module"
  17.         Load  "glx"
  18. EndSection

  19. Section "InputDevice"
  20.         Identifier  "Keyboard0"
  21.         Driver      "kbd"
  22. EndSection

  23. Section "InputDevice"
  24.         Identifier  "Mouse0"
  25.         Driver      "mouse"
  26.         Option            "Protocol" "auto"
  27.         Option            "Device" "/dev/input/mice"
  28.         Option            "ZAxisMapping" "4 5 6 7"
  29. EndSection

  30. Section "Monitor"
  31.         Identifier   "Monitor0"
  32.         VendorName   "Monitor Vendor"
  33.         ModelName    "Monitor Model"
  34. EndSection

  35. Section "Device"
  36.         ### Available Driver options are:-
  37.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  38.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
  39.         ### <percent>: "<f>%"
  40.         ### [arg]: arg optional
  41.         #Option     "NoAccel"                    # [<bool>]
  42.         #Option     "AccelMethod"                # <str>
  43.         #Option     "Backlight"                  # <str>
  44.         #Option     "DRI"                        # <str>
  45.         #Option     "ColorKey"                   # <i>
  46.         #Option     "VideoKey"                   # <i>
  47.         #Option     "Tiling"                     # [<bool>]
  48.         #Option     "LinearFramebuffer"          # [<bool>]
  49.         #Option     "SwapbuffersWait"            # [<bool>]
  50.         #Option     "TripleBuffer"               # [<bool>]
  51.         #Option     "XvPreferOverlay"            # [<bool>]
  52.         #Option     "HotPlug"                    # [<bool>]
  53.         #Option     "ReprobeOutputs"             # [<bool>]
  54.         #Option     "XvMC"                       # [<bool>]
  55.         #Option     "ZaphodHeads"                # <str>
  56.         #Option     "VirtualHeads"               # <i>
  57.         #Option     "TearFree"                   # [<bool>]
  58.         #Option     "PerCrtcPixmaps"             # [<bool>]
  59.         #Option     "FallbackDebug"              # [<bool>]
  60.         #Option     "DebugFlushBatches"          # [<bool>]
  61.         #Option     "DebugFlushCaches"           # [<bool>]
  62.         #Option     "DebugWait"                  # [<bool>]
  63.         #Option     "BufferCache"                # [<bool>]
  64.         Identifier  "Card0"
  65.         Driver      "intel"
  66.         BusID       "PCI:0:2:0"
  67. EndSection

  68. Section "Screen"
  69.         Identifier "Screen0"
  70.         Device     "Card0"
  71.         Monitor    "Monitor0"
  72.         SubSection "Display"
  73.                 Viewport   0 0
  74.                 Depth     1
  75.         EndSubSection
  76.         SubSection "Display"
  77.                 Viewport   0 0
  78.                 Depth     4
  79.         EndSubSection
  80.         SubSection "Display"
  81.                 Viewport   0 0
  82.                 Depth     8
  83.         EndSubSection
  84.         SubSection "Display"
  85.                 Viewport   0 0
  86.                 Depth     15
  87.         EndSubSection
  88.         SubSection "Display"
  89.                 Viewport   0 0
  90.                 Depth     16
  91.         EndSubSection
  92.         SubSection "Display"
  93.                 Viewport   0 0
  94.                 Depth     24
  95.         EndSubSection
  96. EndSection
复制代码
nvidia独显部分需要通过virtual和bumblbee来实现。CentOS的基础库较老,可能略麻烦。
另外,如果你确定要使用startx来启动X,需要另外配置下~/.xinitrc,指定你要启动的X会话。如果不指定,默认可能启动的是twm。
cenyebin
 楼主| 发表于 2013-10-4 12:35:05 | 显示全部楼层
本帖最后由 cenyebin 于 2013-10-4 12:37 编辑
woodelf 发表于 2013-10-4 12:01
问题很明确了,对于Intel+nvidia的双显卡笔记本,先卸载你的nvidia闭源驱动,仅使用xf86-video-intel这个集 ...


已经卸载了NVIDIA的驱动,现在已经成功的进入X界面,但是还是用集成的那个显卡吧。这个真的很那个。真的安装不上了吗?是不是应该放弃?
woodelf
发表于 2013-10-4 12:41:06 | 显示全部楼层
cenyebin 发表于 2013-10-4 12:35
已经卸载了NVIDIA的驱动,现在已经成功的进入X界面,但是还是用集成的那个显卡吧。这个真的很那个。真的 ...

Linux对双显卡普遍支持不佳,3.12内核才有希望改观。目前Intel+nvidia只能用bumblebee实现。

评分

参与人数 1经验 +5 收起 理由
woxihuan2011 + 5 感谢解答: )

查看全部评分

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

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-11-26 05:58 , Processed in 0.209926 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

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