Getting Information on Nvidia GPU on CentOS 7
# lspci | grep -i --color 'vga\|3d\|2d'
02:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200e [Pilot] ServerEngines (SEP1) (rev 42)
86:00.0 VGA compatible controller: NVIDIA Corporation GP102GL [Quadro P6000] (rev a1)
# lshw -class display
*-display
description: VGA compatible controller
product: MGA G200e [Pilot] ServerEngines (SEP1)
vendor: Matrox Electronics Systems Ltd.
physical id: 0
bus info: pci@0000:02:00.0
version: 42
width: 32 bits
clock: 33MHz
capabilities: pm msi vga_controller bus_master cap_list rom
configuration: driver=mgag200 latency=0
resources: irq:16 memory:d3000000-d3ffffff memory:d4a10000-d4a13fff memory:d4000000-d47fffff memory:d4a00000-d4a0ffff
*-display
description: VGA compatible controller
product: GP102GL [Quadro P6000]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:86:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: iomemory:3df0-3def iomemory:3df0-3def irq:320 memory:ec000000-ecffffff memory:3dfe0000000-3dfefffffff memory:3dff0000000-3dff1ffffff ioport:c000(size=128) memory:ed000000-ed07ffff
Nvidia Downloads Site
From the Information, Download the Drivers from Nvidia Download Page
Yum Install Libraries and Dependencies
# yum group install "Development Tools"
# yum install kernel-devel
# yum install epel-release
# yum install dkms
Disable Noveau Drivers
Disable nouveau driver by changing the configuration /etc/default/grub file. Add the nouveau.modeset=0 into line starting with GRUB_CMDLINE_LINUX. This will disable the noveau driver after the reboot.
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet nouveau.modeset=0"
GRUB_DISABLE_RECOVERY="true"
Modifying the Grub.cfg
For BIOS User,
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-957.5.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.5.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-86f557f292e5492aa7ac0bf1cb2670b0
Found initrd image: /boot/initramfs-0-rescue-86f557f292e5492aa7ac0bf1cb2670b0.img
done
For UEFI User
# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
Switch CentOS from GUI to Text Mode
First switch to Text Mode
# systemctl isolate multi-user.target
Installing the Nvidia Driver on CentOS 7
# bash NVIDIA-Linux-x86_64-*
Reboot the System
# reboot
Finally, run the command nvidia-settings to check and configure
# nvidia-settings

References