Remove previous installation
sudo apt-get purge nvidia*
sudo apt-get autoremove
Install Dependencies
sudo apt-get install build-essential gcc-7 gcc-multilib dkms
Blacklist for Nouveau Driver
Create a new file at /etc/modprobe.d/blacklist-nouveau.conf
with the following contents-
blacklist nouveau
options nouveau modeset=0
then excute
sudo update-initramfs -u
And Restart (sudo reboot
)
Stop gdm
sudo service gdm stop
Excuting the Runfile
Download latest driver from here
cd Downloads
chmod +x NVIDIA-Linux-x86_64-430.14.run
sudo ./NVIDIA-Linux-x86_64-430.14.run --dkms -s --no-cc-version-check
Note: --no-cc-version-check
is for Compiler Mismatch problem
Problem 1:
ERROR:
An NVIDIA kernel module 'nvidia' appears to already be loaded in your kernel.
Solutuins:
dkms status
if the output is something like this nvidia-410, 410.78, 4.4.0-138-generic, x86_64: installed
,
then we need comma seperated first three string- nvidia-410, 410.78, 4.4.0-138-generic
$ sudo dkms remove nvidia-410/410.78 -k 4.4.0-138-generic
This is very useful. What happens afterwards... I got some error
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+