如何在开机时启动大黄蜂守护进程?

如何在开机时启动大黄蜂守护进程?

我已遵循本指南https://askubuntu.com/questions/549915/how-to-install-nvidia-drivers-with-bumblebee-on-ubuntu-14-04/549916#549916?newreg=d84c5f76c60549288d9d3937d32ca753

Bumblebee 工作得很好,除了每次重新启动时,我都会出现空白屏幕,即没有显示,然后我必须通过按电源键几分钟来强制关闭我的笔记本电脑,然后再次打开它现在显示工作
现在如果我运行 optirun glxspheres64 我明白了

sooorajjj@Treako ~ $ optirun glxspheres64
[  226.447578] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  226.447636] [ERROR]Could not connect to bumblebee daemon - is it running?

然后我必须手动重新启动bumblebeed,现在optirun可以了

sooorajjj@Treako ~ $ sudo service bumblebeed restart
stop: Unknown instance: 
bumblebeed start/running, process 2772
sooorajjj@Treako ~ $ optirun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 740M/PCIe/SSE2
113.118247 frames/sec - 100.430904 Mpixels/sec
114.656793 frames/sec - 101.796887 Mpixels/sec

我正在使用 lenovo z500 - linux mint 17.2

我使用的 Nvidia 驱动程序

sooorajjj@Treako ~ $ dpkg -l | grep nvidia
ii  bumblebee-nvidia                            3.2.1-93~trustyppa1                                    amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  nvidia-346-updates                          346.96-0ubuntu0.0.1                                    amd64        NVIDIA binary driver - version 346.96
ii  nvidia-settings                             346.72-0ubuntu1                                        amd64        Tool for configuring the NVIDIA graphics driver

所以有两个问题 1) 如何在每次启动时启用 bumblebeed 2) 是什么导致正常重启进入空白屏幕(我如何调试这个,这与第一个问题有关吗?)

答案1

我也在使用 linux mint 17.2:

# cat /etc/*release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.2
DISTRIB_CODENAME=rafaela
DISTRIB_DESCRIPTION="Linux Mint 17.2 Rafaela"
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
cat: /etc/upstream-release: Is a directory

默认安装了一个名为“启动应用程序”的应用程序,启动它并尝试添加以下条目:

在此输入图像描述

然后重新启动,看看会发生什么:)

答案2

键入命令如下。

sudo systemctl enable bumblebeed ; reboot

这在我的 Debian Linux 上运行良好。

相关内容