Everything was just fine. I have updated Intel driver using this installer. After installing the driver it was asked to restart and I did. Now
optirun is not working. Intel driver looks good I think. I run
nvidia-340 but nothings helps. Also restart the system couple of times. I found the following errors.
$optirun firefox [ 117.439917] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver [ 117.439954] [ERROR]Aborting because fallback start is disabled. $dmesg | tail [ 117.506015] nvidia: Unknown symbol drm_gem_prime_handle_to_fd (err -22) [ 117.506034] nvidia: disagrees about version of symbol drm_gem_private_object_init [ 117.506036] nvidia: Unknown symbol drm_gem_private_object_init (err -22) [ 117.506106] nvidia: disagrees about version of symbol drm_gem_handle_create [ 117.506107] nvidia: Unknown symbol drm_gem_handle_create (err -22) [ 117.506161] nvidia: disagrees about version of symbol drm_pci_exit [ 117.506162] nvidia: Unknown symbol drm_pci_exit (err -22) [ 117.506187] nvidia: disagrees about version of symbol drm_gem_prime_export [ 117.506188] nvidia: Unknown symbol drm_gem_prime_export (err -22)
Ubuntu 14.04 64bit $lspci | grep "VGA\|3D" 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) 04:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1) $dpkg --get-selections | grep -v deinstall | grep "bumblebee\|nvidia-\|bbswitch" bbswitch-dkms install bumblebee install bumblebee-nvidia install nvidia-340 install nvidia-settings