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.
Uninstall all your current problematic NVIDIA drivers.
sudo apt-get purge nvidia-* libcuda-*
Create temporary folder to store
nvidia-352 required files
Download the required files for
nvidia-352 graphic driver.
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 :
The links above is for 64-bit NVIDIA driver, for those who are looking for 32-bit then do a look at below link :
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
Voila! If you booted into your desktop without having a single crash, then you have successfully solved this graphic problem!