I am experiencing a weird issue with bumblebee. I have installed bumblebee-nvidia with nvidia-364. Bumblebeed starts, but when I try to connect with optirun, optirun reports:
[ 1225.971452] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) [ 1225.971523] [ERROR]Aborting because fallback start is disabled.
The output of bumblebeed reports:
[ 1225.971295] [ERROR][XORG] (EE) [ 1225.971305] [DEBUG][XORG] Fatal server error: [ 1225.971313] [ERROR][XORG] (EE) [ 1225.971320] [DEBUG][XORG] Invalid argument for -config [ 1225.971327] [DEBUG][XORG] With elevated privileges, the file specified with -config must be [ 1225.971335] [DEBUG][XORG] a relative path and must not contain any ".." elements. [ 1225.971342] [DEBUG][XORG] Using default xorg.conf search path. [ 1225.971350] [ERROR][XORG] (EE) [ 1225.971357] [ERROR][XORG] (EE) [ 1225.971363] [DEBUG][XORG] Please consult the The X.Org Foundation support [ 1225.971369] [DEBUG][XORG] at http://wiki.x.org [ 1225.971376] [DEBUG][XORG] for help. [ 1225.971382] [ERROR][XORG] (EE) [ 1225.971388] [ERROR]X did not start properly
It appears to be correctly connected to the kernel module and have access to correct folders, primus is found, but the problem appears to be related to a bad path in arguments to start xorg. I can't check the path bumblebeed is trying to feed to xorg.
Anybody has some experience with this?
More info: I am aware that it's possible to use nvidia-prime to get switchable graphics and I can get it to work. That however means that I have to restart all programs to get to nvidia, which is impractical. It's much more practical to be able to use intel most of the time and use nvidia only for specific programs.
I am also aware that bumblebee is a bit outdated, but it can be operated even on Ubuntu 16.04 if set up properly (I had it working, but later I broke something unrelated in my system and had to reinstall it).