Ubuntu 16 Stuck in Login Loop after Installing Nvidia 364 Drivers
This didn't start out as a problem with the login loop. I was attempting a clean install of Ubuntu 16 and using the new feature that allows it to detect proprietary drivers for me.
I started off with this issue
When I attempted to use the recommended Nvidia Drivers, it caused the laptop to become unstable and freeze.
I attempted the remedy from that post and it resulted in a login loop.
I have attempted this
sudo mv ~/.config/dconf/user ~/.config/dconf/user.old
Tried this
sudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restart
I have tried locating and disabling secureboot, but there is no secureboot option in the bios. This is an HP DV2000 series laptop.
Nothing is helping
what i get when i try to log in
Can someone help?
edit:
Guest session does the same loop.
/var/log/Xorg.0.log
shows a lot of stuff, but I took a pic of what seems relevant Here
Thing is the driver I first tried that started this mess was 304 drivers and the 364 drivers were supposed to be the fix according to other posts.
More editing:
I purged the nvidia files and it came back to a blank desktop w/o the interfaces so I right clicked and restored a backup.. The sidebar came back and it was running gallium. I restarted and its the blank purple screen again.
I am thinking of just reinstalling and not using nvidia drivers. The software center is telling me I have a presario and i should use 304 drivers. Its not a presario. =( At least the software center provides a suggestion for the coprocessor driver which is nice.
If you've been successfully running 16.04 with your video driver before, but the login loop issue happens after the latest software update, try this, it worked for me after trying EVERYTHING else. This is the equivalent of searching for "additional drivers":
sudo ubuntu-drivers list
then use:
sudo ubuntu-drivers autoinstall
For me, this updated the driver for my nvidia quadroFx 3800 in a way that using sudo apt-get install nvidia-current
would not.
After autoinstall, invoke another tty (ex. ctrl+alt+f1) and
sudo service lightdm restart
In case you really want to use the drivers provided by Nvidia from their website (they solved cublas error CUBLAS_STATUS_NOT_INITIALIZED on my NVIDIA GTX980M), the only thing that worked for me was:
Press CTRL-ALT-F1
Uninstall any previous drivers:
sudo apt-get remove nvidia-*
sudo apt-get autoremove
Uninstall the drivers from the .run file:
sudo nvidia-uninstall
This should remove the login loop, so now reboot
and login normally.
Apply only if you use lightdm, Press again CTRL-ALT-F1 and do:
sudo service lightdm stop
sudo bash Your-Nvidia-Drivers-File.run
I used all the default options, except for the opengl, where I said no. I don't know if this is important though.
And here is the important part: DO NOT reboot. Just do:
sudo service lightdm restart
and press CTRL-ALT-F7 to login immediately after installation. This way I never saw a login loop again.
I used to have this problem and I googled it all day all night and finally found the right site for solution. It looks like the problem lies in your laptop using NVIDIA Optimus. I solve this using
sudo apt-get install nvidia-364 nvidia-prime
Follow this installation guide here for more info http://rajat-osgyan.blogspot.co.id/2016/04/how-to-install-latest-nvidia-drivers-on.html
I had the same problem with Ubuntu 14.04 and NVIDIA-304 driver.
This driver was updated from version 304.131 to 304.132 during one of the system updates. This new driver version was the source of my problem.
Reinstalling the old driver version (304.131) solved this. Everything works fine now.
For more Info see this Launchpad bug page
Here you can find driver 304.1: https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/304.131-0ubuntu0.14.04.1 On the right hand side of the page choose your build (amd 64 or i386), this will open the downloads page, where you can choose your download (mine was nvidia-304_304.131-0ubuntu0.14.04.1_i386.deb ). Download and copy to a USB stick. Power on the computer with the login Loop problem, open terminal, stop lightdm:
sudo service lightdm stop
Purge NVIDIA drivers:
sudo apt-get purge nvidia*
Plug in the USB stick with the downoaded file, run fdisk to identify your USB stick on the computer:
sudo fdisk -l
(mine was /dev/sdb1)
Mount the usb stick, but first create a mount point:
sudo mkdir /media/usb
Mount the usb stick:
sudo mount /dev/sdb1 /media/usb
Check if the downloaded file is present:
ls /media/usb
Install the NVIDIA driver:
sudo dpkg -i /media/usb/nvidia-304_304.131-0ubuntu0.14.04.2_i386.deb
(please replace the file name with the one of your download)
Unmount USB stick:
sudo umount /media/usb
Reboot system
sudo reboot
Hope this helps.
I had a similar issue after messing around with my screen configs in xorg.conf via the Nvidia-control panel. I had previously been running the currently latest drivers (at the time 381.09) on my 1080 with 3 screens with no problem. But once I restarted I got the login loop.
To fix I simply:
- opened a terminal ctrl-alt-f1
- moved my renamed my xorg.conf file
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf~
- Then restarted allowing the system to workout it's own config again.
This was a very quick fix - no need to reinstall drivers etc. Which I was keen to do to avoid messing up various dependents e.g. CUDA