bumblebee::Cannot access secondary GPU - error: Could not load GPU driver

Solution 1:

This is copied from github user ArchangeGabriel:

For your current issue, the fact is that the nvidia kernel module and driver have changed their name on Ubuntu in this new 304.22 version. So you have to edit (with sudo rights) /etc/bumblebee/bumblebee.conf and do the two followings things :

  1. Replace Driver= by Driver=nvidia
  2. Replace KernelDriver=nvidia-current by KernelDriver=nvidia

Then reboot, and you should be fine for optirun.

//end quote.

So the answer suggested of editing KernelDriver is correct, but needs 1 extra step due to the name change. In likelihood you probably have nouveau kicking around somewhere on your system which is overriding the nvidia driver when bumblebee goes to autodetect (if Driver= is left blank it tries to autodetect with nouveau winning out where you actually want nvidia).

I had the same problem as you, tried this more-complete answer and now bumblebee / optirun work just fine. Hope it works for you, too.

Solution 2:

same problem. Renaming the drivers name solved the problem but

  • I can't access external monitors (I could just before last update). I don't see them from the "displays" system setting
  • Running optirun -vv nvidia-settings rise the error that I'm not currently using nvidia X drivers and that I shoud run nvidia-xconfig. the -vv doesn't show any error, full log is reported below

    optirun -vv nvidia-settings
    [  674.856470] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
    [  674.856716] [INFO]Configured driver: nvidia
    [  675.044903] [DEBUG]optirun version 3.0.1 starting...
    [  675.044922] [DEBUG]Active configuration:
    [  675.044925] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
    [  675.044928] [DEBUG] X display: :8
    [  675.044930] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
    [  675.044933] [DEBUG] Socket path: /var/run/bumblebee.socket
    [  675.044936] [DEBUG] VGL Compression: proxy
    [  677.053609] [INFO]Response: Yes. X is active.
    
    [  677.053623] [INFO]Running application through vglrun.
    [  677.053851] [DEBUG]Process vglrun started, PID 4605.
    

* UPDATE *

Solved installing nvidia-current-updates

Solution 3:

@Bobjohnson thank you!

It worked for me (nvidia gforce 610m and Linux mint 13)

i just did

  • sudo nano /etc/bumblebee/bumblebee.conf
  • Replace the line Driver=by Driver=nvidia
  • Replace the line KernelDriver=nvidia-current by KernelDriver=nvidia
  • Then save, reboot and check with optirun glxgears

Solution 4:

I had this problem too. It seems that nvidia module was renamed from nvidia-current to nvidia after recent updates. You need to edit file /etc/bumblebee/bumblebee.conf and change line:

KernelDriver=nvidia-current

to

KernelDriver=nvidia

Then restart computer or bumblebee, and optirun should work again.

I hope it helps. I have made few other changes, before it start working, so query if it didn't work...