Bumblebee 守护进程尚未启动或套接字路径 /var/run/bumblebee.socket 不正确

Hum*_*ise 11 nvidia-optimus bumblebee

我最近在带有集成显卡和 NVidia GPU 的 Intel Ivy Bridge 中安装了 Ubuntu 12.04,但我无法使其正常工作。我已经通过了 bumblebee 项目的解决方案,但是当我尝试使用 nvidia 卡(例如 with optirun firefox)运行任何东西时收到以下消息:

[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?
Run Code Online (Sandbox Code Playgroud)

由于 nvidia 卡不能正常工作,一些使用 X11 系统进行图形处理和绘图的软件,如 Scilab,也无法正常工作。

我的bios没有关于显卡的选项,返回守护进程的日志:

Jul 5 16:10:51 humannoise-W251ESQ-W270ESQ bumblebeed[980]: Module 'nvidia' is not found. 
Jul 5 16:10:51 humannoise-W251ESQ-W270ESQ kernel: [ 17.943272] init: bumblebeed main process (980) terminated with status 1 
Jul 5 16:10:51 humannoise-W251ESQ-W270ESQ kernel: [ 17.943288] init: bumblebeed main process ended, respawning 
Jul 5 16:10:51 humannoise-W251ESQ-W270ESQ bumblebeed[1026]: Module 'nvidia' is not found.
Run Code Online (Sandbox Code Playgroud)

lspci -nn | grep '\[030[02]\]:'返回:

00:02.0 VGA compatible controller [0300]: Intel Corporation Ivy Bridge Graphics Controller [8086:0166] (rev 09)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:0de9] (rev a1)
Run Code Online (Sandbox Code Playgroud)

好的,对于dpkg -l | grep '^ii' | grep nvidia我得到的命令:

ii  bumblebee-nvidia                       3.0-2~preciseppa1                         nVidia Optimus support using the proprietary NVIDIA driver
ii  nvidia-current                         302.17-0ubuntu1~precise~xup1            NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-current-updates                 295.49-0ubuntu0.1                       NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-settings                        302.17-0ubuntu1~precise~xup3            Tool of configuring the NVIDIA graphics driver
ii  nvidia-settings-updates                295.33-0ubuntu1                         Tool of configuring the NVIDIA graphics driver
Run Code Online (Sandbox Code Playgroud)

完全重新安装后,包括删除任何以前的 nvidia 驱动器,lsmod | grep -E 'nvidia|nouveau'返回:

nvidia              10888310  46
Run Code Online (Sandbox Code Playgroud)

留言 | grep -C3 -E 'nouveau|NVRM' 返回如下内容:

[ 1875.607283] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 1875.607289] nvidia 0000:01:00.0: setting latency timer to 64
[ 1875.607293] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[ 1875.607363] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  302.17  Tue Jun 12 16:03:22 PDT 2012
[ 1884.830035] nvidia 0000:01:00.0: PCI INT A disabled
[ 1884.832058] bbswitch: disabling discrete graphics
[ 1884.832960] bbswitch: Result of Optimus _DSM call: 09000019
Run Code Online (Sandbox Code Playgroud)

一些程序,如 Scilab,现在在 optirun(eg >optirun scilab) 调用下运行良好。

Lek*_*eyn 5

错误“无法连接到 bumblebee 守护程序 - 它正在运行吗?” 意味着 Bumblebee 守护进程拒绝/无法启动。

在您的情况下,“未找到模块‘nvidia’。”。这意味着 Nvidia 内核驱动程序没有正确安装。确保安装linux-headers-generic软件包并重新安装 nvidia 软件包:

sudo apt-get install linux-headers-generic
sudo apt-get install --reinstall nvidia-current
Run Code Online (Sandbox Code Playgroud)

如果您的系统没有被检测为 Optimus 笔记本电脑,它也可能发生这种情况,它有两个显卡,一个是 Intel 一个是 Nvidia 一个。检查您的/var/log/syslog文件中是否有来自“bumblebeed”(Bumblebee 守护进程)的消息:

grep bumblebeed /var/log/syslog
Run Code Online (Sandbox Code Playgroud)

如果消息为未找到 nVidia 显卡,则退出。,那么您的笔记本电脑没有 Nvidia 芯片或者它在 BIOS 中被禁用。消息未检测到 Optimus 系统,正在退出。当找不到 Intel 显卡时显示。在任一情况下,检查 BIOS 设置中的“Optimus 模式/仅集成/仅离散”选项(或:“检测 Optimus”)。

命令的输出lspci -nn | grep '\[030[02]\]:应如下所示:

00:02.0 VGA 兼容控制器 [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02)
01:00.0 VGA 兼容控制器 [0300]: NVIDIA Corporation GF108 [GeForce GT 425M] [10de:0df0] (转 ff)