Ubuntu 16.04 nvidia drivers don't work
Solution 1
Found the solution (this time for real),
i decided to be an ubuntu expert , so i went to google and typed :
debug ubuntu
then it gave me the page Debug and i selected unity .
in some part i needed to do :
$ unity --advanced-debug
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>
...
(gdb) set logging file unity.log
(gdb) set logging on
(gdb) b _exit
Function "_exit" not defined.
Make breakpoint pending on future shared library load? (y or [n])
[Answer yes (y)]
(gdb) run
[ and when compiz/unity crash, do...]
(gdb) bt full
[ then CTRL-D or re-run compiz to continue working ]
(gdb) run
after running this i noticed the error :
compiz (core) - Error: Plugin 'opengl' not loaded.
i searched for this error on google and it gave me this thread Unity missing? Can't see top or side panels , the answer here works .
Solution 2
I also installed Ubuntu 16.04, clean install on a new hd 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 in UEFI
. Now everything works with nvidia driver installed.
Solution 3
I had this problem too. I just run this in a console (press Ctrl + Alt + F1, in login page to show first virtual tty):
sudo apt-get purge nvidia*
After this, rebooted and then i could login. After that, I installed intel drivers first, and then nvidia-361.
These were the steps I followed:
sudo apt-get purge nvidia*
- reboot (now I had noveau display driver working)
sudo apt-get install intel-microcode
sudo apt-get install intel-gpu-tools
- Reboot (for testing, everything was working fine)
-
sudo apt-get install nvidia-361
(I think nvidia-current is better long term option). - Reboot
Now I have these (sorry they are in spanish):
Solution 4
I also have an issue with 16.04 and Nvidia 361.42 driver. You can use prime-select intel
or Nouveau driver as temporary workaround. I have had endless issues with the official Nvidia Ubuntu drivers over the years, it's very hit and miss. I thought the introduction of Steam OS and the growing number of Linux users/gamers might encourage them to better support Linux :/
Solution 5
I think I have found the solution. I have had terrible trouble with installing 16.04 on my main machine. Nvidia drivers crash and you can't log in and you have to resort to sudo apt-get purge nvidia-*. Chrome was crashing.
I have had no trouble with my secondary machine which has a traditional bios. It is only my main machine with UEFI firmware. The most frustrating thing is that I had been running 16.04 from a daily build for some months and it was rock solid.
I have noticed that the installer asks for a password if you download drivers as you install. The solution is to TURN OFF SECURE BOOT. Installing Ubuntu (from the UEFI option in the Bios Menu) then proceeds faultlessly and the system seems stable. 16.04 is not perfect e.g. to install Chrome you have to use gdebi, but at least it is now useable.
Related videos on Youtube
saeed hardan
Updated on September 18, 2022Comments
-
saeed hardan over 1 year
I've just installed a new ubuntu 16.04 ,
fresh install clean , logged in the first and only thing i did is selecting the proprietary driver 361 for nvidia , rebooted the machine .
anfter rebooting i can login but unity isn't showing , i can still right click though and open terminal , tried many answers:
link1 link2did not help , i got frustrated , booted into usb and freshly installed it again, this time i tried 340 drivers same problem .
i mean this is 16.04 LTS for gods sake .
i have dual grahpic cards nvidia gt 740m , intel built on ASUS laptop .output of grep "EE\|WW" /var/log/Xorg.0.log :
(WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 23.758] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 23.758] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 23.758] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 23.758] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 23.758] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 23.761] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere. [ 25.323] (WW) Unresolved symbol: fbGetGCPrivateKey [ 25.448] (WW) NVIDIA(0): Unable to get display device for DPI computation. [ 25.613] (WW) modeset(G0): Option "AllowEmptyInitialConfiguration" is not used [ 25.613] (WW) modeset(G0): Option "IgnoreDisplayDevices" is not used [ 25.902] (EE) NVIDIA(0): Failed to initiate mode change. [ 25.902] (EE) NVIDIA(0): Failed to complete mode change [ 26.214] (WW) evdev: SteelSeries Sensei Raw Gaming Mouse: ignoring absolute axes. [ 26.216] (WW) evdev: SteelSeries SteelSeries Apex Raw Gaming Keyboard: ignoring absolute axes. [ 26.272] (II) XINPUT: Adding extended input device "USBest Technology SiS HID Touch Controller" (type: TOUCHSCREEN, id 16)
full log file LOG
xorg.conf file :
Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection Section "Device" Identifier "intel" Driver "modesetting" BusID "PCI:0@0:2:0" Option "AccelMethod" "None" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:4@0:0:0" Option "ConstrainCursor" "off" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" EndSection
-
Hi-Angel about 8 yearsWhat does
grep "EE\|WW" /var/log/Xorg.0.log
show? -
saeed hardan about 8 years@Hi-Angel i have updated the answer with the output
-
Hi-Angel about 8 yearsFrom the part
Option "IgnoreDisplayDevices" is not used
I'd guess that you havexorg.conf
file somewhere. I'd try first to move it somewhere, e.g. to a home directory, to see if it fixes the problem. It is most probably in/etc/X11/xorg.conf
. If it's not there, you can see the path by executing the commandgrep "Using config file" /var/log/Xorg.0.log
. -
saeed hardan about 8 years@Hi-Angel sorry i mean i moved it , but i went to double check , the file even if removed it is created automatically
-
Hi-Angel about 8 yearsThat's interesting. Well, it looks like NVidia's driver creates it, and it screws something there. Sorry, I badly know its syntax, but post the file content here anyway, perhaps me, or somebody else would see an error there.
-
saeed hardan about 8 years@Hi-Angel thanks for the help , updated the post
-
Hi-Angel about 8 yearsI mean to post not the log, but the
xorg.conf
:) -
saeed hardan about 8 years@Hi-Angel done xD
-
Hi-Angel about 8 yearsAs a temporary solution I think you could try to remove the file content. Ideally, of course, it is needed to find the problem in the xorg.conf, but this way, at least, a graphic should start working. Execute
sudo echo 0> /etc/X11/xorg.conf
(no space between0
and>
), or just open the file in an editor, and remove everything.
-
-
saeed hardan about 8 yearsWhat do you mean by installing intel drivers ?
-
Shosta about 8 yearsJust edited the answer to show the steps I followed. Hope, this can help.
-
King Midas about 8 yearsYes, your solution worked for me. I have never expect that UEFI + nvidia can caused an error of this type!
-
Haluk almost 8 yearsIn addition to disabling secure boot we had to switch from "UEFI+CSM" to "UEFI" and then we were able to boot fine.
-
QkiZ over 7 yearsYou dont have to disable secure boot to use nvidia drivers askubuntu.com/questions/761886/…
-
QkiZ over 7 years
-
dez93_2000 about 6 yearsFor others: I had this with 18.04 after swapping graphics cards then back. Simply the first step worked (purge nvidia) then reboot, uses default driver, search for proprietary ones, finds nvidia, use that, the end.