Finally solved the login loop for the Ubuntu 14.04 after NVIDIA

After numerous days of fighting and then frustratingly giving up, I was able to solve the login loop problem.  The problem started appearing when in quest of working on Deep Convolutional Network I started working on Caffe library. All was fine, until I updated something, disturbing the fine balance and causing me to be stuck to the Login Screen that kept popping back up even after my entering the password.

In the process instead of things becoming better, I ended up in the place where my GUI will not even load and I will be stuck to the terminal. I thought I could make it work if I changed from lightgdm to gdm. That change resulted in another headache, “blinking black screen with a cursor on the corner”. Pressing Ctrl-Alt-F1 took me to the terminal but it will keep blinking back to the blank screen, making it impossible to work on anything.  Following  and I tried changing the commands in the grub by setting nomodeset. Although, the author claims it solved its problems but for it did not work. Recognizing that it must be that my gdm is gone bad,  

sudo dpkg-reconfigure gdm

and changed back to lightdm.

One problem solved, no more flickering screen and back to the first problem, stuck in the log-in loop 😦

Trying my luck I performed following

sudo nano /etc/X11/xorg.conf

It was empty, so stepped ahead and deleted it.

Then ran

sudo cop /etc/X11/xorg.conf.nvidia-xconfig-original /etc/X11/xorg.conf
sudo /etc/init.d/lightdm stop
sudo X -configure
sudo /etc/init.d/lightdm restart

And I was able to get past the login screen.

Now I was stuck into “Black Desktop Screen”, came to the help.




  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: