I getting BlackScreen after installation of nvidia drivers

General support questions
Post Reply
bandarikanth810
Posts: 1
Joined: 2018/11/29 07:18:18

I getting BlackScreen after installation of nvidia drivers

Post by bandarikanth810 » 2018/11/29 08:58:55

Hi,

My lap is lenovoideapad 310
os:centos7.5
it have Geforce 920MX card
I installed nvidia drivers in my laptap.

I followed 4 methods, no one is worked for me, What is the Issue?

1 http://www.advancedclustering.com/act_k ... -centos-7/

Prepare your machine

yum -y update
yum -y groupinstall "GNOME Desktop" "Development Tools"
yum -y install kernel-devel

Download the latest NVIDIA driver for unix.
==> http://www.nvidia.com/object/unix.html ==> Latest Long Lived Branch version
Note: If using a recently released, top end GTX or Tesla you may get more support with the Latest Short Lived Branch instead.

In order to have the NVIDIA drivers rebuilt automatically with future kernel updates you can also install the EPEL repository and the DKMS package. This is optional.

yum -y install epel-release
yum -y install dkms

Reboot your machine to make sure you are running the newest kernel

Edit /etc/default/grub. Append the following to “GRUB_CMDLINE_LINUX”
rd.driver.blacklist=nouveau nouveau.modeset=0

Generate a new grub configuration to include the above changes.
grub2-mkconfig -o /boot/grub2/grub.cfg

Edit/create /etc/modprobe.d/blacklist.conf and append:
blacklist nouveau

Backup your old initramfs and then build a new one
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

Reboot your machine

If your machine doesn’t boot to a login prompt disconnect your monitor from the graphics card and plug directly into the onboard VGA port. Alternatively SSH directly into the machine.

The NVIDIA installer will not run while X is running so switch to text mode:
systemctl isolate multi-user.target

Run the NVIDIA driver installer and enter yes to all options.
sh NVIDIA-Linux-x86_64-*.run

Reboot machine, I get blackScreen

2. method

Remove / blacklist nouveau and
2. Update the kernel and its dependencies and
3. stop/start graphics mode ?

just do the following in the fresh centos 7 install:

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
yum install kmod-nvidia-375xx.x86_64
yum install nvidia-x11-drv-375xx.x86_64
reboot , then I get blackScreen

3.method https://www.tecmint.com/install-nvidia- ... -in-linux/

Installation of NVIDIA Drivers in RHEL/CentOS and Fedora

First, install needed “Development” packages using YUM command as shown.

# yum groupinstall "Development Tools"
# yum install kernel-devel kernel-headers dkms

Before installing NVIDIA drivers, you need to know your driver product type by using following command.

# lspci -nn | grep VGA

Sample Output

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108GL [Quadro 600] [10de:0df8] (rev a1)

Once you know your driver name, then go to NVIDIA official website and download required drivers for your system. Download drivers using following link.

http://www.nvidia.com/Download/index.aspx

Disable Nouveau Driver

open “/etc/modprobe.d/blacklist.conf” in your favourite editor and add “blacklist nouveau”, ofcourse without double-quotes.

blacklist nouveau

Next create a new “initramfs” file and taking backup of existing.

# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
# dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

Reboot the machine. Login into command mode using Alt+F4 / ALT+F5 as root.

# reboot

Once you in command line mode, next go to the folder where you’ve downloaded NVIDIA driver and run the script as show. If any dependency, you need to Yum the required packages.

./NVIDIA-Linux*.run

Once installation is complete, generate xorg.conf file using following command.

# X -configure

Copy xorg.conf.new as /etc/X11/xorg.conf.

# cp /root/xorg.conf.new /etc/X11/xorg.conf

Now switch to X Window as root user by typing.

# init 5




4 method https://linuxhint.com/install-nvidia-drivers-centos/

In all method I got BlackScreen , I login to tty and Checked Whether it installed or activated but it,s not installed

Any one has solution ?

Post Reply