X display not working after Nvidia install

Issues related to hardware problems
Post Reply
jim2016
Posts: 2
Joined: 2016/06/07 16:44:24

X display not working after Nvidia install

Post by jim2016 » 2016/06/07 18:07:01

I have an Acer laptop with an Nvidia GeForce GTX 960M graphics card. I just installed CentOS 7.2 on the laptop and then installed Nvidia drivers. Prior to installing the Nvidia drivers, KDE worked fine. After installing the drivers I am getting a graphical bootup screen, followed by an unresponsive text screen. It looks like the Nvidia and Intel graphics drivers are working. The key issue is that Xorg.0.log says "no devices detected" and "no screens found". I have included below:

1. lspci output
2. nvidia-smi output
3. Xorg.0.log
4. xorg.conf
5. nvidia-xorg.conf
6. blacklist-nouveau.conf.

Could you please let me know how to get the X-display working again? Thanks in advance for your help!

1. Output of lspci -v | egrep -I "VGA|3D":
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

Snippets of lspci -v command output related to graphics cards:

Code: Select all

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
	Subsystem: Acer Incorporated [ALI] Device 0926
	Flags: bus master, fast devsel, latency 0, IRQ 32
	Memory at d1000000 (64-bit, non-prefetchable) [size=4M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	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
	
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
	Subsystem: Acer Incorporated [ALI] Device 0926
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at d0000000 (32-bit, non-prefetchable) [size=16M]
	Memory at a0000000 (64-bit, prefetchable) [size=256M]
	Memory at b0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	[virtual] Expansion ROM at b2000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [250] Latency Tolerance Reporting
	Capabilities: [258] L1 PM Substates
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Capabilities: [900] #19
	Kernel driver in use: nvidia
2. output of command nvidia-smi (showing the card is accessible):

Code: Select all

Tue Jun  7 12:32:11 2016       
+------------------------------------------------------+                       
| NVIDIA-SMI 352.93     Driver Version: 352.93         |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 960M    Off  | 0000:01:00.0     Off |                  N/A |
| N/A   51C    P0    N/A /  N/A |      7MiB /  2047MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
3. /var/log/Xorg.0.log:

Code: Select all

[    29.810] 
X.Org X Server 1.17.2
Release Date: 2015-06-16
[    29.810] X Protocol Version 11, Revision 0
[    29.810] Build Operating System:  2.6.32-220.17.1.el6.x86_64 
[    29.810] Current Operating System: Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64
[    29.810] Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off
[    29.810] Build Date: 20 November 2015  02:44:25PM
[    29.810] Build ID: xorg-x11-server 1.17.2-10.el7 
[    29.810] Current version of pixman: 0.32.6
[    29.810] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    29.810] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    29.810] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun  7 11:42:52 2016
[    29.811] (==) Using config file: "/etc/X11/xorg.conf"
[    29.811] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    29.811] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    29.811] (==) ServerLayout "Default Layout"
[    29.811] (**) |-->Screen "Default Screen" (0)
[    29.811] (**) |   |-->Monitor "<default monitor>"
[    29.811] (**) |   |-->Device "Videocard0"
[    29.811] (==) No monitor specified for screen "Default Screen".
	Using a default monitor configuration.
[    29.811] (**) |-->Input Device "Keyboard0"
[    29.811] (**) |-->Input Device "Mouse0"
[    29.811] (==) Automatically adding devices
[    29.811] (==) Automatically enabling devices
[    29.811] (==) Automatically adding GPU devices
[    29.811] (==) FontPath set to:
	catalogue:/etc/X11/fontpath.d,
	built-ins
[    29.811] (**) ModulePath set to "/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
[    29.811] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    29.811] (WW) Disabling Keyboard0
[    29.811] (WW) Disabling Mouse0
[    29.811] (II) Loader magic: 0x7f99e6640020
[    29.811] (II) Module ABI versions:
[    29.811] 	X.Org ANSI C Emulation: 0.4
[    29.811] 	X.Org Video Driver: 19.0
[    29.811] 	X.Org XInput driver : 21.0
[    29.811] 	X.Org Server Extension : 9.0
[    29.811] (II) xfree86: Adding drm device (/dev/dri/card1)
[    30.926] (II) xfree86: Adding drm device (/dev/dri/card0)
[    30.927] (--) PCI:*(0:0:2:0) 8086:0416:1025:0926 rev 6, Mem @ 0xd1000000/4194304, 0xc0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[    30.927] (--) PCI: (0:1:0:0) 10de:139b:1025:0926 rev 162, Mem @ 0xd0000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[    30.927] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
[    30.927] (II) "glx" will be loaded by default.
[    30.927] (II) LoadModule: "glx"
[    30.927] (II) Loading /usr/lib64/nvidia/xorg/libglx.so
[    30.936] (II) Module glx: vendor="NVIDIA Corporation"
[    30.936] 	compiled for 4.0.2, module version = 1.0.0
[    30.936] 	Module class: X.Org Server Extension
[    30.936] (II) NVIDIA GLX Module  352.93  Tue Apr  5 17:51:58 PDT 2016
[    30.936] (II) LoadModule: "nvidia"
[    30.936] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    30.936] (II) Module nvidia: vendor="NVIDIA Corporation"
[    30.936] 	compiled for 4.0.2, module version = 1.0.0
[    30.936] 	Module class: X.Org Video Driver
[    30.936] (II) NVIDIA dlloader X Driver  352.93  Tue Apr  5 17:30:51 PDT 2016
[    30.936] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    30.936] (++) using VT number 1

