You are not logged in.

#1 2014-08-22 13:05:48

nullwax
Member
Registered: 2014-02-19
Posts: 6

hybrid graphics -- cannot access second GPU [SOLVED]

I have latest Arch on my desktop, with Intel 4770k including an integrated graphics. Recently I installed a Geforce GTX 750 Ti into the desktop and want to use this hybrid GPU system. Problem is after I installed nouveau + bumblebee + bbswitch, the system cannot access the second (nVidia) GPU:

 optirun -vv glxgears 

and the output is:

[   41.936801] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   41.937150] [DEBUG]optirun version 3.2.1 starting...
[   41.937160] [DEBUG]Active configuration:
[   41.937162] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   41.937165] [DEBUG] X display: :8
[   41.937167] [DEBUG] LD_LIBRARY_PATH: 
[   41.937169] [DEBUG] Socket path: /var/run/bumblebee.socket
[   41.937171] [DEBUG] Accel/display bridge: auto
[   41.937173] [DEBUG] VGL Compression: proxy
[   41.937175] [DEBUG] VGLrun extra options: 
[   41.937177] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[   41.937216] [DEBUG]Using auto-detected bridge virtualgl
[   41.950748] [INFO]Response: No - error: [XORG] (EE) systemd-logind: failed to get session: PID 924 does not belong to any known session

[   41.950767] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 924 does not belong to any known session

[   41.950769] [DEBUG]Socket closed.
[   41.950777] [ERROR]Aborting because fallback start is disabled.
[   41.950789] [DEBUG]Killing all remaining processes.

I looked through several posts, but still do not quite understand how to solve this problem. Besides, there is no
/proc/acpi/bbswitch
file in my directory. I am sure I have installed bbswitch already.

Thanks very much.

Last edited by nullwax (2014-08-22 15:34:22)

Offline

#2 2014-08-22 15:16:20

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

Re: hybrid graphics -- cannot access second GPU [SOLVED]

I am using a GT 770M and it works just fine for me. Instead of using nouveau have you tried only xf86-video-intel, nvidia, and bumblebee? Using optirun with these packages and it works for me like a charm.

Offline

#3 2014-08-22 15:28:56

nullwax
Member
Registered: 2014-02-19
Posts: 6

Re: hybrid graphics -- cannot access second GPU [SOLVED]

ArchAddict wrote:

I am using a GT 770M and it works just fine for me. Instead of using nouveau have you tried only xf86-video-intel, nvidia, and bumblebee? Using optirun with these packages and it works for me like a charm.

Thanks, ArchAddict. I remove nouveau things and install nvidia. Seems it works now. Quite strange, since previously there is a conflict when install official package nvidia.

However, there is another thing right now:

optirun -vv glxgears

and the last part of the output becomes:

[  269.013157] [INFO]Response: Yes. X is active.

[  269.013176] [INFO]Running application using virtualgl.
[  269.013265] [DEBUG]Process vglrun started, PID 1292.
/usr/bin/vglrun: line 241: exec: glxgears: not found
[  269.018514] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  269.018532] [DEBUG]Socket closed.

I am not quite familiar with graphics card things, and what does it mean by glxgears: not found? Thanks a lot.

Offline

#4 2014-08-22 15:31:45

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

Re: hybrid graphics -- cannot access second GPU [SOLVED]

Is exec glxgears in your ~/.xinitrc? Are you sure it is installed?

Grab it from the AUR if its not.
https://aur.archlinux.org/packages/glxgears/

Last edited by ArchAddict (2014-08-22 15:32:21)

Offline

#5 2014-08-22 15:33:15

nullwax
Member
Registered: 2014-02-19
Posts: 6

Re: hybrid graphics -- cannot access second GPU [SOLVED]

ArchAddict wrote:

I am using a GT 770M and it works just fine for me. Instead of using nouveau have you tried only xf86-video-intel, nvidia, and bumblebee? Using optirun with these packages and it works for me like a charm.

OK, my laziness. I got it. I missed mesa-demos in my system. It works now.

Many thanks.

Offline

#6 2014-08-22 15:33:46

nullwax
Member
Registered: 2014-02-19
Posts: 6

Re: hybrid graphics -- cannot access second GPU [SOLVED]

ArchAddict wrote:

Is exec glxgears in your ~/.xinitrc? Are you sure it is installed?

Grab it from the AUR if its not.
https://aur.archlinux.org/packages/glxgears/


Many thanks. big_smile

Offline

#7 2014-08-22 15:40:24

nullwax
Member
Registered: 2014-02-19
Posts: 6

Re: hybrid graphics -- cannot access second GPU [SOLVED]

ArchAddict wrote:

Is exec glxgears in your ~/.xinitrc? Are you sure it is installed?

Grab it from the AUR if its not.
https://aur.archlinux.org/packages/glxgears/

Hi, ArchAddict, if you do not mind, I have another related quick question. How to switch between the graphics cards?

Thanks very much.

Offline

#8 2014-08-22 15:49:33

ArchAddict
Member
Registered: 2014-06-29
Posts: 19

Re: hybrid graphics -- cannot access second GPU [SOLVED]

nullwax wrote:
ArchAddict wrote:

Is exec glxgears in your ~/.xinitrc? Are you sure it is installed?

Grab it from the AUR if its not.
https://aur.archlinux.org/packages/glxgears/

Hi, ArchAddict, if you do not mind, I have another related quick question. How to switch between the graphics cards?

Thanks very much.

I'm in no means an expert about this, but my theory is that programs use the integrated card if you do not use the optirun flag. I've concluded this due to battery life when using optirun etc.
I can be completely wrong though, check out the switcheroo section of the wiki, I haven't had time to read through it but it contains info on how to switch between them.

https://wiki.archlinux.org/index.php/bumblebee

Offline

#9 2014-08-22 16:53:12

tzoi516
Member
Registered: 2014-05-02
Posts: 76

Re: hybrid graphics -- cannot access second GPU [SOLVED]

I know this is solved, but, since I have a hybrid too, do you use a xorg.conf?

The reason I ask is because newer X doesn't require an xorg.conf file, so I keep mine to only a few lines since I use 2 monitors. The Xorg.0.log file always shows nvidia and intel drivers loading. Thanks.

Offline

#10 2014-08-24 18:41:35

nullwax
Member
Registered: 2014-02-19
Posts: 6

Re: hybrid graphics -- cannot access second GPU [SOLVED]

tzoi516 wrote:

I know this is solved, but, since I have a hybrid too, do you use a xorg.conf?

The reason I ask is because newer X doesn't require an xorg.conf file, so I keep mine to only a few lines since I use 2 monitors. The Xorg.0.log file always shows nvidia and intel drivers loading. Thanks.

Hi, tzoi516. Thanks for your reminder. In fact I did not check that. Right now, nvidia + bumblebee + xf86-video-intel works.

Offline

Board footer

Powered by FluxBB