【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
-
- 帖子: 9
- 注册时间: 2012-02-17 14:40
【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
注:
用NVIDIA双显卡的电脑用户都纠结,本本只使用集成显卡,独立显卡不能用,装独显驱动经常造成系统崩溃,到论坛上看也没找到合理的办法,找了好久找到这个方法,希望对大家有帮助!
教程测试环境如下:
本本 :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,不需要
»版权所有:《曾巧文博客-关注互联网IT技术,记录生活点滴》 → 《【教程】ubuntu 11.10下使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 实测GT540》;
»本文网址:http://www.choovin.com/post-1137.html ;
»除特别标注,本博客所有文章均为原创. 互联分享,尊重版权,转载请以链接形式标明本文地址 ;
用NVIDIA双显卡的电脑用户都纠结,本本只使用集成显卡,独立显卡不能用,装独显驱动经常造成系统崩溃,到论坛上看也没找到合理的办法,找了好久找到这个方法,希望对大家有帮助!
教程测试环境如下:
本本 :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,不需要
»版权所有:《曾巧文博客-关注互联网IT技术,记录生活点滴》 → 《【教程】ubuntu 11.10下使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 实测GT540》;
»本文网址:http://www.choovin.com/post-1137.html ;
»除特别标注,本博客所有文章均为原创. 互联分享,尊重版权,转载请以链接形式标明本文地址 ;
上次由 choovin 在 2012-04-16 13:31,总共编辑 1 次。
-
- 帖子: 193
- 注册时间: 2008-06-17 17:07
- 来自: http://www.jiechic.com
- 联系:
- say_123456
- 帖子: 38
- 注册时间: 2010-05-12 9:10
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
Lenovo Y470,GT550,Ubuntu 12.04,没有成功
optirun glxspheres
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ERROR]Aborting because fallback start is disabled.
另外
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 Device 0df6 (rev a1) (prog-if 00 [VGA controller])
optirun glxspheres
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ERROR]Aborting because fallback start is disabled.
另外
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 Device 0df6 (rev a1) (prog-if 00 [VGA controller])
- lhw828
- 帖子: 2797
- 注册时间: 2007-03-15 16:58
- 来自: 湖北武汉
- 联系:
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
很详细啊!
.
Linux下安装QQ的各种办法——2017年3月7日更新——QQ8.8
Linux/Ubuntu学习笔记——用前人的经验,让你快速进入Linux的怀抱
科学上网的姿势,无痛穿越长城
Ubuntu交流QQ群:16308991(500人群)和10993386(500人群)疯狂招人!大家速来!
.
-
- 帖子: 9
- 注册时间: 2012-02-17 14:40
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
呵呵,自己是这样成功的lhw828 写了:很详细啊!
- 上条当麻
- 帖子: 27
- 注册时间: 2011-01-13 16:09
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
这个貌似需要先安装显卡驱动后再进行吧
系统: ubuntu 12.04
电脑: acer 4750G
电脑: acer 4750G
- keelispoo
- 帖子: 21
- 注册时间: 2011-04-04 8:32
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
感谢LZ,我已经成功。。dell xps 14z安装12.04已经成功。




