首页 > 代码库 > NVIDIA双显卡

NVIDIA双显卡

NVIDIA双显卡


第一步:
代码:
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,不需要