安装debian的方法可以参见网上的U盘安装方法
但是要注意的是,从debian官网上下的镜像只有DVD1和CD1能够直接启动
使用的工具是linux下的unetbootin,或者win下的oltrsol工具
注意,我是通过网络安装的,但是非常耗费时间,后来安装gnome桌面就起码话了一个多小时左右
安装成功后配置输入法
apt-get install fcitx
apt-get install fcitx-pinyin
现在开始安装bumblebee
首先配置源
在/etc/apt/source.list中加上这一行
deb http://mirrors.ustc.edu.cn/debian wheezy-backports main contrib main然后apt-get update
现在开始安装bumblebee
参考
https://wiki.debian.org/Bumblebee#Installation
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -t wheezy-backports bumblebee-nvidia primus primus-libs:i386
注意在安装时的提示中要你配置xorg.conf
不要配置!双显卡用户千万不要配置!
安装完成后把你自己加入到bumblebee用户组中
sudo adduser $USER bumblebee
USER就是你自己的用户名
运行一个例子
optirun glxgears -info
提示
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
You must edit /etc/bumblebee/bumblebee.conf using your preferred editor as root, and change "KernelDriver=nvidia" to "KernelDriver=nvidia-current", then restart the bumblebee daemon, i.e.
把文件中的改一下就好了,注意不要全部改了
最多改两个地方Driver=nvidia 这个是在文件开始处
然后是上面说的那里
注意不要改下面的目录地址!
又出了问题
[....] Restarting bumblebeed: bumblebeedFATAL: Module bbswitch not found.
解决办法
参考
http://askubuntu.com/questions/130917/bumblebee-module-bbswitch-could-not-be-loaded
安照这个网站做,记得把第一个回答从头做到尾,重新装一遍那个模块
重启就好了
可能第一次重启后会出现gnome桌面没有3D效果了,但是没关系,接下来重启一下就好了
再执行
到此,目的就完成了
如果你没有感觉到你的电脑更省电了,那么
参考
https://github.com/Bumblebee-Project/Bumblebee/wiki/Power-Management
sudo apt-get install acpidump iasl dmidecode
Power Management
A primary goal of this project is to not only enable use of the discrete GPU for rendering, but also to enable smart power management of the dGPU when it's not in use. We're using either bbswitch (a module) or vga_switcheroo (kernel module, experimental) to do this in Bumblebee.
bbswitch is packaged in Debian and is automatically installed when choosing to install bumblebee through the repositories.
Since Bumblebee 3.0, this feature is enabled by default, using bbswitch. This allow automatic power management, without any configuration needs. If Power Management doesn't work on your laptop, please go to this Power Management (PM) page and help to improve Bumblebee.