Please Help with NVIDIA Driver installation on Centos 7

Issues related to hardware problems
winzter143
Posts: 1
Joined: 2017/04/17 08:46:19

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by winzter143 » 2017/04/18 05:26:52

Hi Buddy, We have same device, and I follow you way. However I don't how to verify the nvidia driver was use.

Here's my info on lspci
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5916] (rev 02)
Subsystem: Lenovo Device [17aa:39f1]
Kernel driver in use: i915
Kernel modules: i915
03:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 920MX] [10de:134f] (rev a2)
Subsystem: Lenovo Device [17aa:39f1]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
agonda wrote:Yippie !!!, I finally got it working. Thanks a bundle to Trevor for pointing me in the right direction. Just to summarize:

My Laptop Config

Lenovo ideapad 310
i5 7th Generation
NVIDIA GEFORCE 920MX (2GB)

Fresh install of CentOS 7 Kernel Version 3.10

Nvidia Drivers from Elrepo


rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7. ... noarch.rpm
yum install nvidia-detect.x86_64

use command yum install $(nvidia-detect) for correct drivers for your card. In my case, I was suggested 375.26

yum install kmod-nvidia-375xx.x86_64
yum install nvidia-x11-drv-375xx.x86_64

Since its a laptop and it had dual cards, load bumblebee as per https://elrepo.org/tiki/bumblebee

finally reboot

Voila !!

noiissyboy
Posts: 2
Joined: 2017/06/23 19:04:02

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by noiissyboy » 2017/06/23 19:13:27

Hi, i had installed Nvidia driver and was working fine until I updated to latest kernal version. Boot stops after " postfix mail transport agent". I fixed it by reinstalling respective Nvidia driver again and it's works fine now. I think after every kernel update Nvidia driver need to be reinstalled.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by toracat » 2017/07/02 23:45:01

noiissyboy wrote:Hi, i had installed Nvidia driver and was working fine until I updated to latest kernal version. Boot stops after " postfix mail transport agent". I fixed it by reinstalling respective Nvidia driver again and it's works fine now. I think after every kernel update Nvidia driver need to be reinstalled.
In principle, you don't have to reinstall the kmod-nvidia package after each kernel update. However, at times, there is a kABI breakage with a new kernel. When this happens, kmod-nvidia needs to be rebuilt against the new kernel. You just need to update your installed kmod-nvidia with the new one.
CentOS Forum FAQ

LinuxInside
Posts: 1
Joined: 2017/07/08 13:14:24

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by LinuxInside » 2017/07/08 14:21:26

Hi guys.

