Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jmkim/6d05d552ef4f39bdd08176909e5cbb31 to your computer and use it in GitHub Desktop.
Save jmkim/6d05d552ef4f39bdd08176909e5cbb31 to your computer and use it in GitHub Desktop.

How to install NVIDIA kernel module on Ubuntu 16.04 LTS with UEFI

This will resolve the black screen which occurs while booting, or the screen freezing which is occurred by nouveau.

Ready for step

  • Turn off SecureBoot in UEFI settings in your mainboard.
  • Download a driver for your graphic card. (Visit NVIDIA Support page.)
  • Install DKMS(Dynamic kernel module support, optional).
user@ubuntu:~$ sudo apt install dkms

Following the step

Disable the nouveau

  1. Add nouveau to kernel module blacklist.
user@ubuntu:~$ sudo vim /etc/modprobe.d/blacklist-nouveau.conf

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
  1. Update initramfs image of your system.
user@ubuntu:~$ sudo update-initramfs -u
  1. Reboot your system. Now you can figure out the display kernel module has been going out.

Install the NVIDIA driver

  1. Stop the lightdm (or any display manager of your system).
user@ubuntu:~$ sudo service lightdm stop
  1. Install the driver.
    1. Accept the NVIDIA Software License
    2. If you got a message like..
      • The distribution-provided pre-install script failed!: Just select "Continue installation".
      • About DKMS registration: Select "Yes".
      • Your system may not be set up for 32-bit compatibility: Select "OK" if you wanna continue installation.
      • Secure Boot or signing key: Turn off SecureBoot in UEFI settings in your mainboard first.
  2. Reboot your system.

Troubleshooting

When I tried to sign in, greeter (login screen) just refreshes and loop forever..

  • Turn off SecureBoot in UEFI settings in your mainboard.

Help me

Jongmin Kim (kdzlvaids__at__gmail.com)

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment