Install bumblebee Ubuntu 16.04.1

Update and install latest driver
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt install nvidia-prime nvidia-370

Switch to intel card
sudo prime-select intel
Install bumblebee testing with primus
sudo add-apt-repository ppa:bumblebee/testing
sudo apt update
sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-settings nvidia-370

Add kernel modules to load at boot time
sudo gedit /etc/modules

Blacklist nvidia
sudo gedit /etc/modprobe.d/bumblebee.conf
# 370
blacklist nvidia-370
blacklist nvidia-370-updates
blacklist nvidia-experimental-370

Configure bumblebee

sudo gedit /etc/bumblebee/bumblebee.conf
nvidia-current -> nvidia-370

Add user to bumblebee group, enable bumblebeed daemon service.
sudo gpasswd -a $USER bumblebee
sudo systemctl enable bumblebeed

Add boot flags (depend on each machine, my laptop is):
sudo gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 acpi_osi=! acpi_osi=\"Windows 2009\" acpi_backlight=native idle=nomwait"
sudo update grub2

Check if bumblebee working

sudo apt-get install mesa-utils
primusrun glxinfo | grep OpenGL
lsmod | grep bbswitch
cat /proc/acpi/bbswitch
primusrun glxgears
cat /proc/acpi/bbswitch

There is a bug that prevent to run steam’s games using bumblebee, here is how to fix:

sudo apt-get install lib32stdc++6
cd ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv ~/backup/32
ln -fs /usr/lib32/
cd ~/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv ~/backup/64
ln -fs /usr/lib32/

Open games in steam: open steam -> libraries -> right click a game -> properties -> set launch options
primusrun %command%

Useful commands:

lspci | egrep 'VGA|3D'
lsmod | grep bbswitch
dmesg | grep bbswitch
dpkg -l | grep bumblebee
lsmod | grep nvidia
optirun -b none /usr/bin/nvidia-settings -c :8



One thought on “Install bumblebee Ubuntu 16.04.1

  1. Pingback: Install bumblebee on Ubuntu 16.10 | tienxuanvo

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s