I had the same problem that I resolved in this way :
  1. Import the public key: (as shown at http://elrepo.org/tiki/tiki-index.php)

    Code: Select all

    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  2. Install ELRepo for CentOS-7: (as shown at http://elrepo.org/tiki/tiki-index.php)

    Code: Select all

    rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
  3. Code: Select all

    yum install nvidia-detect
  4. Install kmod-nvidia, nvidia-x11-drv is installed as dependency: (as shown at http://elrepo.org/tiki/nvidia-detect)

    Code: Select all

    yum install $(nvidia-detect)
  5. Install bumblebee, kmod-bbswitch and libbsd are installed as dependencies : (as shown at http://elrepo.org/tiki/bumblebee)

    Code: Select all

    yum install bumblebee
  6. Install VirtualGL if not automatically installed :

    Code: Select all

    yum install VirtualGL
  7. Add your user account to group 'bumblebee' :

    Code: Select all

    usermod -a -G bumblebee your_username
  8. Install primus : (as shown at https://elrepo.org/tiki/primus)

    Code: Select all

    sudo yum install primus
  9. Edit /etc/bumblebee/bumblebee.conf : (as shown at https://elrepo.org/tiki/primus)
    Modify the

    Code: Select all

    PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
    to

    Code: Select all

    PrimusLibraryPath=/usr/lib/primus:/usr/lib64/primus
    In my case I only have the 64 bit library version (lib64)
  10. Edit the file /usr/share/applications/nvidia-settings.desktop and change the Exec line to :

    Code: Select all

    Exec=optirun nvidia-settings -c :8.0e

bkamen
Posts: 34
Joined: 2009/12/06 20:48:46
Location: Central Illinois, USA

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by bkamen » 2017/07/10 18:58:05

I did manage to install the nVidia proprietary drivers and it wasn't worth it.

EVERY TIME THE KERNEL updates, the drivers had to be re-compiled or the Xorg startup would fail.

not worth it.

*AND* it turned out for Xvnc remote login (using gdm), the nouveau drivers (for what I needed) ended up having better overall support.

but like others, I would recommend the ELrepo package over nVidia's Linux installer version.

-Ben

try1260
Posts: 1
Joined: 2017/07/11 06:05:29

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by try1260 » 2017/07/11 06:11:44

Try the basic video option from troubleshooting menu in your first screen options menu

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by TrevorH » 2017/07/12 12:24:27

We would recommend use of the ELRepo kmod drivers as they do not require reinstallation on every kernel update.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

northcape
Posts: 1
Joined: 2017/10/30 03:44:11

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by northcape » 2017/10/30 04:00:09

Dear all,

I have a similiar issue on a Dell Server. CentOS 7, kernel version 3.10.0-514.10.2.el7.x86_64.

I have a Quadro M2000. The noveau driver seemed to work to some degree; the card was recognized by X and the machine booted into runlevel 5. However, the advanced part of the card (GLX) could not be activated.

A part-time sysadmin installed the original NVIDIA drivers, version 378.13. With these drivers, the card is not detected at all and the machine does not go into runlevel 5 (stays in 3), and the last line of the boot log is "Starting Wait for Plymouth Boot Screen to Quit...". Xorg.log also shows that the card is not detected:
[ 28.134] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event2)
[ 28.134] (II) No input driver specified, ignoring this device.
[ 28.134] (II) This device may have been added with another device file.

Finally I did some research muself, and found this forum and the elrepo stuff.

From reading this thread, the elrepo-drivers seem to worked when the running noveau-drivers are replaced by yum install kmod-nvida (I installed nvidia-detect, and it told me kmod-nvidia is the right thing for me).

My question: Can I also do yum install kmod-nvidia on top of the non-working original nvidia-drivers, or do I need to go back to the partly working noveau drivers before I install kmod-nvidia?

I'm not a Linux-expert, and I'm not sure how I can go back to the noveau drivers.

Thank you very much,

Michael

goinghaywire
Posts: 1
Joined: 2018/01/12 05:37:08

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by goinghaywire » 2018/01/12 05:42:15

Thank You LinuxInside! this totally worked out for me! :D

LinuxInside wrote:Hi guys.

I had the same problem that I resolved in this way :
  1. Import the public key: (as shown at http://elrepo.org/tiki/tiki-index.php)

    Code: Select all

    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  2. Install ELRepo for CentOS-7: (as shown at http://elrepo.org/tiki/tiki-index.php)

    Code: Select all

    rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
  3. Code: Select all

    yum install nvidia-detect
  4. Install kmod-nvidia, nvidia-x11-drv is installed as dependency: (as shown at http://elrepo.org/tiki/nvidia-detect)

    Code: Select all

    yum install $(nvidia-detect)
  5. Install bumblebee, kmod-bbswitch and libbsd are installed as dependencies : (as shown at http://elrepo.org/tiki/bumblebee)

    Code: Select all

    yum install bumblebee...
    
    

meffe
Posts: 3
Joined: 2017/12/16 13:14:44

Re: Please Help with NVIDIA Driver installation on Centos 7

Post by meffe » 2018/01/13 22:32:35

Hi,

I've been thinking about migrating from my laptop to my desktop, for more comfort (i'm currently in a "quasimodo"-position in my sofa), but I've been a bit anxious since I also got a nvidia card -- and all I've heard about linux and nvidia graphics is s**t. :(
So I'm really glad I found this thread.

My setup is,
  • i5-7600k @ 4.6ghz
    NVIDIA GeForce GTX 1060 6gb
    2x8gb DDR4 3200mhz @ 3000mhz
    256gb SSD
    ASUS 24" VG248QE 144hz
    <-- Also something I'm a bit worried about.
I will proceed with the installation tomorrow morning, when I wake up. And most likely, I will be hear screaming for your advice within the hour! :lol:

Ciao!

Post Reply