Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bumblebee Ubuntu 12.04 (Elementary OS)
Bumblebee Elementary OS (Ubuntu 12.04 precise)
1. sudo add-apt-repository ppa:bumblebee/stable
2. For more up-to-date nvidia drivers, you need to add another PPA. As of 12.04, this is still necessary for Nvidia GT 6xxM cards. It may be optional for the GT 4xxM and GT 5xxM series on 12.04. When in doubt, just install it. The command is:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
3. sudo apt-get update
4. Install Bumblebee using the proprietary nvidia driver:
sudo apt-get install bumblebee bumblebee-nvidia
5. Make sure the right headers for your kernel are installed
sudo apt-get install linux-headers-$(uname -r)
6. Install the Nvidia GeForce driver (via the 'updates' repository):
sudo apt-get install nvidia-331 nvidia-settings-331 nvidia-settings-updates
7. Configure Bumblebee to use nvidia-331.
Open "/etc/bumblebee/bumblebee.conf" as root with a text editor:
sudo vim /etc/bumblebee/bumblebee.conf
And change the following:
- on line 22, make sure "Driver=" is set to "nvidia", like this:
- change the "KernelDriver=" (on line 55) to "nvidia-331", like this:
- change "LibraryPath=" (on line 58) to "/usr/lib/nvidia-331:/usr/lib32/nvidia-331", so it looks like this:
- change the "XorgModulePath=" (line 61) to "XorgModulePath=/usr/lib/nvidia-331/xorg,/usr/lib/xorg/modules" so it looks like this:
8. Restart Bumblebee, logout.
Restart the bumblebeed daemon using the following command:
sudo service bumblebeed restart
9. Install primus:
sudo add-apt-repository ppa:zhurikhin/primus
sudo apt-get update
sudo apt-get install primus
10. Change primus script:
sudo vim /usr/lib/primusrun
on line 16: export PRIMUS_libGLa=${PRIMUS_libGLa:-'/usr/lib/nvidia-331/'}
on line 27: /usr/lib*/nvidia-331*|'') # nvidia is used by default
11. Test:
optirun glxspheres64
primusrun glxspheres64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.