PDA

View Full Version : [SOLVED] Boot problem when installing Nvidia graphics driver Ubuntu 18.04



k.pf
July 27th, 2018, 04:06 PM
Hello !

I have received a new graphics card Nvidia geforce gtx 1080ti on Monday in order to replace an old AMD Radeon but I haven't been able to install the graphics driver on Ubuntu 18.04. Whenever I try to install it, when I reboot Ubuntu, there is a black screen right before the time the "Ubuntu" logo should appear and then the screen shuts down. In order to reboot the computer properly, I have to uninstall the driver through the root mode.

The computer initially had a Windows 10/Ubuntu 18.04 dual boot and the graphics card worked perfectly fine on Windows. I tried to re-install Ubuntu 18.04 or downgrade to older versions (17 & 16) but the result is the same. I even tried using Linux Mint 19 but it doesn't seem to work either.
Eventually, I erased the disk and installed Ubuntu 18.04 so as to have the cleanest system possible.

I have tried different types of installation such as the autoinstall/using the apt command with various versions of the driver (396, 390 & 384). I also tried editing the grub2 file so as to boot using the nomode set. I tried booting in Legacy mode with the secure boot disabled, and also in UEFI but neither work. In brief, I have tried many things but none of them worked and now I am coming here for help since I am not a Linux/Ubuntu professional.

As I am pretty new to Ubuntu, I'd be thrilled if you could detail the code lines you want me to use when trying to help me !

Here is the output when I use the sysinfo package in the terminal:

System information report, generated by Sysinfo: 27/07/2018 16:57:50
http://sourceforge.net/projects/gsysinfo

SYSTEM INFORMATION
Running Ubuntu Linux, the Ubuntu 18.04 (bionic) release.
GNOME: 3.28.1 (Ubuntu)
Kernel version: 4.15.0-20-generic (#21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018)
GCC: no gcc detected
Xorg: unknown
Hostname: geco-HP-ProDesk-400-G3-MT
Uptime: 0 days 1 h 13 min

CPU INFORMATION
GenuineIntel, Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Number of CPUs: 8
CPU clock currently at 3045.389 MHz with 8192 KB cache
Numbering: family(6) model(94) stepping(3)
Bogomips: 6816.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp

MEMORY INFORMATION
Total memory: 15935 MB
Total swap: 2047 MB

STORAGE INFORMATION
SCSI device - scsi0
Vendor: ATA
Model: WDC WD10EZEX-60W

HARDWARE INFORMATION
MOTHERBOARD
Host bridge
Intel Corporation Skylake Host Bridge/DRAM Registers (rev 07)
Subsystem: Hewlett-Packard Company Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
PCI bridge(s)
Intel Corporation Skylake PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode])
Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1) (prog-if 00 [Normal decode])
Intel Corporation Skylake PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode])
Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1) (prog-if 00 [Normal decode])
ISA bridge
Intel Corporation Sunrise Point-H LPC Controller (rev 31)
Subsystem: Hewlett-Packard Company Sunrise Point-H LPC Controller

GRAPHIC CARD
VGA controller
NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]

SOUND CARD
Multimedia controller
NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
Subsystem: NVIDIA Corporation GP102 HDMI Audio Controller

NETWORK
Ethernet controller
Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

Bashing-om
July 27th, 2018, 08:42 PM
k.pf; Hello =

Let's see what we can do :)
what desktop do you have active - Wayland is a work in progress:


ps -efly | grep Xorg
echo $XDG_SESSION_TYPE


What does the GPU manager relate?


cat /var/log/gpu-manager.log


And what is installed for the driver:


dpkg -l | grep -i nvidia
lsmod | grep nvidia

code tag tutorial:
http://ubuntuforums.org/showthread.php?t=2171721&p=12776168#post12776168

Once we see these, we have an idea of where to go next.



all in the process

oldrocker99
July 27th, 2018, 09:17 PM
Did you install the drivers from the repositories or the nVidia site?

If you didn't install from the repositories, you should. Do this:

sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-xxx (whichever driver you want to install)

k.pf
July 30th, 2018, 09:45 AM
Hey there, thanks for taking the time for helping ! By the way, I am using my work computer so I am unable to access it during the week-end so sorry for the late reply.

Here are the outputs I get for the code lines you provided Bashing-om:



What desktop do you have active?


~$ ps -efly | grep Xorg
S geco 849 847 3 80 0 113744 138067 ep_pol 09:42 tty1 00:00:32 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
~$ echo $XDG_SESSION_TYPE
x11



What does the GPU manager relate?

~$ cat /var/log/gpu-manager.log
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/4.15.0-20-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/4.15.0-20-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? yes
Is nouveau blacklisted? no
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:1912
BusID "PCI:0@0:2:0"
Is boot vga? no
Vendor/Device Id: 10de:1b06
BusID "PCI:1@0:0:0"
Is boot vga? yes
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card1", driven by "nouveau"
output 0:
card1-DVI-D-1
Number of connected outputs for /dev/dri/card1: 1
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card0", driven by "i915"
Number of connected outputs for /dev/dri/card0: 0
Does it require offloading? no
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
Unsupported discrete card vendor: 8086
Nothing to do




And what is installed for the driver:


~$ dpkg -l | grep -i nvidia
~$ lsmod | grep nvidia



The last two lines of code give no output.



Did you install the drivers from the repositories or the nVidia site?

I didn't install them from the nVidia site as it is not recommended to install a driver from a .run file as I could read from various sources on the internet.

What i did was try "sudo ubuntu-drivers autoinstall" as well as the the code you gave. Both don't work and make the boot crash.

Bashing-om
July 30th, 2018, 09:28 PM
k.pf; Yuk -

That indicates to me that the proprietary nvidia driver did not even try to build.

Hummmmm ..
Let's make sure that you have the required compilation tools:


dpkg -l build-essential dkms
dpkg -l | grep linux-
uname -r


and verify what the system sees for hardware:


sudo lshw -C display




sometimes I wonder



other times I just do not know

k.pf
July 31st, 2018, 09:06 AM
Maybe I wasn't clear in my explanation above but the driver is currently uninstalled. Anytime I try to install it, I have to boot under recovery mode and use the following code:


mount -o remount,rw /
sudo apt-get remove --purge nvidia*

So whenever you give me lines of code, I run them without having the driver installed. Maybe I'm wrong but I had the feeling you thought otherwise.

Moreover, I am deeply sorry but I am using a French version of Ubuntu and some outputs are in French (while others are in English). For the code you gave me, these are the outputs I get:


~$ dpkg -l build-essential dkms
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
+++-==============-============-============-=================================
ii build-essentia 12.4ubuntu1 amd64 Informational list of build-essen
rc dkms 2.3-3ubuntu9 all Dynamic Kernel Module Support Fra

~$ dpkg -l | grep linux-
ii binutils-x86-64-linux-gnu 2.30-20ubuntu2~18.04 amd64 GNU binary utilities, for x86-64-linux-gnu target
ii linux-base 4.5ubuntu1 all Linux image base package
ii linux-firmware 1.173 all Firmware for Linux kernel drivers
ii linux-generic 4.15.0.29.31 amd64 Complete Generic Linux kernel and headers
ii linux-headers-4.15.0-20 4.15.0-20.21 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-20-generic 4.15.0-20.21 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-29 4.15.0-29.31 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-29-generic 4.15.0-29.31 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-generic 4.15.0.29.31 amd64 Generic Linux kernel headers
ii linux-image-4.15.0-20-generic 4.15.0-20.21 amd64 Signed kernel image generic
ii linux-image-4.15.0-29-generic 4.15.0-29.31 amd64 Signed kernel image generic
ii linux-image-generic 4.15.0.29.31 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 4.15.0-29.31 amd64 Linux Kernel Headers for development
ii linux-modules-4.15.0-20-generic 4.15.0-20.21 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-29-generic 4.15.0-29.31 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-extra-4.15.0-20-generic 4.15.0-20.21 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-extra-4.15.0-29-generic 4.15.0-29.31 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii syslinux-common 3:6.03+dfsg1-2 all collection of bootloaders (common)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu9 amd64 Bootloader for Linux/i386 using MS-DOS floppies

~$ uname -r
4.15.0-29-generic



~$ sudo lshw -C display
[sudo] Mot de passe de geco :
*-display
description: VGA compatible controller
produit: GP102 [GeForce GTX 1080 Ti]
fabriquant: NVIDIA Corporation
identifiant matériel: 0
information bus: pci@0000:01:00.0
version: a1
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
ressources: irq:125 mémoire:d3000000-d3ffffff mémoire:c0000000-cfffffff mémoire:d0000000-d1ffffff portE/S:3000(taille=128) mémoire:c0000-dffff
*-display
description: VGA compatible controller
produit: HD Graphics 530
fabriquant: Intel Corporation
identifiant matériel: 2
information bus: pci@0000:00:02.0
version: 06
bits: 64 bits
horloge: 33MHz
fonctionnalités: pciexpress msi pm vga_controller bus_master cap_list
configuration: driver=i915 latency=0
ressources: irq:126 mémoire:d2000000-d2ffffff mémoire:b0000000-bfffffff portE/S:5000(taille=64)


In this case we can see that the driver in use is the default nouveau driver, but that seems ok to me since no other driver is installed at that time...

Bashing-om
August 1st, 2018, 12:40 AM
k.pf; well ... well ...

I am aware that there has been ongoing issues with the GTX series proprietary drivers. The kernel 4.15.0-29 fixed many of these issues. Again there is a new crop of bug reports for the GTX cards. One solution is to try the updated driver from our trusted PPA.

Let's see what does result when installing from the PPA:


sudo apt purge nvidia
sudo rm /etc/X11/xorg.conf
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt full-upgrade
sudo ubuntu-drivers autoinstall


reboot to see the effect.



maybe Yes ?

k.pf
August 1st, 2018, 09:43 AM
Hey !

So I just tried the code you gave and it still gives the same result...

oldfred
August 1st, 2018, 04:38 PM
Bashing-om commands look correct.

But you have this:

rc dkms 2.3-3ubuntu9 all Dynamic Kernel Module Support Fra


try:
sudo apt install dkms
Then rerun commands and report any errors, messages.

Bashing-om
August 1st, 2018, 08:16 PM
k.pf; And ....

Last night there was a huge update for the 390 driver in the software repository:


sysop@x1810:~$ apt list nvidia-driver-390
Listing... Done
nvidia-driver-390/cosmic,now 390.77-0ubuntu1 amd64 [installed]
sysop@x1810:

where the version offered in the repo is the same as what is in our PPA ( there is another updated version available for testing ).

It might be a good thing to look at the newest version for the listed bug fixes:
https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/390.77-0ubuntu1. This gives us 3 options to try. The ongoing bug for this issue is:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1752053

still,


no defined goal in sight

k.pf
August 2nd, 2018, 11:52 AM
try:
sudo apt install dkms
Then rerun commands and report any errors, messages.

I am sorry, but when am I supposed to run the "rc dkms 2.3-3ubuntu9 all Dynamic Kernel Module Support Fra" command?


Last night there was a huge update for the 390 driver in the software repository

I did an installation from the "Software & updates" interface and it still crashes while booting.

However, I did try to run through recovery mode and when I use the command "nvidia-smi", it shows me that the driver is 390.77 and when I use "lshw -c video" it says that the driver that is being used is nvidia. So I guess the installation was right and that the driver works while using the recovery mode. Maybe the problem comes from the boot options? I don't really know the difference between the recovery mode and the standard mode. However, I have tried to use the nomode set before and it usually crashes my boot after reboot so I have to boot repair.

I don't know if that was relevant but that may be a hint, don't you think?

oldfred
August 2nd, 2018, 02:44 PM
The rc shows you have uninstalled dkms somehow.
So you need to reinstall it with the command posted.
And then rerun the set of nVidia install commands.

Yellow Pasque
August 3rd, 2018, 04:23 PM
I'm not sure if it is relevant to your issue, but why are you still booting the -20 kernel?

Kernel version: 4.15.0-20-generic
I can see you have the latest -29 kernel installed and the system should have automatically switched to that.

k.pf
August 7th, 2018, 10:07 AM
Alright, so I installed the latest nvidia driver (390.77) after the repository update, and then I edited the grub file so as to boot in nomodeset and this time it seems to work.

I don't know why now, but I think I'll stick to that...

Thanks a lot !

oldfred
August 7th, 2018, 04:30 PM
Once you install nVidia, you should not need the nomodeset boot parameter?