I installed or upgraded to Ubuntu 16.04, but I'm having some problems with my graphics card.
- The display is blank
- The display flickers
- Items on the screen do not display correctly
- Certain programs complain of graphics issues
The computer boots to low-graphics mode
Your specific issue may not be here, but try the solutions described in the answers anyway.
This question is very broad, but each one of these issues likely has one solution.
If you are experiencing a login loop, check the last part of my answer.
If you experience one of the listed issues and have your own solution (mine didn't work, or there's a faster way), feel free to post another POLITE answer, describing your problem and how you fixed it.
Those attempting to install Ubuntu, please refer to the section titled: If you are unable to enter a TTY or are trying to install Ubuntu
.
Please be aware that this answer may become slightly outdated. I will do my best to update it regularly, but I can't guarantee anything. The driver version used below may not be the latest. Please check the Launchpad page to confirm.
Each of the issues described (and maybe even more) can be fixed by following the steps below.
If you're installing Ubuntu, follow section 3.
1. First make sure you can enter a TTY
Press Ctrl+Alt+F1
If this brings you to a black screen with a login prompt, continue on. Otherwise, you will likely have to boot with a special kernel flag. Instructions are below.
2. Now for the fix
sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
and thensudo apt-get update
.sudo apt-get install nvidia-driver-430
.3. If you are unable to enter a TTY or are trying to install Ubuntu
Ubuntu
option and press E.nouveau.modeset=0
to the end of the line beginning withlinux
.This solution should fix many problems described by users after an upgrade to 16.04. If a fresh install is affected, the solution is the same.
If you run into problems afterward, you should ask a different question. (Refer to this question so that we know it isn't a duplicate.) However, there are a few other small fixes you can try out before you do.
Reinstall Xorg
sudo apt-get purge xorg-* xserver-xorg; sudo apt-get install xorg xserver-xorg; sudo dpkg-reconfigure xorg
.Reinstall your desktop environment
sudo apt-get purge ubuntu-desktop; sudo apt-get install ubuntu-desktop
.sudo apt-get purge ubuntu-gnome-desktop gnome-desktop-environment; sudo apt-get install ubuntu-gnome-desktop
.sudo apt-get purge ubuntu-mate-desktop mate-desktop-environment; sudo apt-get install ubuntu-mate-desktop
Please remember that there are a lot of things that can go wrong, and this is not a guaranteed fix for everything. Even if you are experiencing something listed in the question, the solution may not fully work for you.
This answer is merely for driver issues with 16.04 and nVIDIA. Your issue may go deeper than a bad driver.
Other issues after the fix
I installed Ubuntu 16.04 and everything worked fine until I switched to NVIDIA driver. After rebooting I couldn't get past the login screen. The solution that worked for me was to disable secure boot.
While stuck in login loop, I switched to console
Ctl+Alt+F1
, rebooted and disabled secure boot inUEFI
. Now everything works with nvidia driver installed.For The display is blank & The display flickers
I faced the same issue but now every thing works fine.
There are two solutions to this:
Use NVIDIA driver version 364 from the Graphics drivers PPA (Best Option)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update && sudo apt install nvidia-364
Use LightDM instead of GDM
sudo apt-get install lightdm
lightdm
as the default when prompted.NOTE If that didn't work for you, install
intel-microcode
(if available) from the Additional Drivers app before installing the NVIDIA driver.I upgraded from Ubuntu GNOME 15.10 to 16.04 and was faced with a black screen. Using
systemctl status
and digging through logs, I found that the proprietary NVidia drivers were broken.Purging
nvidia-*
and reinstallinggdm
got me to low-graphics mode, but reinstalling the NVidia drivers brought back the black screen. As it turns out, Secure Boot had been set to "Windows" in the BIOS settings. I changed it to "Other", and my issue was solved.Before I found the Secure Boot option I'd tried purging and reinstalling
nvidia-*
,xorg*
,xserver-xorg
,ubuntu-gnome-desktop
,gnome-desktop-environment
. I'm not sure whether or not this helped, but it seems best to put it in. Also, the upgrade tool had said that it would have to disable Secure Boot in order to succeed, but that it would turn it back on afterwards. That is what led me to go look for it.I checked the X11 log file at /var/log/Xorg.0.log for (EE) error entries:
so the graphics card was not detected by the nouveau driver.
checking the installed card with lspci gave the following result:
With this type of graphics card the answers recommending to install the NVIDIA drivers given here didn't help me since the latest NVIDIA driver doesn't support my card.
Therefore after some internet search i found the suggestion to help the X11 system a bit by specifying the details of the card in a file
/usr/share/X11/xorg.conf.d/20-nouveau-conf and using the info from the lspci command:
Now things work like expected and no (EE) error lines show up in the log file.
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 fornvidia-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.
Steps :
Uninstall all your current problematic NVIDIA drivers.
.
Create temporary folder to store
nvidia-352
required files.
Download the required files for
nvidia-352
graphic driver.Edit 1:
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 :
Edit 2:
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.
.
Reboot
.
Voila! If you booted into your desktop without having a single crash, then you have successfully solved this graphic problem!
Enjoy! :D
After struggling with this issue for a day and a half, eventually it was solved by disabling secure boot in Bios settings. during installation of driver I was prompted to disable secure boot and I did, but somehow, perhaps because windows is also installed, it was not disabled (while installing). rebooting and pressing F2 (on Asus) I got into Bios, security, then disabled secure boot. rebooted, and voila! Although this may be specific to certain bios versions or dual boot systems, no one posted this solution here before.
I tried many solutions and non worked. Finally, I tried this and worked perfectly, without any need to do things like
sudo service lightdm stop
and so on. Just run the followings:This shows you the list of compatible drivers for your devices:
sudo ubuntu-drivers list
Then run to install the compatible ones:
sudo ubuntu-drivers autoinstall
Finally do (or just restart your machine):
sudo service lightdm restart
Every day I check for update and download them using Software Updater. But last night Ubuntu asked me for a partial download (said, something not installed correctly - something like that), so I follow Partial Download process. End of the download process it asked for a restart, so I restart Ubuntu. After reboot, the boot logo and login window are on low-resolution, login loop and no internet connection (wifi + ethernet both I tried)! So, I can't even log in!
I'm using Ubuntu 16.04.2 LTS in ASUS X556UQ Laptop.
After a long experiment (trying above and other solution from Google), I find that the problem occurs for the latest Linux Kernel 4.8.0-42 with Nvidia 378 driver! So I downgrade to Nvidia 370 driver using TTY (Ctrl + Alt + F1) and restart Ubuntu using Linux Kernel 4.8.0-41 (Using grub menu) and all problem solved!
When I first installed Ubuntu 16.04.1 I had graphics issues that were resolved by using nvidia-304 (already mentioned above as a solution). I just updated my system a week or so ago and since then I found myself in the "can't log in loop problem" as many people has already described. Logging in via a tty, I tried installing nvidia-304, 324, 350, and 370. NONE of them worked. Finally I tried something very drastic. I installed Xubuntu 16.04.1. It worked immediately with NO specific effort on my part. So it seems the problem is intimately tied to the desktop manager (Gnome). So if you can switch to Xfce from within a shell window, you might be good with your current version of Ubuntu (sorry but I don't know how to do that). Otherwise, install Xubuntu.
Good luck!