Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have an nvidia card for on monitor and a radeon (onboard) card for a second screen on Ubuntu 11.04.

Would it be possible to have one serverlayout use the nvidia libglx.so and the second serverlayout use the default xorg libglx.so?

Here's my xorg.conf at the moment: http://pastie.org/1962509

share|improve this question
add comment

migrated from stackoverflow.com May 23 '11 at 20:13

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 0 down vote accepted

Well, the question of which libglx.so is loaded by applications is determined by your shell environment, not by the X server itself (this makes sense when you consider that X11 was designed to be able to display applications running on a remote machine).

So, assuming that your xorg libglx.so is under /usr/X11R6/lib and that for your nvidia cards is under /usr/X11R6/lib/nvidia then you can do:

# for the nvidia drivers
env LD_LIBRARY_PATH=/usr/X11R6/lib/nvidia quake3
# for the Radeon version:
env LD_LIBRARY_PATH=/usr/X11R6/lib quake3

But that said, my reading of your X11 configuration states that you're not using Xinerama, but instead using separate screens that you (AFAICS) migrate windows between. Assuming that's true, then you won't have a problem.

Otherwise, I can potentially imagine a great deal of confusion happening when an an application which has the radeon glx drivers loaded starts up on the nvidia head.

share|improve this answer
    
Thanks. That pointed me in the right direction. I'm using the second screen for running an instance of xbmc on my tv downstairs. I'm now using this: sudo update-alternatives --set gl_conf /usr/lib/nvidia-current/ld.so.conf && sudo startx /root/xinitrc_xbmc -- :1 -nolisten tcp -novtswitch -sharevts -layout hdmi3 –  Leon May 24 '11 at 23:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.