https://github.com/Bumblebee-Project/Bumblebee/issues/61#issuecomment-3701038

 

 
  
  1. sudo apt-get install -f
  2. sudo apt-get clean
  3. sudo apt-get update 
  4. sudo apt-get install linux-headers-$(uname -r) 
  5. sudo dkms autoinstall -k $(uname -r) 
  6. sudo apt-get --purge --reinstall install nvidia-current 
  7. #Reboot or run:
  8. sudo modprobe -v -r nouveau 
  9. sudo restart bumblebeed 
  1. You had a PAE kernel for which the headers were not installed
  2. As a result, nvidia could not be built
  3. Therefore Bumblebee autodetected nouveau and uses that instead
  4. Ubuntu ships with horrible outdated nouveau drivers so that did not work

After rebuilding the nvidia driver, nouveau was still loaded. Since that takes precedence over "nvidia is available for loading" in auto-detection mode, the nvidia driver was not used.