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


10

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

[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?

由于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.

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)

好的,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

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

nvidia              10888310  46

dmesg | 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

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


您需要重新启动系统。
Web-E

您如何获取BIOS信息?您使用了哪个命令行?
阿比2015年

Answers:


5

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

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

sudo apt-get install linux-headers-generic
sudo apt-get install --reinstall nvidia-current

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

grep bumblebeed /var/log/syslog

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

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

00:02.0 VGA兼容控制器[0300]:英特尔公司核心处理器集成图形控制器[8086:0046](修订版02)
01:00.0 VGA兼容控制器[0300]:NVIDIA Corporation GF108 [GeForce GT 425M] [10de:0df0](版本ff)


@Humannoise Strange,安装bumblebee还应拉取nvidia当前软件包。什么dmesg | grep -C3 -E 'nouveau|NVRM'lsmod | grep -E 'nvidia|nouveau'产量?您可以将其添加到您的问题。
Lekensteyn

空返回到新命令
Humannoise

您能补充dpkg -l | grep '^ii' | grep nvidia您的问题吗?您没有添加lsmod | grep ...您的问题,是空的吗?
Lekensteyn'7

是的,它是空的,两个命令
Humannoise 2012年

您是否真的按照wiki.ubuntu.com/Bumblebee所述安装了Bumblebee ?
Lekensteyn

2

升级某些软件包后,我遇到了此问题。看来问题是由Nvidia内核模块从“ nvidia”重命名为“ nvidia_current”引起的。

如果已nvidia-current安装软件包,则可以通过编辑/etc/bumblebee/bumblebee.conf和设置以下值来解决此问题:

...
[bumblebeed]
Driver=nvidia
...
[driver-nvidia]
KernelDriver=nvidia_current
Module=nvidia
...

然后重启大黄蜂:

sudo service bumblebeed restart

并测试:

optirun glxgears

参考文献:


0

病征

如果使用optirun playonlinux或出现此错误optirun -b playonlinux

[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?

那么您的bumbleblee conf文件不是最新的。

自动更正大黄蜂conf文件

您可以在终端中复制/粘贴这些命令:

#!/bin/bash

# Get the old nvidia version used by the conf file
oldNvidiaVersion=`cat /etc/bumblebee/bumblebee.conf |grep "KernelDriver=nvidia" | cut -d- -f2`

# Get the current nvidia version
nvidiaVersion=`find /lib/modules/$(uname -r) -name 'nvidia_???.ko*' | cut -d_ -f2 |cut -d. -f1`
echo "nvidiaVersion : $oldNvidiaVersion => $nvidiaVersion"

# Test the update the Bumblebee conf file
# cat /etc/bumblebee/bumblebee.conf | sed "s/$oldNvidiaVersion/$nvidiaVersion/g"

# Update the Bumblebee conf file
echo "Update /etc/bumblebee/bumblebee.conf ..."
sudo sed -i "s/$oldNvidiaVersion/$nvidiaVersion/g" /etc/bumblebee/bumblebee.conf
echo done.

# Restart bumblebeed deamon
sudo systemctl restart bumblebeed.service

可选:如果您经常更新nvidia驱动程序,则可以将此命令保存在一个文件中bumbleble_update_conf.sh,然后chmmod +x bumbleble_update_conf.sh执行./bumbleble_update_conf.sh

现在optirun playonlinux还是optirun -b playonlinux应该工作!

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.