ORIGINAL QUESTION UPDATE 1:
Including Additional Drivers screenshot. I have tried installing both 361.42 and 340.96 and both times, I get a blank screen after restarting.
ORIGINAL QUESTION:
When I install the nvidia driver for ubuntu and then restart, I get a blank screen. I have no tried 2 of the nvidia drivers and both times I get a blank screen.
How do I install the nvidia drivers and not get a blank screen?
Did a google search and it seems I'm the first to encounter this issue since 16.04 has been released:
Where/When do you get the blank screen? Is it when the grub menu should appear upon boot, or when the Ubuntu Unity login screen should appear? If it's the latter, try the following:
Add
nomodeset
on your Ubuntu grub entry. Highlight the entry you use to boot, press e, then add replace...
ro quiet splash
...with
...
ro nomodeset quiet splash
...If that boots to the login screen correctly, press Ctrl + Alt + F2, login, then run
sudo prime-select intel
. Then reboot and see if that fixes it.Also, how are you installing NVidia drivers? DOuble-check at nvidia.com if you're using the correct ones.
My graphics card is the NVidia GeForce GTX 950.
The first thing I did was download the latest stable NVidia driver from nvidia.com (for me, it was 361.42). I was sure to select the latest stable and certified driver. It's a ".run" file, by the way. Search on how to install .run files if you're not familiar with this.
I then blacklisted the Nouveau drivers according to this post (my steps are below and are slightly different from this post): Install Nvidia driver instead of nouveau
I did all of my work through the virtual terminal accessed by Ctrl+Alt+F1 from the log in screen:
Blacklist the modules. Open the blacklist.conf file.
add the following modules to the end of the file:
Save the file and exit.
Remove all the nvidia* packages (note this didn't do anything for me, but it's recommended. No harm done in running it)
Update the initramfs disk. Mine was configured to load the nouveau drivers. It takes several seconds. Don't reboot or poweroff!
Reboot
Stop the display manager and then install.
At the login screen press Ctrl+Alt+F1 again to get into the virtual terminal. Once you are in the text mode, stop the display manager:
Then, run the installation file (the .run file you downloaded). The installation is well documented and contains lots of useful messages along the way (imagine that!). I did get the error about the pre-install script failing. I continued anyway. I got asked "Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up" I answered "Yes" and continued. I have a 64-bit system and got 32-bit errors. I didn't worry about it and continued. The 64-bit ones installed fine. I got to the end of the installation!
Cross your fingers, reboot, and log in. My system FINALLY came up. I hope yours does too!
Try to add nvidia ppa ppa:graphics-drivers/ppa and install the lastest 364.15.
That works for me with optimus 860m.
This works only if you have Secure Boot disabled.
Maybe you have to blacklist the nvidia drivers at startup. That is sometimes needed by hybrid graphic cards.
Edit the file:
/etc/modprobe.d/bumblebee.conf
and add:replace the XXX by the version of the graphic driver. For example
346
reboot your computer.
I solved this issue a different way. I installed 16.04 on a very old computer. I installed the Nvidia legacy driver, and got the blank screen.
I installed Lubuntu to use the LXDE desktop. That is working very well for me.
Make sure you have secureboot disabled, I happened to have mine enabled and ignored the warning when I upgraded to 16.04. If you have secureboot on, it will get stuck on gdm or in a black screen.
Try adding the following options to your grub /etc/default/grub config file. You'll need to update grub afterward.