Bumblebee daemon is a rewrite of the original Bumblebee service, providing an elegant and stable means of managing Optimus hybrid graphics chipsets. A primary goal of this project is to not only enable use of the discrete GPU for rendering, but also to enable smart power management of the dGPU when it's not in use.
Source tarballs can be downloaded from https://github.com/Bumblebee-Project/Bumblebee/downloads
The following packages are dependencies for the build process:
If you are building from git, you will also need:
If you want to use optirun
for running applications with the discrete nVidia
card, you will also need:
optirun
:
If you want to make use of Power Management, you will need:
switcheroo
method, install at least theIf you are building from git, you first need to run autoreconf -fi
to generate
the configure
script.
Next, run the configure script to check for dependencies and populate the
Makefile
:
./configure
To set the default driver to nvidia
and adjust the library and module paths
for it, use ./configure
like:
./configure CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia-current \
CONF_LDPATH_NVIDIA=/usr/lib/nvidia-current:/usr/lib32/nvidia-current \
CONF_MODPATH_NVIDIA=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
For all available options, run:
./configure --help
After configuring, you can build the binaries with:
make
You can build the binaries and set the system wide paths at configure time
./configure --prefix=/usr --sysconfdir=/etc
make
After building the binaries and bash completion script, it can be installed
together with an udev rule (unless --without-udev-rules
was passed) using
make
:
sudo make install
For packagers you need to add DESTDIR=$pkgdir
make install DESTDIR=$pkgdir
Example initscripts are available in the scripts/
directory. Currently,
Upstart, systemd and Sys V initscripts are available.
The first time you install Bumblebee, the bumblebee
group has to be created.
Users who are allowed to use Bumblebee need to be added to the group:
sudo groupadd bumblebee
sudo gpasswd -a $USER bumblebee
To run Bumblebee after installing it system-wide, run:
sudo bumblebeed --daemon
optirun -- <application>
For more information, try --help
on either of the two binaries.