View previous topic :: View next topic |
Author |
Message |
reith n00b
Joined: 13 Nov 2015 Posts: 16
|
Posted: Sat Mar 24, 2018 12:19 pm Post subject: Use two opengl interface concurrently |
|
|
I have a PC with two GPUs, one intel and and one nvidia and one monitor. I generally don't run GUI programs on nvidia card, just some cuda stuff. but sometimes i play games and I prefer nvidia card be used then.
So I defined two X screens and one server layout using both. HDMI cable is connected to nvidia card and VGA card is connected to intel. I can start i3 on both screens but the first i3 locks nvidia interface, so if I configured opengl to use x11-xorg and started i3 in intel's screen; if I start another i3 in nvidia screen and switch opengl interface to nvidia, i wont be able to run opengl software, glxinfo shouts:
Quote: | couldn't find RGB GLX visual |
If I select nvidia as opengl interface and start X with just nvidia screen, I'm able to start opengl softwares.
So, can I force some software (Steam here) to use nvidia opengl without eselect-opengl?
Thanks
Last edited by reith on Sat Mar 24, 2018 2:41 pm; edited 1 time in total |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
reith n00b
Joined: 13 Nov 2015 Posts: 16
|
Posted: Sat Mar 24, 2018 2:53 pm Post subject: |
|
|
It's desktop. It send output to just one card until os is loaded (actually ttys too are accessible by just one card) and in bios there is an option to choose that card. I defined multiple device and screens in xorg configuration so now I can run X programs on desired screen (DISPLAY) if I enabled Mutli-Monitor option in bios. My bios has some option like this https://goo.gl/images/qJbwZi |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
hhfeuer Apprentice
Joined: 28 Jul 2005 Posts: 185
|
Posted: Sun Apr 01, 2018 4:45 pm Post subject: |
|
|
Having different GLX providers depending on screen will only be possible with yet unreleased Xorg 1.20 (glxvnd). With Xorg 1.19 this should (in theory) be possible with two Xservers. Have the normal xorg.conf just configure the intel card and create a second xorg-nvidia.conf in /etc/X11 with a Section "Files" pointing to nvidia glx /usr/lib64/opengl/nvidia/lib
Then start the second Xserver using that xorg-nvidia.conf and have a working glvnd setup so the clients use the right opengl libs. |
|
Back to top |
|
|
|