筆電:Acer V3-772g
系統:Debian Jessie
核心:3.16.7
顯卡:Nvidia GTX-760M
CPU:Intel Core i7-4702MQ
GUI 環境:Icewm
一、設定鏡像站
vi /etc/apt/sources.list
deb http://opensource.nchc.org.tw/debian/ jessie main deb-src http://opensource.nchc.org.tw/debian/ jessie main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main # jessie-updates, previously known as 'volatile' deb http://opensource.nchc.org.tw/debian/ jessie-updates main deb-src http://opensource.nchc.org.tw/debian/ jessie-updates main # jessie-backports, previously on backports.debian.org deb http://opensource.nchc.org.tw/debian/ jessie-backports main deb-src http://opensource.nchc.org.tw/debian/ jessie-backports main ## Bumblebee deb http://http.debian.net/debian wheezy-backports main contrib non-free
二、更新
apt-get update
三、安裝套件
1. 使用 APT 下載
bumblebee
primus
bbswitch-dkms
nvidia-cuda-toolkit
nvidia-driver
nvidia-glx
nvidia-detect
nvidia-settings
apt-get install bumblebee primus bbswitch-dkms nvidia-cuda-toolkit nvidia-driver nvidia-glx nvidia-detect nvidia-settings
2. 手動下載安裝
bumblebee-nvidia
Debian Jessie 載點:
安裝:
dpkg -i bumblebee-nvidia_3.2.1-7_amd64.deb
三、設定檔
1. 第一個要改的 bumblebee
vi /etc/bumblebee/bumblebee.conf
修改:
Driver= -> Driver=nvidia KernelDriver=nvidia -> KernelDriver=nvidia-current PMMethod=auto -> PMMethod=bbswitch
改完要重啟 Bumblebee
service bumblebeed restart
2. 第二個要改的 grub
vi /etc/default/grub
找到
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
改為
GRUB_CMDLINE_LINUX_DEFAULT="quiet rcutree.rcu_idle_gp_delay=1"
改完記得更新
update-grub
四、加群組
將目前的使用者 $USER 加到 bumblebee 群組中!
usermod -a -G bumblebee $USER
Debug
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Solution
dpkg-reconfigure nvidia-kernel-dkms dpkg-reconfigure bbswitch-dkms dpkg-reconfigure bumblebee-nvidia reboot
補充:
查看 Nvidia 設定:
optirun nvidia-settings -c :8
查看 Nvidia 溫度:
optirun nvidia-settings -c :8 -q gpucoretemp -t | tail -n 1
查看 Nvidia 設定:
optirun nvidia-settings -c :8
查看 Nvidia 溫度:
optirun nvidia-settings -c :8 -q gpucoretemp -t | tail -n 1
沒有留言:
張貼留言