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问题解决.

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