[    30.936] (EE) No devices detected.
[    30.936] (EE) 
Fatal server error:
[    30.936] (EE) no screens found(EE) 
[    30.936] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    30.936] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    30.936] (EE) 
4. /etc/X11/xorg.conf:

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 352.93  (buildmeister@swio-display-x86-rhel47-07)  Tue Apr  5 18:55:28 PDT 2016

# RPM Fusion - nvidia-xorg.conf
# 

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
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 "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Videocard0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection
5. nvidia-xorg.conf:

Code: Select all

# RPM Fusion - nvidia-xorg.conf
# 
Section "Device"
	Identifier  "Videocard0"
	Driver      "nvidia"
EndSection
6. /etc/modprobe.d/blacklist-nouveau.conf:

Code: Select all

# RPM Fusion blacklist for nouveau driver - you need to run as root:
# dracut -f /boot/initramfs-$(uname -r).img $(uname -r)
# if nouveau is loaded despite this file.
blacklist nouveau
options nouveau modeset=0

User avatar
TrevorH
Forum Moderator
Posts: 29447
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: X display not working after Nvidia install

Post by TrevorH » 2016/06/07 21:16:15

How have you managed to get config files with "RPM Fusion" in them when there is no rpmfusion repo for CentOS 7?

ELRepo package drivers for nvidia - use those.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: UK

Re: X display not working after Nvidia install

Post by giulix63 » 2016/06/08 07:26:02

Is that a laptop with Nvidia Optimus technology? If so, you need Bumblebee.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

jim2016
Posts: 2
Joined: 2016/06/07 16:44:24

Re: X display not working after Nvidia install

Post by jim2016 » 2016/06/09 00:23:13

Thanks for the responses. I am trying to set up a system for CUDA programming. The Acer has an optimus NVidia card, and the BIOS does not give the option to disable the Intel graphics.

Today I wiped the machine clean, reinstalled CentOS, followed by kmod-nvidia, bumblebee, and the cuda-7.5 installer (but told the installer not to install GPU drivers). I can compile CUDA programs, but cannot run them. CUDA programs are complaining that the "CUDA driver version is insufficient for the CUDA runtime version". Hence I need to install the latest NVIDIA drivers.

Since I will be using this machine for coding, I don't really care if the NVIDIA gpu is not used by X. I just want to compile and run CUDA programs.

QUESTION: Is it possible to install the latest NVIDIA drivers and have X not load any of the NVIDIA drivers?

I tried that this afternoon by again after wiping the machine clean and then installing the NVIDIA drivers along with Bumblebee. X would start, but then give a white error screen. The Xorg.0.log file said that there was GLX load error as the NVIDIA drivers were not loaded.

Thanks for your help!

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: UK

Re: X display not working after Nvidia install

Post by giulix63 » 2016/06/09 07:17:36

I don't use CUDA, but kmod-nvidia already packages the latest drivers for Linux (361.45.11), so I am not sure why you're getting that driver version mismatch (see if this helps). As to your question, Bumblebee is designed to load the drivers (Nvidia/Nouveau) and use the discrete card only when expressly required to do so via optirun or primusrun. One note about installing Bumblebee: Make sure you follow the procedure exactly as outlined by the link provided, or it won't work.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

Nettle
Posts: 1
Joined: 2017/01/28 00:13:09

Re: X display not working after Nvidia install

Post by Nettle » 2017/01/28 00:24:39

I ran into this same problem trying to run dual titan xp's. Xorg logs indicated that the device was not being seen at xstart. Fortunately, the nvidia-xconfig command is very robust. Here, an nvidia addy recommends using "nvidia-xconfig --enable-all-gpus --separate-x-screens" for initial set up of your gpus (https://devtalk.nvidia.com/default/topi ... /?offset=2)

Post Reply

Return to “CentOS 7 - Hardware Support”