Hi everyone,

I am a newbie to Antergos, I used to use ubuntu linux but after not seeing much progress after 4 releases and the delayed packages updates, I decided to give arch linux a try, so I installed antergos to get familiar with the system and see how it works on my lenovo y50-70 laptop, and may be if everything seems to be ok, I would build my own arch from scratch the real way after practicing on a virtual box :) .

Ok, so now you know my life story. The sad part of it is that I have faced a really hard time trying to get my nvidia graphics card to work the way it used to work on ubuntu with (nvidia prime).

After spending a lot of time on the arch wiki, I found the best way to install my graphics card to be using the bumblebee package, so I followed the wiki guide, pacman -S bumblebee xf86-video-intel mesa nvidia lib32-mesa-libgl lib32-nvidia-utils (and the mesa-libgl which gets installed automatically when installing bumblebee)
added my self to the bumblebee group, enabled the bumblebeed service, and rebooted.
everything seemed to be ok since I didn’t run into any black screen or “Oh there is something wrong” on gdm (as happens when installing the nvidia driver alone).

I noticed that my graphics performance is good which indicates that the computer is using the nvidia gpu (although it doesn’t play 1080 videos or show 3d stuff smoothly, it did on ubuntu) , which is weird because as far as I understood the bumblebee tends to rely on the intel graphics and only use the nvidia gpu when demanded by optirun or by heavy rendering (before installing bumblebee I disabled using the nvidia gpu using the xorg.conf file and the gnome automatically disabled the interface animations and graphics performance was relatively slow (I have an HiDPI screen)).

Even weirder is that when I run for example: optirun glxspheres64

I get:

 [ 2780.931304] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 2780.931334] [ERROR]Aborting because fallback start is disabled. 

and:

 [ 4529.608324] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 4529.608454] [INFO]Configured driver: nvidia
[ 4529.608635] [DEBUG]optirun version 3.2.1 starting...
[ 4529.608655] [DEBUG]Active configuration:
[ 4529.608661] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 4529.608665] [DEBUG] X display: :8
[ 4529.608668] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[ 4529.608672] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 4529.608676] [DEBUG] Accel/display bridge: auto
[ 4529.608681] [DEBUG] VGL Compression: proxy
[ 4529.608684] [DEBUG] VGLrun extra options: 
[ 4529.608689] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 4529.608709] [DEBUG]Using auto-detected bridge virtualgl
[ 4529.704451] [INFO]Response: No - error: Could not load GPU driver

[ 4529.704465] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 4529.704470] [DEBUG]Socket closed.
[ 4529.704483] [ERROR]Aborting because fallback start is disabled.
[ 4529.704487] [DEBUG]Killing all remaining processes.

when running it with a verbose option.

this error used to say something about the nouveau module, but after editing /etc/bumblebee/bumblebee.conf and adding the Driver = “nvidia” option the error changed to this, this option was suggested by the bumblebee git wiki.

which leads to this other problem when running: modprobe -vv nvidia

 modprobe: INFO: custom logging function 0x40a1d0 registered
insmod /lib/modules/4.6.3-1-ARCH/extramodules/nvidia.ko.gz 
modprobe: INFO: Failed to insert module '/lib/modules/4.6.3-1-ARCH/extramodules/nvidia.ko.gz': No such device
modprobe: ERROR: could not insert 'nvidia': No such device
modprobe: INFO: context 0x12b4210 released

my system info:

 $ uname -a 
Linux yusuf 4.6.3-1-ARCH #1 SMP PREEMPT Fri Jun 24 21:19:13 CEST 2016 x86_64 GNU/Linux 
$ lspci -nnvk | grep -A10 "VGA\|NVIDIA"
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:3978]
	Flags: bus master, fast devsel, latency 0, IRQ 32
	Memory at d1000000 (64-bit, non-prefetchable) [size=4M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

--
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev a2)
	Subsystem: Lenovo Device [17aa:3978]
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at d0000000 (32-bit, non-prefetchable) [size=16M]
	Memory at a0000000 (64-bit, prefetchable) [size=256M]
	Memory at b0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	Expansion ROM at b2000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nouveau, nvidia_drm, nvidia

I have deleted the xorg.conf file so there is no any configurations.

I would like some help in understanding the current situation, and any suggestions for the best hybrid intel/nvidia setup.

Sorry for any mistakes, English is not my native language.

Thanks in advance.