You are not logged in.

#1 2017-07-01 13:46:11

Frodo.061
Member
Registered: 2017-03-20
Posts: 17

[Solved] Bumblebee with Intel/Nvidia

I've been trying to install bumblebee with intel and nvidia graphics cards (proprietary ones). So I followed the bumblebee wiki, until I tryed to text it using the following command and getting the following output

[frodo@joao ~]$ optirun glxgears -info
[  209.597194] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)

[  209.597236] [ERROR]Aborting because fallback start is disabled.

I don't have nouveau video drivers installed and when I run

 lsmod | grep nouvau 

I get no output at all, but also I get no output if I run the same command, but for nvidia. From what I resarched, the nvidia installation package should blacklist the nouveau modules, don't know why, it is trying to load them instead of nvidia. Anyone knows why I get this error?

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=
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# 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
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/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

xorg.conf.nvidia

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Last edited by Frodo.061 (2017-07-01 17:23:11)

Offline

#2 2017-07-01 13:58:33

null
Member
Registered: 2009-05-06
Posts: 398

Re: [Solved] Bumblebee with Intel/Nvidia

Have you tried setting "Driver=nvidia" in your bumblebee.conf?

Offline

#3 2017-07-01 15:16:58

Frodo.061
Member
Registered: 2017-03-20
Posts: 17

Re: [Solved] Bumblebee with Intel/Nvidia

I set "Driver=nvidia" and when I ran optirun glxgears --info, I got the same error message.

Offline

#4 2017-07-01 15:18:35

null
Member
Registered: 2009-05-06
Posts: 398

Re: [Solved] Bumblebee with Intel/Nvidia

Do you have an /etc/X11/xorg.conf or files in /etc/X11/xorg.conf.d ?

If not, try to add something like:

Section "Device"
        Identifier "Device0"
        Driver "nvidia"
        BusID "PCI:01:00:0"
EndSection

with the right BusID path from 'lspci' to /etc/X11/xorg.conf.d/10-monitor.conf (or similar). I think I had to do this too to get it running..

Last edited by null (2017-07-01 15:24:46)

Offline

#5 2017-07-01 16:01:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,880

Re: [Solved] Bumblebee with Intel/Nvidia

That would be setting the BusID in xorg.conf.nvidia.

@The younger hobbit:
If you got the *very* same error message after setting "Driver=nvidia" you did something wrong, in doubt you forgot to restart the bumblebee daemon (and in very doubt: just reboot ;-)
The nouveau driver should not be attempted in this case

Online

#6 2017-07-01 16:24:45

Frodo.061
Member
Registered: 2017-03-20
Posts: 17

Re: [Solved] Bumblebee with Intel/Nvidia

Thanks for the replies.

After rebooting the system, I ran the same command to test it and got this error message:

[frodo@joao ~]$ optirun glxgears --info
[  302.328328] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  302.328387] [ERROR]Could not connect to bumblebee daemon - is it running?
[frodo@joao ~]$ sudo systemctl status bumblebeed.service
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2017-07-01 17:20:15 WEST; 53s ago
  Process: 1087 ExecStart=/usr/bin/bumblebeed (code=exited, status=1/FAILURE)
 Main PID: 1087 (code=exited, status=1/FAILURE)

jul 01 17:20:15 joao systemd[1]: bumblebeed.service: Failed with result 'exit-code'.
[frodo@joao ~]$ 

I didn't really understood how do I creat that /etc/X11/xorg.conf. At this moment, in the /etc/X11 directory, I have a xorg.conf.d empty directory.

Last edited by Frodo.061 (2017-07-01 16:25:15)

Offline

#7 2017-07-01 16:33:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,880

Re: [Solved] Bumblebee with Intel/Nvidia

how do I creat that /etc/X11/xorg.conf

"Not" - stupid idea that will kill your ability to use hybrid graphics.

Check the journal for why bumblebeed fails, in doubt try to run the binary directly and  watch ther error messages.

Online

#8 2017-07-01 16:43:17

Frodo.061
Member
Registered: 2017-03-20
Posts: 17

Re: [Solved] Bumblebee with Intel/Nvidia

Journal entry for bumblebee

-- Logs begin at Sat 2017-06-24 18:30:34 WEST, end at Sat 2017-07-01 17:40:57 WEST. --
jul 01 17:40:20 joao bumblebeed[2376]: modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.9.35-1-lts
jul 01 17:40:20 joao bumblebeed[2376]: [ 1467.444884] [ERROR]Module bbswitch could not be loaded (timeout?)
jul 01 17:40:20 joao bumblebeed[2376]: [ 1467.444911] [WARN]No switching method available. The dedicated card will always be on.
jul 01 17:40:20 joao bumblebeed[2376]: [ 1467.445968] [ERROR]Module 'nvidia' is not found.

Apparently it is not finding the bbswitch modules. I don't know if I have to install them, or they are already installed.

Offline

#9 2017-07-01 17:02:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,880

Re: [Solved] Bumblebee with Intel/Nvidia

You're booting the lts kernel but apparently have neither nvidia-lts nor bbswitch-lts installed ...

Online

#10 2017-07-01 17:22:30

Frodo.061
Member
Registered: 2017-03-20
Posts: 17

Re: [Solved] Bumblebee with Intel/Nvidia

That's it, I was using the lts kernel and I had installed the nvidia drivers instead of the nvidia-lts. I believe it is working now, I just removed the setting Driver=nvidia and it is still working. Thank you.

Offline

Board footer

Powered by FluxBB