1

I recently installed Ubuntu 18.04.3 LTS on my Dell G3 15 that has Nvidia Geforce GTX 1050Ti Mobile. Following the procedures and ways to install Nvidia drivers, I came across the following:

  1. GUI Method: Through "Software and Updates" utility, under "Additional Drivers"

  2. Command Line: using the command sudo ubuntu-drivers devices followed by sudo ubuntu-drivers autoinstall

  3. via PPA: using the command sudo add-apt-repository ppa:graphics-drivers/ppa followed by the same sudo ubuntu-drivers devices

I followed the third procedure, as others were non-free but this showed the ndivia-driver-440, being the latest as recommended and was free.

sudo ubuntu-drivers devices

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C8Csv00001028sd0000086Fbc03sc02i00
vendor : NVIDIA Corporation
model : GP107M [GeForce GTX 1050 Ti Mobile]
driver : nvidia-driver-430 - distro non-free
driver : nvidia-driver-410 - third-party free
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-415 - third-party free
driver : nvidia-driver-440 - third-party free recommended
driver : nvidia-driver-435 - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin

Finally it asked me to enter a pass as I had my "Secure boot" enabled, saying it will be required upon the reboot. Although the installation fairly well without any hiccups, the thing I do not understand is when I had rebooted and saw Nvidia X Server Settings in my application, starting it showed only the "Prime Profiles" section on the left pane and it did not show other options. Also, even though I had selected Nvidia under the profile section, the Ubuntu>Settings>Details>About still shows "Intel UHD Graphics 630" as the display driver:

enter image description here

enter image description here

And finally, when I used the terminal to see the display details. I got this:

enter image description here

Normally, the output of this command shows "drivers" in "configuration" before "latency", just as it does for Intel showing "i915" but it did not show any drivers for Nvidia. Also, the display showed to be UNCLAIMED.

Was there something I missed in the installation of the drivers, and what can I do to properly install them? I would also want to install the Nvidia cuDNN, so any help in installation of that would also be greatly appreciated.

Waqas Kayani
  • 21
  • 1
  • 3

2 Answers2

1

You need to disable Secure Boot to load Nvidia proprietary drivers, or sign them that is not quite straight forward.

See this question for more details: Why do I get “Required key not available” when install 3rd party kernel modules or after a kernel upgrade?

Also note that ALL proprietary Nvidia drivers are non-free. They are erroneously shown as "free" from a PPA.

Pilot6
  • 92,041
1

Properly manual install using the Official Nvidia.run driver step by step. Also solves the booting problems: Starting User Manager for UID 121... and /dev/sda1: clean

  1. Identify your Nvidia VGA card.

    $ lshw -c display
    
  2. Download the Official Nvidia driver.

    Rename the file to ndriver.run (optional, for simplification)

  3. The following prerequisites are required to compile and install Nvidia driver:

    $ sudo apt install build-essential libglvnd-dev pkg-config
    
  4. Disable Nouveau driver.

    $ sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf"
    $ sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nouveau.conf"
    

    Confirm the content of the new modprobe config file:

    $ cat /etc/modprobe.d/blacklist-nouveau.conf
    blacklist nouveau
    options nouveau modeset=0
    
  5. Reboot the system.

    $ reboot
    
  6. Open the TTY terminal bypassing the black screen errors.

    After the BIOS screen, at the Ubuntu's purple screen press Esc
    select Advanced options for Ubuntu
    select the second line: (recovery mode)
    select root and press double Enter

  7. Stop the current display server. Yeah, Nouveau is alive...

    $ sudo telinit 3
    
  8. Run the Official Nvidia driver.

    $ sudo bash /home/username/Downloads/ndriver.run
    

    note: respect uppercases

    You should select the affirmative option in all cases. for more information about each step on this guided installation process, read this.

  9. Reboot the system.

    $ reboot
    

If everything done right, you should see your graphic card model on Configuration/About window.

rck368
  • 21