【教程】ubuntu 11.10下使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 实测GT540

曾巧文 发布于:2012-3-4 23:56 分类:Linux学习 标签: 电影 Ubuntu linux

     注:用NVIDIA双显卡的电脑用户都纠结,本本只使用集成显卡,独立显卡不能用,装独显驱动经常造成系统崩溃,到论坛上看也没找到合理的办法,找了好久找到这个方法,希望对大家有帮助!提示在任何桌面按住快捷键:Ctrl+Alt+T可以进入shell模式,就是平常说的控制台模式,然后粘帖下面的命令;

本教程测试环境如下:                                                                                                          
本本 :acer 5750G
显卡:GT540


第一步:                                                                                                                           


代码:
sudo update-pciids #更新显卡信息非常重要,否则可能识别出错
lspci -v | grep -i vga #察看显卡



我的显卡信息如下代码:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor 
Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] 
(rev ff) (prog-if ff)


我们知道目前装独立显卡驱动有成功的,不过也挺复杂,想想没必要,因为对于这种双显卡的机器,一般集成显卡就很强了,linux下没有大型游戏,顶多就看看电影,足矣,包括开特效,都没问题,好像独立显卡有些多余,可能是我的cpu稍强一点吧,,但是我以前的上网本还可以看720p的高清电影呢,所以我认为即使处理器差点也不需要用独立显卡,除非你用显卡实现某些特殊任务,一句话,你电脑能正常使用,可以什么都不管。如果你非得想管一管,怎么办,有办法,虽然nvidia的optimus不打算支持linux,但是有人解决了链接在这里:http://bumblebee-project.org/,然而对于ubuntu,操作很简单。下面是英文原版

Bumblebee 3.0 “Tumblewed” Nvidia Optimus GPU Switching For Linux has been Released – How to Install Bumblebee 3.0 on Ubuntu
Bumblebee 3.0 Nvidia Optimus GPU Switching For Linux has been Released on January 19, 2012. The Bumblebee Project proudly presents version 3.0 of Bumblebee, a project aimed to support NVIDIA Optimus technology under Linux

Actually, Nvidia Optimus GPU switching is officially only supported on Windows 7, but the Team Bumblebee Project also provide for Linux too. Great job Bumblebee Project 

Nvidia Optimus technology is available for notebooks or laptops that are used to increasebattery life by switching OFF dedicated GPU when it’s not necessary and then switch ON again when needed. When a dedicated GPU from integrated graphics chip that is used. Nvidia Optimus

Here it is the release higligth of Bumblebee 3.0 :

acpi_call has been replaced with bbswitch and vga_switcheroo
Nouveau support for the Ubuntu PPA package
Automatic power management which also survives suspend
Improved error detection and reporting
Better system integration
“optirun –status” will now show the current status of Bumblebee and the secondary GPU on your system
Xorg configuration greatly simplified, provided defaults usually work out of the box.
Server / client re-written in C which provides increased performance and reliability
Automatic power management which also survives suspend
Improved error detection and reporting
Better system integration
Switch to Upstart startup mechanism
You can found Complete changelog of Bumblebee 3.0 here

How to install Bumblebee 3.0 “Tumbleweed” on Ubuntu 11.10 Oneiric Ocelot

To install Bumblebee 3.0 “Tumbleweed” on ubuntu 11.10 see follow guide below:

Open terminal and add ppa Bumbleebe ”Tumbleweed”, then install

第二步:注意要一行一行复制粘贴                                                                                       
sudo add-apt-repository ppa:bumblebee/stable 
sudo apt-get update 
sudo apt-get install bumblebee 



You may also want to use newer drivers (particularly if having recent hardware), then run this before installing Bumblebee:


第三步:                                                                                                                              

sudo apt-get purge nvidia-current
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates


After installation, allow yourself to use Bumblebee (replace $USER by your username):
第四步:                                                                             
sudo usermod -a -G bumblebee $USER



第五步:重启                                                                    
Then, reboot your ubuntu.

To see if it works, run during around 30s:

glxspheres

Then, run it with optirun, and compare:

optirun glxspheres

Be aware that as Bumblebee is using low-level hardware informations, it is impossible to run it in a VM.

If you want to run 32-bit apps in Oneiric, install:

sudo apt-get install virtualgl-libs:i386 libgl1-mesa-glx:i386 libc6:i386

To report issues, please read http://wiki.Bumblebee-Project.org/Reporting-Issues

To install Bumblebee 3.0 on Arch Linux follow links below:

AUR package: http://aur.archlinux.org/packages.php?ID=49469
Instructions in the ArchWiki: https://wiki.archlinux.org/index.php/Bumblebee

结果:                                                                                                                               


支持nvidia的开源驱动和官方驱动,不过最好按照上面网址中说的做。
测试一下显卡
代码:
glxspheres #没开独显

代码:
optirun glxspheres #开独显

代码:
optirun firefox #双显卡开firefox,不需要

如果还没有解决的同学可以在本帖回复,我会尽量抽出时间回答。

【教程】ubuntu 11.10下使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 实测GT540

版权所有:《曾巧文博客-关注互联网IT技术,记录生活点滴》 => 《【教程】ubuntu 11.10下使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 实测GT540
本文地址://qiaowen.net/post-1137.html
除非注明,文章均为 《曾巧文博客-关注互联网IT技术,记录生活点滴》 原创,欢迎转载!转载请注明本文地址,谢谢。

有 6268 人浏览,获得评论 1 条

评论:

小范
2012-10-28 22:13
不错,那怎么设置对某个程序不开启呢?

发表评论:

Powered by emlog 粤ICP备12040901号

>>本作品采用-知识共享署名-非商业-禁止演绎-协议-进行许可 |站点地图 | | | | 开放分类目录 |