Quick Notes

Fixing login loop issues / low resolution graphics mode (Ubuntu 14.04) after installing CUDA drivers.

Try one of these ways, or all:

# To uninstall nvidia drivers completely

sudo apt-get remove –purge nvidia*

sudo apt-get remove –purge cuda*

sudo apt-get remove –purge nvidia-current*  (if you installed it)

sudo apt-get remove –purge cuda-*

sudo apt-get autoremove

sudo nvidia-uninstall

# Remove blacklist during installing NVIDIA driver

sudo rm /etc/modprobe.d/blacklist-nouveau.conf

# To reinstall xserver:

sudo apt-get install –reinstall xserver-xorg-video-nouveau libgl1-mesa-glx

# Remove /etc/X11/xorg.conf and restart lightdm

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bk

sudo service lightdm restart