使用 Nvidia 319 和 bumblebee

使用 Nvidia 319 和 bumblebee

我有一台运行 Raring 的 Optimus 笔记本电脑,现在我正在使用 nvidia 304 驱动程序,它的性能很差,有些游戏无法正常运行(例如 Oil Rush 只有在 319 上才能正常运行,使用较旧的驱动程序时,我的照明会出现问题,因此游戏无法玩)

那么有没有办法使用从 Nvidia 网站下载的 Nvidia 319 来运行 bumblebee?我知道 Bumblebee 配置,但我不知道应该在其中编辑什么。
谢谢帮助。

答案1

sudo add-apt-repository ppa:xorg-edgers/ppa 
sudo apt-get update
sudo apt-get install nvidia-319 nvidia-settings-319 

然后编辑 bumblebee.conf

 sudo nano /etc/bumblebee/bumblebee.conf

它应该有这样的行:

# You need to explicit the driver used by Bumblebee server.
Driver=nvidia

KernelDriver=nvidia-graphics-drivers-319
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-graphics-drivers-319:/usr/lib32/nvidia-graphics-drivers-319
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-graphics-drivers-319/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

使用以下命令重新启动 bumblebeed 守护进程:

 sudo service bumblebeed restart

刚刚安装并测试其运行良好

光学球体

大黄蜂计划

WEBUPD8


optirun -vvv glxspheres 
[ 1385.959123] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1385.959847] [INFO]Configured driver: nvidia
[ 1385.960226] [DEBUG]optirun version 3.2.1 starting...
[ 1385.960269] [DEBUG]Active configuration:
[ 1385.960281] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1385.960292] [DEBUG] X display: :8
[ 1385.960302] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-319:/usr/lib32/nvidia-319
[ 1385.960313] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1385.960323] [DEBUG] Accel/display bridge: auto
[ 1385.960333] [DEBUG] VGL Compression: proxy
[ 1385.960343] [DEBUG] VGLrun extra options: 
[ 1385.960354] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 1385.960419] [DEBUG]Using auto-detected bridge virtualgl
[ 1388.086427] [INFO]Response: Yes. X is active.

[ 1388.086477] [INFO]Running application using virtualgl.
[ 1388.086729] [DEBUG]Process vglrun started, PID 3491.
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 525M/PCIe/SSE2
94.087784 frames/sec - 102.571552 Mpixels/sec
104.808515 frames/sec - 101.916638 Mpixels/sec
105.079375 frames/sec - 102.180025 Mpixels/sec
105.155037 frames/sec - 102.253599 Mpixels/sec
[ 1397.201911] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 1397.201986] [DEBUG]Socket closed.
[ 1397.202029] [DEBUG]Killing all remaining processes.

答案2

对于大多数人来说,我们从 xorg-edgers 下载 Nvidia 319。因此,配置应该是,

驱动程序=nvidia
内核驱动程序=nvidia-319
LibraryPath=/usr/lib/nvidia-319:/usr/lib32/nvidia-319
XorgModulePath=/usr/lib/nvidia-319/xorg,/usr/lib/xorg/modules`

使此操作有效的诀窍是,不仅在配置文件的 [driver-nvidia] 部分中有一个 Driver=,而且在配置文件的开头也有一个。确保两者都说Driver=nvidia

相关内容