Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoswitch to optirun #190

Open
datacompboy opened this issue Jun 24, 2012 · 3 comments
Open

Autoswitch to optirun #190

datacompboy opened this issue Jun 24, 2012 · 3 comments

Comments

@datacompboy
Copy link

Hello!

what about automatic switch of programs, using some of LD_PRELOAD ways?
If we inject .so library, that will analyze calls, and if it detect access to 3D -- automatically runs optimus & replace ENV variables to use secondary video card?

That will allows automatic switch by heuristics, with allowance to override using ~/.bumblebee, /etc/bumblebee.conf in somethinkg like:
[/usr/bin/glxgears]
force=intel

[/usr/bin/glxspheres]
force=nvidia

@Lekensteyn
Copy link
Member

This would be a very nice thing to have and also take some efforts to implement. Maybe someone with a background on OpenGL programming can do something here?

@ArchangeGabriel ArchangeGabriel modified the milestone: Bumblebee Future Jan 2, 2015
@alem0lars
Copy link

Any updates?

@amonakov
Copy link
Contributor

A proof-of-concept was implemented in October 2012 as https://github.com/amonakov/libgl-switcheroo, but even back then the interest was minimal (understandably, I guess: explicit per-run control via optirun would satisfy most practical needs, and of course the approach used there, LD_LIBRARY_PATH pointing to a FUSE tree, is far from ideal).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants