Use Bumblebee to control NVIDIA dual-graphics (Ubuntu)

Source: Internet
Author: User
Introduction Nvidia's dual-graphics switching technology is Optimus (Optimus Prime). Unfortunately, it can only be implemented under win7 and vista. There is no corresponding technology in Linux, and of course Apple does not. This causes the independent video card to be enabled all the time, the video card is heated up, and the fan turns crazy, but there is no normal input. Usually, the laptop battery can be used for 4 hours in Win7, and it takes about two hours for Ubuntu to run out. AMD has already developed a catalyst for Linux for the ATI graphics card. It supports switching between card a and intel. N card users only

Introduction

Nvidia's dual-graphics switching technology is Optimus (Optimus Prime). Unfortunately, it can only be implemented under win7 and vista. There is no corresponding technology in Linux, and of course Apple does not. This causes the independent video card to be enabled all the time, the video card is heated up, and the fan turns crazy, but there is no normal input. Usually, the laptop battery can be used for 4 hours in Win7, and it takes about two hours for Ubuntu to run out. AMD has already developed a catalyst for Linux for the ATI graphics card. It supports switching between card a and intel. N card users can only talk about it.

Optimus technology does not rely on the complex hardware structure of the crossfire graphics card implementation. Independent graphics cards are rendered on demand and transmitted to integrated graphics cards. Integrated graphics cards are used for display. When the notebook is powered by power, the independent graphics card is turned off to prolong battery life.

Bumblebee tries to simulate the behavior of Optimus technology. When needed, it uses an independent video card for rendering and disables it when not used. The current version only supports on-demand rendering, and the power management function is still under development.

Test environment:

Acer Aspire 5750G
NVIDIA GeForce GT630M
Ubuntu 12.04 x86_64

1. Update the video card information, which is very important; otherwise, an error may be identified.

Region ~ Sudo update-pciids
[Sudo] password for congbo:
Downloaded daily snapshot dated 2012-09-06 03:15:02

Ii. view video card information

Before update:

Region ~ Lspci | grep-I vga
00:02. 0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
0:00. 0 VGA compatible controller: NVIDIA Corporation Device 0de9 (rev a1)
After update:

Region ~ Lspci | grep-I vga
00:02. 0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
. 0 VGA compatible controller: NVIDIA Corporation GeForce GT 630 M (rev a1)
The updated version correctly identifies the video card model.

The end of the Nvidia card information is rev a1, indicating that the unique display has been disabled.

3. Unplug the power adapter and view Power Consumption

Region ~ Grep rate/proc/acpi/battery/BAT0/state
Present rate: 2613 mA
Average about 2000

4. Install bumblebee

Sudo add-apt-repository ppa: bumblebee/stable
Sudo apt-get update
Sudo apt-get install bumblebee-nvidia

Join bumblebee Group

Sudo usermod-a-G bumblebee $ USER

You do not need to manually join the bumblebee Group. The current user has been added to the bumblebee Group during installation. The setting takes effect after cancellation or restart.

➜  ~  grep congbo /etc/groupadm:x:4:congbocdrom:x:24:congbosudo:x:27:congbodip:x:30:congboplugdev:x:46:congbolpadmin:x:109:congbocongbo:x:1000:sambashare:x:124:congbobumblebee:x:1001:congbo

Before cancellation:

Region ~ Groups
Congbo adm cdrom sudo dip plugdev lpadmin sambashare

After cancellation:

Region ~ Groups
Congbo adm cdrom sudo dip plugdev lpadmin sambashare bumblebee

Bumblebee version:

➜  ~  bumblebeed --versionbumblebeed (Bumblebee) 3.0.1Copyright (C) 2011 The Bumblebee ProjectLicense GPLv3+: GNU GPL version 3 or later 
 
  //
  gnu.org/licenses/gpl.html>.This is 
  free software: you are 
  free
   to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.
 

V. Test Results

➜  ~  lspci| grep -i vga00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)01:00.0 VGA compatible controller: NVIDIA Corporation GeForce GT 630M (rev ff)

The end of the Nvidia card information is rev ff, indicating that the unique display has been disabled.

Unplug the power adapter again to view power consumption.

➜  ~  grep rate /proc/acpi/battery/BAT0/statepresent rate:            1523 mA

An average of about 1000, 2000-> 1000, the fan has been crazy before, and now there is basically no movement.

Bumblebee is used to disable nvidia independent graphics cards. When you need to use an exclusive display, use the optirun program name to manually enable nvidia to run programs that require acceleration, such as optirun vmware.

Run the glxgears or glxspheres test on both the centralized display and the dedicated display. Take glxgears as an example:

➜  ~  glxgearsRunning synchronized to the vertical refresh.  The framerate should beapproximately the same as the monitor refresh rate.301 frames in 5.0 seconds = 60.107 FPS300 frames in 5.0 seconds = 59.869 FPS300 frames in 5.0 seconds = 59.856 FPS
➜  ~  optirun glxgears2284 frames in 5.0 seconds = 456.677 FPS2358 frames in 5.0 seconds = 471.540 FPS2275 frames in 5.0 seconds = 454.942 FPS

Enable N card settings:

optirun nvidia-settings -c :8

Tips:

Currently, the I series is generally configured with dual-graphics cards. Do not install the nvidia driver on your own. For a dual-graphics machine, you must stop the integrated graphics card to correctly install the nvidia driver.
Do not run with the root user, preferably with sudo.
If the installation fails, you may not be able to access any interface, including the text interface. Solution: fix the IP address of the host and enable the ssh service to ensure that the host can be accessed through ssh from another host on the LAN. And then try again. If it fails, ssh enters the host, uninstalls the nv Driver (sudo apt-get autoremove nvidia-current), and then restarts.
When the dual-graphics desktop is tossing this problem, pay attention to connect the display to the output port of the motherboard, otherwise it will be useless.
After the installation, "system-> System Management-> nvidia x Server Settings" should not be moved.

Some bios can turn off the exclusive display, desktop rendering 3D, etc. The I card is competent. (If Windows 7 is running in the I-card virtual machine, aero effects cannot be enabled)

Link: http://www.linuxidc.com/Linux/2012-09/69666.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.