(1)进入https://wiki.debian.org/Bumblebee#Installation,打开wheezy-backports链接,
将deb http://http.debian.net/debian wheezy-backports main添加至源 /etc/apt/sources.list,然后sudo apt-get update,更新源,
(2)最后再返回到https://wiki.debian.org/Bumblebee#Installation,按照installation的说明选一个命令安装,比如sudo apt-get install bumblebee primus
(3)安装好后独显会自动关闭
lspci| grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 630M] (rev ff)
rev ff 就表示关闭
(4)打开显卡方法
sudo optirun glxgears(glxgears为某程序的名称,可以查看电脑的3D效果),输入命令后虽然会提示打开失败,但独显还是会打开,可以使用如下命令查看
lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 630M] (rev a1)
rev a1就表示打开
(5)要想再次关闭独显,只须重启bumblebee服务(注意服务名称!以下是一种方法)
service bumblebeed restart