1) 安装
先到 Additional Drivers
将 NVIDIA binary driver - version 381.22 from nvidia-381 安装了
可以用命令检查到是否安装了 nvidia-381
$ su
$ apt-get search nvidia-381
$ apt-get install nvidia-prime
$ prime-select intel
$ add-apt-repository ppa:bumblebee/testing
$ apt-get update
$ apt-get install bumblebee
$ add-apt-repository ppa:nilarimogard/webupd8
$ apt-get update
$ apt-get install prime-indicator-plus
2) 设置 (如果有更新, 以下的设置也要改)
2.1) 确保这个文件有 nvidia-381 的设置
$ gksu gedit /etc/modprobe.d/bumblebee.conf
# 381
blacklist nvidia-381
blacklist nvidia-381-updates
blacklist nvidia-experimental-381
2.2) 设置用 nvidia-381
$ gksu gedit /etc/bumblebee/bumblebee.conf
TurnCardOffAtExit=true
Driver=nvidia
KernelDriver=nvidia-381
LibraryPath=/usr/lib/nvidia-381:/usr/lib32/nvidia-381
XorgModulePath=/usr/lib/nvidia-381/xorg,/usr/lib/xorg/modules
3) 检查 BusID
$ sudo update-pciids
$ lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 640M] (rev a1)
4) 设置
$ gksu gedit /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:01:00:0"
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
5) 重启
$ optirun -b none /usr/bin/nvidia-settings -c :8
可以在 PRIME indicator 上知道系统在用哪一个显卡, 而且可以自由切换
也可以在以下切换
NVIDIA X Server Settings - PRIME Profiles
- NVIDIA (Performance Mode) 或 Intel (Power Saving Mode)
然后 Log out, 再登入..
没有评论:
发表评论