For those who are following the guide but the problem still appears, then maybe it has something to do with the driver itself.
Some of the NVIDIA's GPUs doesn't play well with the newest driver. If you've suspected that you're the victim of that problem, then you can follow my guide below.
Below are just copy paste answer from my own question here.
I did it!! It was a problem with the driver itself!
Problem : My Card (NVIDIA GTX980M) doesn't run well with new proprietary NVIDIA Linux driver.
Solution : Use the old driver that supports my graphic card.
Basically, after lurking the internet for a while, some people said that maybe I can try to use stable nvidia-352
instead of new drivers.
However, upon looking at apt-cache search nvidia-352
, I have found out that nvidia-352 is just a transition driver for nvidia-361
graphic driver.
However, based on my previous test, nvidia-361 up to newest (nvidia-370 at the time of writing) is the source of my problem.
So I need to download the exact nvidia-352 instead of transition nvidia-361.
If you're having the same problem as mine, then below are the steps on how I solved it.
Steps :
Uninstall all your current problematic NVIDIA drivers.
sudo apt-get purge nvidia-* libcuda-*
.
Create temporary folder to store nvidia-352
required files
cd ~/Desktop
mkdir nvidia-352
cd nvidia-352
.
Download the required files for nvidia-352
graphic driver.
wget https://launchpad.net/ubuntu/+archive/primary/+files/libcuda1-352_352.63-0ubuntu3_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/nvidia-libopencl1-352_352.63-0ubuntu3_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/nvidia-opencl-icd-352_352.63-0ubuntu3_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/nvidia-352_352.63-0ubuntu3_amd64.deb
Edit 1:
If you have problem downloading nvidia-352_352.63-0ubuntu3_amd64.deb
from the link above (occurred to me), you can also download it from different sources.
Here is an alternative link for that file :
http://mirrors.mit.edu/ubuntu/pool/restricted/n/nvidia-graphics-drivers-352/nvidia-352_352.63-0ubuntu0.15.10.1_amd64.deb
Edit 2:
The links above is for 64-bit NVIDIA driver, for those who are looking for 32-bit then do a look at below link :
https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-352
The steps are just the same, just you need to download a different files that support your 32-bit setup.
.
Install all the debs files.
sudo dpkg -i *.deb
.
Reboot
.
Voila! If you booted into your desktop without having a single crash, then you have successfully solved this graphic problem!
Enjoy! :D