Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu 12.04 on a Lenovo X220 notebook with onboard Intel graphics.

I purchased a so called external PCIe GPU (GeForce GTX 560 Ti) which is connected via the card slot of my laptop.

Now I want to switch to the Nvidia driver on boot when the eGPU is connected. If it is not, I want to switch back to the intel driver.

I've written a little script doing the job: It places the nvidia xorg.conf on startup (on egpu) or removes it (on intel).

The problem is that the nvidia driver changes some libraries (and maybe more) so I can't use the intel driver. The following error message occurs in xorg.log:

(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

My question is: Does anybody know how to switch back to the intel driver without completely removing the nvidia driver? Do I have to change some symlinks or something like this?

share|improve this question
    
These are the tools that exist for it: askubuntu.com/questions/108648/bumblebee-or-ironhide . They're noted on all the Nvidia Optimus threads and may apply to your situation. –  hbdgaf May 4 '12 at 10:05
    
I don't think that this is what I'm looking for. As I said, it's not a classical hybrid thing. I don't want to use both the intel and the nvidia driver in one session. The driver should be chosen on startup and remain until next boot. –  lebenlechzer May 6 '12 at 8:26
    
Yeah, you would choose intel all the time. Then manually load the nvidia driver without associating it with xorg so you could do opencl –  hbdgaf May 6 '12 at 8:28
add comment

1 Answer

Ubuntu provides the Alternatives system which you can use to configure Nvidia or Intel (Mesa libGL) in this case.

See my answer to No 3D support on Lenovo W520 with nVidia Optimus. You should run the mentioned update-alternatives and ldconfig commands before X is started.

share|improve this answer
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.