- herrickwith
- 帖子: 45
- 注册时间: 2012-03-25 19:04
- 系统: Ubuntu 13.04/win7/8
- 联系:
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
optirun glxspheres #开独显 怎么那个图像转得那么慢开独显,PS。我和LZ电脑一样
-
- 帖子: 33
- 注册时间: 2011-03-12 17:13
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
rev ff 是不是表示独显关了?01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev ff) (prog-if ff)
-
- 帖子: 9
- 注册时间: 2012-02-17 14:40
-
- 帖子: 42
- 注册时间: 2007-03-31 19:05
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
glxspheres后结果:
Polygons in scene: 62464
Visual ID of window: 0x9d
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile
57.859197 frames/sec - 64.570864 Mpixels/sec
58.765194 frames/sec - 65.581957 Mpixels/sec
59.180794 frames/sec - 66.045766 Mpixels/sec
59.086040 frames/sec - 65.940021 Mpixels/sec
59.010616 frames/sec - 65.855847 Mpixels/sec
59.160325 frames/sec - 66.022923 Mpixels/sec
59.247566 frames/sec - 66.120284 Mpixels/sec
58.635574 frames/sec - 65.437301 Mpixels/sec
optirun glxspheres后结果:
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
93.767744 frames/sec - 104.644802 Mpixels/sec
89.301800 frames/sec - 99.660809 Mpixels/sec
97.329118 frames/sec - 108.619296 Mpixels/sec
96.452697 frames/sec - 107.641210 Mpixels/sec
92.246878 frames/sec - 102.947516 Mpixels/sec
106.387165 frames/sec - 118.728076 Mpixels/sec
95.958464 frames/sec - 107.089646 Mpixels/sec
89.385602 frames/sec - 99.754331 Mpixels/sec
94.373716 frames/sec - 105.321067 Mpixels/sec
92.457081 frames/sec - 103.182103 Mpixels/sec
96.785134 frames/sec - 108.012209 Mpixels/sec
比较数字好像不明显,效果看看好像后一个快多了。大家是多少阿?
Polygons in scene: 62464
Visual ID of window: 0x9d
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile
57.859197 frames/sec - 64.570864 Mpixels/sec
58.765194 frames/sec - 65.581957 Mpixels/sec
59.180794 frames/sec - 66.045766 Mpixels/sec
59.086040 frames/sec - 65.940021 Mpixels/sec
59.010616 frames/sec - 65.855847 Mpixels/sec
59.160325 frames/sec - 66.022923 Mpixels/sec
59.247566 frames/sec - 66.120284 Mpixels/sec
58.635574 frames/sec - 65.437301 Mpixels/sec
optirun glxspheres后结果:
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
93.767744 frames/sec - 104.644802 Mpixels/sec
89.301800 frames/sec - 99.660809 Mpixels/sec
97.329118 frames/sec - 108.619296 Mpixels/sec
96.452697 frames/sec - 107.641210 Mpixels/sec
92.246878 frames/sec - 102.947516 Mpixels/sec
106.387165 frames/sec - 118.728076 Mpixels/sec
95.958464 frames/sec - 107.089646 Mpixels/sec
89.385602 frames/sec - 99.754331 Mpixels/sec
94.373716 frames/sec - 105.321067 Mpixels/sec
92.457081 frames/sec - 103.182103 Mpixels/sec
96.785134 frames/sec - 108.012209 Mpixels/sec
比较数字好像不明显,效果看看好像后一个快多了。大家是多少阿?
-
- 帖子: 42
- 注册时间: 2007-03-31 19:05
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
12.04可以试试这个http://geek.co.il/wp/2012/02/19/nvidia-optimus-on-ubuntu-12-04say_123456 写了:Lenovo Y470,GT550,Ubuntu 12.04,没有成功
optirun glxspheres
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ERROR]Aborting because fallback start is disabled.
另外
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 Device 0df6 (rev a1) (prog-if 00 [VGA controller])
-
- 帖子: 42
- 注册时间: 2007-03-31 19:05
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
12.04可以试试这个http://geek.co.il/wp/2012/02/19/nvidia-optimus-on-ubuntu-12-04say_123456 写了:Lenovo Y470,GT550,Ubuntu 12.04,没有成功
optirun glxspheres
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ERROR]Aborting because fallback start is disabled.
另外
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 Device 0df6 (rev a1) (prog-if 00 [VGA controller])
- chhx4567
- 帖子: 220
- 注册时间: 2009-08-24 14:53
- 系统: Linux Mint 13 XFCE
- 来自: 新疆
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
感谢楼主 mint12系统下
本本 :华硕N43
显卡:GT425
测试成功
本本 :华硕N43
显卡:GT425
测试成功

我的博客
ubuntu的fcitx-rime
ppa轻松装java
常用:Eclipse Firefox GoldenDict GuakeTerminal pidgin-lwqq
谁用谁知道:iBus-Rime(输入法) Spotify(P2P音乐) SciTE(轻巧的文本编辑器) CherryTree(适合记录代码的笔记簿) f.lux或Redshift(根据地理位置自动调节显示器色温和亮度)
ubuntu的fcitx-rime
ppa轻松装java
常用:Eclipse Firefox GoldenDict GuakeTerminal pidgin-lwqq
谁用谁知道:iBus-Rime(输入法) Spotify(P2P音乐) SciTE(轻巧的文本编辑器) CherryTree(适合记录代码的笔记簿) f.lux或Redshift(根据地理位置自动调节显示器色温和亮度)
-
- 帖子: 5
- 注册时间: 2012-05-26 20:34
Re: 【教程】使用Bumblebee 3.0控制NVIDIA驱动双显卡处理办法 by 11.10 实测GT540
acer 4755g 试试。。。