[How To] Fix Bumblebee On Ubuntu 12.10

Have you been having trouble getting Bumblebee to work in Ubuntu 12.10 ? Here’s a quick guide on how I fixed it:

Install ppa-purge so you can remove BBswitch and Bumblebee.

 sudo apt-get install ppa-purge

Remove BBswitch and Bumblebee.

 sudo apt-get purge bbswitch-dkms bumblebee-nvidia

Install the proper Linux headers.

 sudo apt-get install linux-headers-3.5.0-17-generic

Now reinstall Bumblebee and BBswitch.

 sudo apt-get install bbswitch-dkms bumblebee-nvidia

Now reboot and enjoy your battery life.

If you want to check your Nvidia GPU is working run glxspheres with optirun

 optirun glxspheres
  • Stefan

    Like with the last time on Ubuntu 11.10 you saved my life ! Thanks for posting this!

  • ksp1234

    Thanks for the nice post :-). Can you pls tell me how to check the battery discharge rate in Ubuntu 12.10? The earlier command which worked for 12.04 doesn’t work as there is no battery directory inside acpi directory.

  • dell7720

    optirun glxspheres gives me this:

    [ 32.770087] [ERROR]Cannot access secondary GPU – error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0

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

    I have GT650m on a dell inspiron 7720

    • notnot

      What you have to do is edit your configuration file for the nvidia driver
      /etc/bumblebee/xorg.conf.nvidia
      and change the line
      Option “ConnectedMonitor” “DFP” to
      Option “ConnectedMonitor” “CRT”

  • notnot

    @dell7720:
    I had the same problem as you… What you have to do is edit your configuration file for the nvidia driver: /etc/bumblebee/xorg.conf.nvidia
    and change the line
    Option “ConnectedMonitor” “DFP” to
    Option “ConnectedMonitor” “CRT”

    • dell7720

      thx for reply!
      unfortunately this does not solve the problem..same error message comes up :(

  • http://www.facebook.com/ltsharma Lakshmeesha T Sharma

    ohhhh….. thanks for this post.. my laptop’s ubuntu reborn by your post. before doing thees, battery life 1:40 hrs , after thees steps 3:20 hrs.. really thank you.. :) :D

  • http://gravatar.com/skylight33 skylight33

    For me it did not work :
    “Aborting because fallback start is disabled”

  • http://gravatar.com/bagisoft Ihen

    thx
    working for me
    nice share :)

  • http://gravatar.com/musaid musaid

    finally, someone to the rescue. thanx alot for this post :)

  • http://www.facebook.com/dkeats Derek Keats

    Wouldn’t
    sudo apt-get install linux-headers-(uname -r)
    be better. Mine are 21 not 17

  • ivan

    ivan@ivan-laptop:~$ optirun glxspheres
    [ 136.322781] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
    [ 136.322848] [ERROR]Could not connect to bumblebee daemon – is it running?
    ivan@ivan-laptop:~$

    • http://www.facebook.com/giovanni.chiodo Giovanni Chiodo

      same error for me

  • Nikhil Parmar

    Thank You.
    I am running fedora 17 and i followed this link http://dariofaggioli.wordpress.com/2013/02/18/fedora-optimus/
    However it failed for the wrong kernel headers but your comment
    “Install the proper Linux headers.” helped me. I updated correctly as per the kernel and now its works and gives me a long battery life. !
    Thanks for the CLEAR description of the commands.

  • Regisd

    you just saved my mind from becoming completely crazing HUGE thanks !!!! works perfectly on my Asus N55SF ! 4h47 battery life (more than under Windows 7 !!!) just great ! (yes i’m happy)

  • cetrix

    Linux mint same problem.

  • http://gravatar.com/stephelton stephelton

    The specific linux-headers package you install will quickly be outdated. You can run the command: “sudo apt-get install linux-headers`uname -r`” which will always grab the latest kernel headers (assuming you’re booted into the most recently installed kernel).

  • Cookizz

    YAY ! Thanks for your rescue ! Fully worked on my Dell Inspiron 15R (NS5110) / Linux Mint 14 :D

  • http://twitter.com/AlejoNext Alejandro Ñext (@AlejoNext)

    Why install “ppa-purge” ???

  • http://malaerba.noblogs.org malaerba

    Thank you!

  • Ted

    Ubuntu Gnome remix 12.10, it works for me! Thanks a lot!

  • wrathborne

    thanks a lot ! works as a charm on a dell xps 14 ! (ubuntu 12.10)

  • brettio

    MINT 14…gt630m …computer says YES!!!
    only you specified an old version of linux headers..I used Falkvinges install to get latest kernel and headers then used your method but changed the header instruction in your method from ”linux-headers-3.5.0-17-generic” to ”linux-headers-generic” and got 3.5.0-26 installed. but feasibly you could type
    ”linux-headers-3.5.0-26-generic.”

  • hush

    hi,
    this thing’s driving me crazy, i am fairly new to ubuntu and i have got nvidia 620m on a asus laptop running ubuntu 12.10 32-bit.
    i have searched a lot and haven’t been able to fine an answer, i reached here and did as directed and got the following error. any help really appreciated. :)

    [ 206.354193] [ERROR]Cannot access secondary GPU – error: [XORG] (EE) No devices detected.

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

  • Peter

    I believe, you should update command since linux-headers-3.5.0-17-generic does not exist anymore:

    sudo apt-get install linux-headers-3.5.0-31-generic

  • Frufo

    Thank you very much for the hint. I had the issue that it took minutes (on my Atom-Netbook) to load the display manager (lightdm) in fact the nvidia-current module was rebuild at every boot. Thus

    sudo apt-get purge nvidia-current

    and

    sudo apt-get install nvidia-current

    did solve it for me.