Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
This page tries to establish a design for Bumblebee. It's aimed at developers. Developers are encouraged to discuss the points below.
The installation is distinct from configuration because it has to be executed only once.
- clean the mess created by MrMEEE/Bumblebee and MrMEEE/IronHide, namely bumblebee-enablecard and other unremoved files (is it our task?)
- uninstall previous Bumblebee versions, make sure the card is on
- dependencies: virtualgl, nouveau or nvidia, bbswitch
- to avoid breaking the Intel display, the nvidia libraries need to be installed in a way they don't overwrite libGL from mesa.
- setup initscript that starts the daemon (
- add a group which is allowed to use bumblebee and instruct users to add themselves to it (group:
- Xorg settings, a minimum file is provided.
- When using the proprietary nVidia driver, it might be necessary to change
xorg.conf.nvidia. For machines on which this setting can be detected, it's not mandatory to set a correct value. However, there exist machines who cannot detect it on their own and therefore needs this setting to be set to
CRTto make it work.
Most defaults are set to sane values known to work but they can be tweaked for better performance.
- VGL preferences (see also User's Guide for VirtualGL: 19 Advanced configuration)
VglTransportsets the compression method for framestransport possible values:
- The setting
VirtualDisplayselects the X display to be used (this display is started by Bumblebee)
- should start X server on request
- Use a single X server for now
- communication is done through a socket file
- switches the power state of the discrete video card
- load/ unload the drivers and unload any conflicting drivers.
- automatically shutdown X when unused for configurable seconds?
/etc/bumblebeewas a file in 1.7.10 and before (PPA 2.2.0 and before), containing the version number like:
Bumblebee Version: 2.2.0 Worst. Decision. Ever. From now on, we'll create a directory for storing configuration files. (
/etc/bumblebee/, this can be changed at compile time) The version will be stored in the binaries.
/etc/bumblebee/xorg.conf.$DRIVERis used when starting X
This should be distribution specific but there is some basic dependencies that should be met:
- VirtualGL is the key component. It can be found in binary packages for different distributions (deb and rpm) and can be compiled. It should be packed separately and set as a dependency of bumblebee.
- Driver modules and libraries.
- Nvidia kernel module and binary drivers. They should be packed in a way that don't interfere with the Mesa graphics library (libGL.so) needed to enable 3D acceleration on the intel card.
- Nouveau driver works without additional configuration needed.
- A standard GNU build system is used, see Install-and-usage.