I already followed about 10 posts showing the same problem as mine. But all provided answers did not work.
I tried to install many different nvidia-XXX drivers versions - also I have edited the bumblebee.conf file. When I enter the command lspci -nn | grep '\[03' I get the output :
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
03:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 840M] 10de:1341] (rev a2)
Then I followed : Ubuntu 14.04 and Nvidia GeForce (840M) compatability on 64-bit laptop. It also didn't work, see NVIDIA X Server Settings - Screenshot. When I execute optirun firefox I get :
[ 516.003655] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)
[ 516.003685] [ERROR]Aborting because fallback start is disabled.
I tried so many things already, but nothing worked. I've been trying to fix this for several days ... but now I'm clueless. Does anyone know what to do?