Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use two opengl interface concurrently
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
reith
n00b
n00b


Joined: 13 Nov 2015
Posts: 16

PostPosted: Sat Mar 24, 2018 12:19 pm    Post subject: Use two opengl interface concurrently Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Mar 24, 2018 2:29 pm    Post subject: Reply with quote

Are you working with an Optimus laptop, or are you using a desktop machine on which an Nvidia card is installed? Because if you're using the latter, I would seriously like to know how you convinced your BIOS to output from both cards simultaneously. Isn't it normally a choice between on-board and discrete in the BIOS?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
reith
n00b
n00b


Joined: 13 Nov 2015
Posts: 16

PostPosted: Sat Mar 24, 2018 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Mar 24, 2018 3:07 pm    Post subject: Reply with quote

Very nice. ASUS makes good boards.

I can't think of any solution to your question offhand, but I am interested, so I will be following this thread.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
hhfeuer
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 185

PostPosted: Sun Apr 01, 2018 4:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum