Forum » The Geeks Corner » Linux » Ubuntu - Xubuntu » Ubuntu 18.04 LTS - Install Nvidia Drivers - Fix Black Screen

Ubuntu 18.04 LTS - Install Nvidia Drivers - Fix Black Screen

  • Installing Nvidia driver in Ubuntu / Xubuntu 18.04 Bionic LTS

    To start ALWAYS HAVE A BACK-UP OF EVERYTHING YOU EDIT, CHANGE OR ADD.

    I use bootable DVD's or USB drives with Paragon Hard Drive Manager 15, Other Linux OS's running live from a DVD or USB.
    For me Paragon is the best they only make it for Windows but you can boot to a USB or DVD and make system images of your Linux installs.
    With a system image if anything goes wrong you can just restore the working image!

    Note:
    In 18.04 the apt-get has changed to just "apt" but apt-get still works. So if you use just "apt" and it does not work switch to "apt-get"

    Install Nvidia drivers on Ubuntu / Xubuntu 18.04 bionic LTS.
    1. Type or copy & paste this into a terminal window.
    sudo add-apt-repository ppa:graphics-drivers/ppa

    2. Type or copy & paste this into a terminal window.
    sudo apt update

    3. Run this to identify your graphic's card/s or to make sure Ubuntu is seeing the right card/s.
    It will suggest the best drivers for your system.
    Type or copy & paste this into a terminal window.
    ubuntu-drivers devices

    You should see something like this.
    == /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.1 ==
    modalias : pci:v000010DEd000010F7sv00003842sd00002383bc04sc03i00
    vendor : NVIDIA Corporation
    driver : oem-audio-hda-daily-dkms - third-party free

    == /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0 ==
    modalias : pci:v000010DEd00001E07sv00003842sd00002383bc03sc00i00
    vendor : NVIDIA Corporation
    driver : nvidia-driver-415 - third-party free
    driver : nvidia-driver-410 - third-party free
    driver : nvidia-driver-430 - third-party free recommended
    driver : nvidia-driver-418 - third-party free
    driver : xserver-xorg-video-nouveau - distro free builtin

    If you use "430" and end up with a BLACK SCREEN you're probably using "Display Port or Display port to HDMI cables.
    You can fix it by using only a HDMI cable. I use "418" because I use three monitors my card is all Graphic's ports with one old school HDMI port.

    At this point you can open "Software & Updates" go to "Additional Drivers" and select the driver you want to install.


    Or to continue in terminal.
    3. (FOR AUTO INSTALL) type or copy & paste this into a terminal window.
    sudo ubuntu-drivers autoinstall

    4.
    To choose your driver number you want. Type or copy & paste this into a terminal window.
    sudo apt install nvidia-418

    Then restart the system all should be good.

    Any questions just ask!
    My System:
    Case: Thermaltake Core V71 Tempered Glass.
    Motherboard: Asus Prime TRX40-Pro.
    CPU: AMD Threadripper 3970X@Auto OC.
    Water Block: EK Velocity sTR4 copper & nickel.
    Radiator: Thermaltake Pacific CL429 64mm pure copper.
    Water Pump & Res: 320 GPH Pond Pump, 5 Gallon Reservoir.
    Memory: 64 gigs Corsair Vengeance DDR4-3600 18-19-19-39 CR1.
    Video Card: Asus TUF AMD RX 6900XT OC 16 gigs
    Hard Drives: 1 Crucial 256gig M550, 2 Crucial 2TB SSD's,
    1 WD 10TB 256meg cache, 1 WD 5TB 128meg cache, 2 Seagate 4TB 256meg cache.
    Power Supply: Corsair 1050 watt SINGLE RAIL.
    OS's: LINUX Xubuntu 20.04 LTS x64 and Windows 10 Pro.
      July 29, 2019 1:01 PM PDT
    0