Ubuntu16.04 some pitfalls and solutions when installing the NVIDIA driver, ubuntu16.04nvidia

Source: Internet
Author: User

Ubuntu16.04 some pitfalls and solutions when installing the NVIDIA driver, ubuntu16.04nvidia

In the past few days, I have deployed a work environment on a newly purchased notebook. When installing the NVIDIA driver, I encountered many pitfalls and reinstalled them many times, I read a lot of analysis from the Ubuntu Forum and other sources, and finally solved one problem after another. The process was quite difficult. Because there are many answers on the Internet, most of them cannot solve the problem perfectly, so I decided to write a blog to summarize some common problems and the effective solutions I tested in my own hands, it would be better if we could answer some of the latecomer's questions.

First, let's introduce my installation process. We use the PPA installation method:

Sudo add-apt-repository ppa: graphics-drivers/ppa

Sudo apt-get update

Sudo apt-get install nvidia-378 nvidia-prime

Several pitfalls I encountered:

1. Loop Logon

The main result is that the login interface still jumps back after the password is entered. There is no limit to the loop. This is what I am using. for problems encountered during the installation of the run file, here is an effective solution:

When entering the installation command, do not simply enter sudo... run, but enter:

Sudo./NVIDIA. run-no-x-check-no-nouveau-check-no-opengl-files

-No-x-check: Disable the X service when the driver is installed.

-No-nouveau-check: nouveau is disabled when the driver is installed.

-No-opengl-files: only the driver file is installed, and the OpenGL file is not installed.

In this way, reboot will not cause loop logon problems.

2. Restart the black screen

The main manifestation is that after reboot, the graphic interface cannot be started, but the screen is black, but the command line interface can also be accessed. Effective solutions:

Sudo cp ~ /Tmp/xorg. conf. nvidia-xconfig-original/etc/X11/xorg. conf

Sudo gedit/etc/X11/xorg. conf

Make sure that the content of xorg. conf. nvidia-xconfig-original (or in the etc/X11 path) and xorg. conf is:

Section "ServerLayout"     Identifier "layout"     Screen 0 "nvidia"     Inactive "intel" EndSection   Section "Device"     Identifier "intel"     Driver "intel"     BusID "PCI:0@0:2:0"     Option "AccelMethod" "SNA" EndSection   Section "Screen"     Identifier "intel"     Device "intel" EndSection   Section "Device"     Identifier "nvidia"     Driver "nvidia"     BusID "PCI:1@0:0:0"     Option "ConstrainCursor" "off" EndSection   Section "Screen"     Identifier "nvidia"     Device "nvidia"     Option "AllowEmptyInitialConfiguration" "on"     Option "IgnoreDisplayDevices" "CRT" EndSectionThen reboot can solve the black screen problem. 3. the driver does not work mainly because it can enter the graphic interface, but the driver does not work. Either nvidia-smi or nvidia-prime is invalid. The possible cause of this problem is that the Secure Boot is not Disable (it prompts you to Disable the driver when installing it). The solution is also very simple. After the driver is installed, during reboot, press any key on the full blue interface when you start the system, select the second item, that is, change the Secure Boot status, and then Disable it based on the prompt, and then boot. If you want to Enable this item later, enter the command: sudo mokutil -- enable-validation and then reboot. The full blue interface will appear again at startup, and the second item is still selected, follow the prompts to Enable and then boot. In general, Ubuntu and NVIDIA are still quite difficult to deal with. The above three problems are also the most common three problems. Therefore, we will record the problems and solutions and hope to help you.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.