You are not logged in.

#1 2013-02-07 21:17:16

qKUqm3wtY4
Member
From: San Francisco
Registered: 2012-12-19
Posts: 60
Website

[SOLVED][Bumblebee] "loaded activating auto-restart"

SOLUTION AT POST #7

Recently, Bumblebee broke on my system.  I'm not sure how or why.  Here are the details:

To make sure the daemon is on:

# sudo systemctl enable bumblebeed.service

Then when I check on the status I always get this:

# systemctl | grep bumblebee
bumblebeed.service        loaded activating auto-restart Bumblebee C Daemon

If I try to run optirun, I get this:

# optirun -vv glxgears -info
[ 9853.276071] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 9853.276660] [INFO]Configured driver: nvidia
[ 9853.276733] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 9853.276750] [DEBUG]Socket closed.
[ 9853.276774] [ERROR]Could not connect to bumblebee daemon - is it running?

Here is my bumblebee.conf:

# cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia

## Client options. Will take effect on the next optirun executed.
[optirun]
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

I do not know what to do about this error.  Any help would be greatly appreciated.

Last edited by qKUqm3wtY4 (2013-02-22 01:41:34)


I am a noob.  Ask me nothing.

Offline

#2 2013-02-08 13:18:52

yasd
Member
Registered: 2013-02-08
Posts: 2

Re: [SOLVED][Bumblebee] "loaded activating auto-restart"

Disclaimer: I am a noob. This may or may not work/apply for you.

I had similar symptoms to you and thought I'd share what worked for me. Basically bumblebee was stuck in "loaded activating auto-restart" state which I think just means it failed, and is continuing to fail to start. Anyways, when I looked through the log from

#journalctl

I found that

bumblebeed[xxx]: modprobe: FATAL: Module bbswitch not found.
bumblebeed[xxx]: [ yyy] [ERROR]Module bbswitch could not be loaded (timeout?)
bumblebeed[xxx]: [ yyy] [WARN]No switching method available. The dedicated card will always be on.
bumblebeed[xxx]: [ yyy] [ERROR]Module 'nvidia' is not found.

I think this happened (at least for bbswitch) because the modules don't survive kernel updates (at least bbswitch doesn't according to https://github.com/Bumblebee-Project/bbswitch). For example when I ran

#modprobe bbswitch

it complained couldn't find the module.

So I rebuilt (after updated outdated ones) of the 'bbswitch', 'nvidia-utils-bumblebee', and 'nvidia-bumblebee' packages. Then the prior modprobe command seems to work, and bumblebee could start.

Good luck.

Last edited by yasd (2013-02-08 13:20:51)

Offline

#3 2013-02-18 05:19:24

qKUqm3wtY4
Member
From: San Francisco
Registered: 2012-12-19
Posts: 60
Website

Re: [SOLVED][Bumblebee] "loaded activating auto-restart"

yasd wrote:

So I rebuilt (after updated outdated ones) of the 'bbswitch', 'nvidia-utils-bumblebee', and 'nvidia-bumblebee' packages. Then the prior modprobe command seems to work, and bumblebee could start.

If you are willing, please point me in the right direction regarding how to, "rebuild" the packages.  I've tried removing all of the packages related to nvidia and bumblebee, and then I redownloaded and installed them.  This did not fix the problem.


I am a noob.  Ask me nothing.

Offline

#4 2013-02-18 07:00:20

yasd
Member
Registered: 2013-02-08
Posts: 2

Re: [SOLVED][Bumblebee] "loaded activating auto-restart"

By 'rebuild' I meant I reran 'makepkg -s' in the directory that was made from tarball extraction (the tarball being for the package from AUR). I believe you did this if you removed the packages, redownloaded from AUR and reinstalled.

It seems like our problems were different. Sorry hmm

Last edited by yasd (2013-02-18 07:01:26)

Offline

#5 2013-02-20 01:41:34

koz
Member
Registered: 2012-01-09
Posts: 37

Re: [SOLVED][Bumblebee] "loaded activating auto-restart"

yasd wrote:

So I rebuilt (after updated outdated ones) of the 'bbswitch', 'nvidia-utils-bumblebee', and 'nvidia-bumblebee' packages. Then the prior modprobe command seems to work, and bumblebee could start.

Good luck.

There is a simple solution here to make your life easier: DKMS.

https://wiki.archlinux.org/index.php/Dy … le_Support
https://aur.archlinux.org/packages/dkms-bbswitch/
https://aur.archlinux.org/packages/dkms … bee-utils/

smile

Last edited by koz (2013-02-20 01:42:42)

Offline

#6 2013-02-22 00:50:58

qKUqm3wtY4
Member
From: San Francisco
Registered: 2012-12-19
Posts: 60
Website

Re: [SOLVED][Bumblebee] "loaded activating auto-restart"

yasd wrote:

By 'rebuild' I meant I reran 'makepkg -s' in the directory that was made from tarball extraction (the tarball being for the package from AUR). I believe you did this if you removed the packages, redownloaded from AUR and reinstalled.

It seems like our problems were different. Sorry hmm

Actually, this fixed it.  The problem was that I had updated the kernel, reinstalled all of the packages, but I never restarted.  After a reboot, it all worked.  I will mark this as solved.


I am a noob.  Ask me nothing.

Offline

#7 2013-02-22 01:40:12

qKUqm3wtY4
Member
From: San Francisco
Registered: 2012-12-19
Posts: 60
Website

Re: [SOLVED][Bumblebee] "loaded activating auto-restart"

SOLUTION

This problem happens after a kernel update.  Three packages must be rebuilt; nvidia-bumblebee, nvidia-utils-bumblebee, and bbswitch.  Continue reading to find out how.


  1. Redownload nvidia-utils-bumblebee, nvidia-bumblebee, and bbswitch from AUR.

  2. Unpack each tar

    # tar -xvzf [filename]
  3. Rebuild each package

    # cd [unpacked directory]
    # makepkg -s
  4. Install

    # pacman -U [filename]
  5. Reboot

DONE!

koz suggests the following!  I've tried it and it works great!

koz wrote:

There is a simple solution here to make your life easier: DKMS.

Dynamic Kernel Module Support
dkms-bbswitch
dkms-nvidia-bumblebee-utils


I am a noob.  Ask me nothing.

Offline

Board footer

Powered by FluxBB