optirun執行錯誤的解決辦法

我的系統是kubuntu15.04,在安裝雙顯卡切換軟件bumblebee時遇到了一些問題.
執行optirun時會發生一些錯誤, 例如:
[ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ERROR]Could not connect to bumblebee daemon - is it running?
或者
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
主要是因爲配置文件/etc/bumblebee/bumblebee.conf裏面的KernelDriver,LibraryPath,XorgModulePath與你的驅動版本不匹配導致的.可以先查看這裏Bumblebee的ubuntu wiki
更新一下驅動,然後更改配置文件:

Update to nvidia-319 driver
To update to the latest update of 319.x driver, you need to install it through apt:

sudo apt-get install nvidia-319-updates nvidia-settings-319-updates
Then you need to edit /etc/bumblebee/bumblebee.conf and set:

Driver=nvidia
KernelDriver=nvidia-319-updates
LibraryPath=/usr/lib/nvidia-319-updates:/usr/lib32/nvidia-319-updates
XorgModulePath=/usr/lib/nvidia-319-updates/xorg,/usr/lib/xorg/modules

但是請注意這裏的驅動版本可能和你實際下載的不一樣,具體是什麼版本
到/lib/modules/3.19.0-26-generic/這個目錄(3.19.0-26-generic
是內核版本號, 可能和我的會不同,進入自己系統的這個目錄就可以了)
執行find ./ -name “nvidia*”

我這裏得到的結果是

./updates/dkms/nvidia_340_updates.ko
./updates/dkms/nvidia_340_updates_uvm.ko
./kernel/drivers/video/fbdev/nvidia
./kernel/drivers/video/fbdev/nvidia/nvidiafb.ko
./kernel/drivers/net/ethernet/nvidia

版本是340. 所以如果你按照官方wiki上面的319填寫就會出錯, 一定要根據自己的實際版本填寫.把上面的319全都改爲340問題解決.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章