I've had nvidia-prime together with prime-indicator working when I first set it up.
A few days ago I've installed kernel 4.7; after doing this, I noticed that prime-indicator was showing the nvidia symbol, but actually using Intel graphics. Switching using nvidia-settings wasn't working either.
In both cases, optirun/primusrun tell me 'Could not load GPU driver'. So, I went to Bumblebee troubleshooting, and it seems like my nvidia .ko files are not present. (bumblebeed: Module 'nvidia' is not found.)
troubleshooting: "Then ensure that you the module is built."
How does one build these kernel modules?
I've tried using dkms autoinstall for my nvidia drivers, this was its output:
Building module: cleaning build area.... 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.7.0-040700-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/4.7.0-040700-generic/build LD=/usr/bin/ld.bfd modules.....(bad exit status: 2) ERROR (dkms apport): kernel package linux-headers-4.7.0-040700-generic is not supported Error! Bad return status for module build on kernel: 4.7.0-040700-generic (x86_64)
So, is my kernel not supported?
My setup: XPS15 9550 laptop, Ubuntu 16.04 on kernel 4.7.0-040700-generic.