Kill Nouveau install Linux nvidia graphics driver __linux

Source: Internet
Author: User
kill Nouveau install linux nvidia graphics driver

First explain what is Nouveau, why some systems install N card drivers will be prompted "Error:the Nouveau kernel driver is currently in use by your system." This
Driver is incompatible with the NVIDIA driver ... "error.

The Nouveau is an open source 3D driver developed by a third party for Nvidia graphics, and has not been recognized and supported by NVIDIA. Although Nouveau Gallium3D is far from being able to compete with Nvidia's official private drive, it makes it easier for Linux to deal with a variety of sophisticated NVIDIA graphics environments, allowing users to install the system to the desktop and have a good display, so Many Linux distributions default to integrated Nouveau drivers and are installed by default when they encounter Nvidia graphics cards. This is especially true for Enterprise Linux, where almost all enterprise Linux distributions that support the graphical interface will nouveau revenue.

But for personal desktop users, the growth phase of the Nouveau is not perfect, and the Enterprise version is not the same, individual users in addition to the normal display graphics interface often need some 3D special effects, Nouveau most of the time can not be completed, and users in the installation of Nvidia official private drive Nouveau again become a hindrance, do not kill Nouveau installation always error. The error prompts see the first paragraph of the article.

The usual steps for installing Linux graphics drivers are:

(1) Download the appropriate driver, whether nvida or ATI are recommended to the official download
(2) If the download is a source file will need to compile the installation, but now the official Linux graphics driver is more than the. Run suffix, which is directly in the command line./softname.run run to install.
(3) Generally in the second step of the operation will prompt you to close the X window, the following figure:

Go to command line mode kill GDM or KDE reinstall is generally no problem, and the installation of Nouveau Nvdia graphics machine also a step is the need to close the Nouveau, which is the problem to be solved in this article.

Here are the steps to turn off Nouveau and install the NVIDIA graphics driver:

(1) Add Driver to blacklist

Edit/etc/modprobe.d/blacklist.conf, add blacklist after file Nouveau

(2) The root user runs the following two commands:

mv/boot/initramfs-$ (uname-r). img/boot/initramfs-$ (uname-r). Img.bak
Dracut-v/boot/initramfs-$ (UNAME-R). IMG $ (UNAME-R) The above two commands are backup and rebuild Initramfs, which requires sudo if your Linux is a Debian or Ubuntu system that runs commands.   This useless (3) reboot system to init 3 (text mode), can also go into the graphics desktop and run init 3 into text mode, and then install the download driver is no problem, installation command example:./nvidia-linux-x86-285.05.09.run The installation process can be completed as per the prompts. Of course, before you install, you can also confirm that the nouveau has been killed by you, using the command: Lsmod | You can set your desktop effect by restarting the system after the grep nouveau installation is complete.   And in the system – preferences also have a selection of Nvidia X Server settings. When the Linux kernel starts the system, must find a root file system, can successfully boot, and this file is init,init PID process constant 1. In the process of shipment init follows the kernel, which is used to guide other main programs to complete the boot. It is recommended that you review the information about INITRAMFS so that it is easy to understand why you install a graphics driver or build (compile) Initramfs.

If the driver is updated, there are two ways to install, one is to download the Nvidia-linux-x86-*.run installation. Another way is to directly let the driver to update, assuming that there are 11 version, but there is no 19 version, can be installed when the update parameter--update, the installer will automatically connect to the official server to download the new version and then install. Perform:

SH Nvidia-linux-x86-100.14.11-pkg1.run--update


13.OK.

14. If you want to uninstall the Nvidia official drive, execute:

sudo sh ***.run--uninstall

15. If you want to install a restricted drive, first edit blacklist.conf and execute:

sudo gedit/etc/modprobe.d/blacklist.conf

Delete the following sections and save:

Blacklist VGA16FB
Blacklist nouveau
Blacklist RIVAFB
Blacklist NVIDIAFB
Blacklist RIVATV

Then execute:


sudo apt-get install nvidia-*
sudo apt-get install Xserver-xorg-video-nouveau

After reboot, select the appropriate restricted drive in "additional drive" and activate it.

Ok.
Nouveau's DRM components will likely enter kernel 2.6.33 focus on us:

Nouveau is an open-source Nvidia graphics driver. In contrast, Nvidia's official drive is not open source, and the XF86-VIDEO-NV function of open source is weak. In contrast to the official drive, the Nouveau has the advantage of supporting the Kernel Mode Setting features of the new kernel. In Fedora 12, using the Nouveau driver to start the kernel will be the first time to directly enter the best resolution of the display, start the interface (whether text or graphics) and X, GDM between the switch, with CTRL+ALT+FN in the X and the terminal switch between the complete "flicker free", so greatly enhanced with experience.

However, its DRM module section has not entered the kernel's code tree. Yesterday, I saw a message on the Phoronix Web site to the effect that Linus saw Fedora offer Nouveau for a long time, and I hope Nouveau's DRM goes into the kernel. Nouveau's defenders and Fedora's defenders explained that the main reason was that Nouveau relied on reverse engineering to understand some of the internal mechanisms of the NV GPU, using some microcode, and that these microcode-related code might have copyright problems entering the kernel. Linus replied that these reasons are BS (from several Linus speeches to see this is really "bullish" ah), Fedora is not completely without copyright issues of the distribution. is then the above reason is the BS, otherwise releases later does not distribute Nouveau to drive.

Today I see a message above, this is the following: Red Hat company David Airlie and Ben Skeggs to the Nouveau kernel part of the code was modified, microcode will use the kernel of the firmware interface to load. This avoids the copyright issue.

Then quote the original sentence:

In this pull request, there are the Nouveau driver that are set to go on the Linux 2.6.33 kernel under the staging area

Perhaps in 2.6.33, we can use the Nouveau drive, which is formally entering the kernel, to acquire a variety of new features.

PS:NV official drive does not support KMS, but supports OpenCL (g80+), Video acceleration Support XVMC (g80-) and Vdpau (g80+). For these features, Nouveau does not support it. In fact, even the 3D function Nouveau is not directly supported. The current development trend is the support of OpenGL (perhaps even D3D), OPENVG, and OpenCL by Mesa and the Gallium3D. The graphics driver only completes the basic interaction with the video card. The recent Kernel image part has developed into a bright spot, page flipping ioctl into 2.6.33 ("it is said to be useful for both X and Wayland), and now INTEL/ATI/NV's KMS drive is constantly improving, and Linux users ' graphs The shape experience is bound to strengthen gradually.

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.