Install and configure the NvidiaOptimus driver on Ubuntu

Source: Internet
Author: User
NvidiaOptimus is a hybrid GPU system that uses & ldquo; dual-graphics switching & rdquo; technology, but it has long been subject to many inconveniences and restrictions on Linux systems. After several years of waiting, Ubuntu14.04, which is equipped with the new kernel, finally achieved the compatibility of Dedicated drivers that are very easy to install. This article first introduces the background for readers who are not familiar with NvidiaOptimus and then shows the entire installation process. For experienced Xorg users with rich configuration experience, you can directly jump to the installation section.

Nvidia Optimus is a hybrid GPU system that uses the "dual-graphics switching" technology, but it has long been subject to many inconveniences and restrictions on Linux systems. After several years of waiting, Ubuntu 14.04 with the new kernel eventually achieved compatibility with dedicated drivers that are easy to install. This article first introduces background to readers who are not familiar with Nvidia Optimus and then shows the entire installation process. For experienced Xorg users with rich configuration experience, you can directly jump to the installation section.

NVIDIA Optimus dual graphics Ubuntu driver problem http://www.linuxidc.com/Linux/2011-07/39056.htm

Ubuntu user-installed graphics card Driver Nvidia Driver 334.21 http://www.linuxidc.com/Linux/2014-03/98097.htm

How to install the latest NVIDIA 13.10 driver http://www.linuxidc.com/Linux/2013-11/93018.htm in Ubuntu 331.20

How to install the Nvidia 337.12 Beta graphics card driver in LinuxHttp://www.linuxidc.com/Linux/2014-04/99864.htm

How do Ubuntu users install Nvidia's latest graphics driver http://www.linuxidc.com/Linux/2014-05/101288.htm

Background

For those who are not familiar with Nvidia Optimus, it is necessary to switch between the on-board Intel Graphics chipset and the megada graphics card, which is known as "GPU switching" and has more powerful processing capabilities. The main purpose of this operation is to extend the service life of the notebook battery so that Nvidia GPU is disabled when it is not needed. The benefits are obvious. For example, if you just want to simply type, the laptop battery can last 8 hours. If you watch HD videos, you may only have 3 hours. This is often the case when using Windows.

I bought a netbook (Asus VX6) a few years ago. The most stupid mistake I made was not to check the Linux driver compatibility. In the past, this was not a problem, especially for a netbook-sized device. Even if some drivers are not ready for use, I can find other ways to make them work normally, such as installing specialized modules or using reverse port. This is my first time-my computer is equipped with a Nvidia ION2 graphics card.

At that time, Nvidia's Optimus hybrid GPU hardware was still quite new, and I did not foresee any restrictions on running Linux on this machine. If you read this, you may feel the same pain if you have experience with Linux and bought a laptop a few years ago.

[Bumblebee] [4] the project has not been improved until recently because of the Linux system's support for hybrid graphics. In fact, if the configuration is correct, you can use the command line interface (such as "optirun vlc") to enable your selected application to use the Nvidia graphics card function, however, it makes the functions of HDMI very different. (Note: The Bumblebee project is to move Nvidia's Optimus technology to Linux .)

The reason why I use the phrase "if the configuration is correct" is that, in fact, in order to make it play a good performance, it is often not only possible to change the Xorg configuration through several attempts. If you have never used ppa-purge or run commands such as "dpkg-reconfigure-phigh xserver-xorg", I can assure you that the Bumblebee patching process will benefit you a lot.

After waiting for a long time, Nvidia released the Linux driver supporting Optimus, but we still don't get the real support for dual-graphics switching. However, with Ubuntu 14.04, nvidia-prime, and nvidia-331 drivers, anyone can easily switch between Intel chips and Nvidia graphics cards. Unfortunately, for the switch to take effect, the X11 Windows system needs to be restarted (implemented by logging out ).

To reduce this inconvenience, there is a small program for fast switching. I will give it later. The installation of this driver has become a breeze, and HDMI can work properly, which is enough to satisfy me.

Install the Nvidia Optimus driver

To describe this process more quickly, I suppose you have installed Ubuntu 14.04 or Mint 17.

As a system administrator, I recently found that 90% of Linux operations are executed faster through the command line, but this time I recommend using the "Additional Drivers" application, you may have used it to install the NIC or sound card driver.

Note: All the following commands are in ~ # Run the command at the prompt, which requires the root permission. Before running the command, either use "sudo su" (switch to the root permission) or run the command at the beginning of each command.

You can also run the following command on the command line to install the tool:

  1. ~ # Apt-get install nvidia-331 nvidia-settings nvidia-prime

Next, restart. Make sure that you have not installed a Nvidia driver similar to Bumblebee or other loaded drivers. Otherwise, your X11 may be damaged. If you have not installed the Bumblebee program before, run the following command before installing the nvidia-331 and nvidia-prime:

  1. ~ # Apt-get purge libvdpau-va-gl1 bumblebee * nvidia *

For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-10/107551p2.htm

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.