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

[For discussion] Make optirun check for conflicting files #217

Closed
XapaJIaMnu opened this issue Jul 29, 2012 · 5 comments
Closed

[For discussion] Make optirun check for conflicting files #217

XapaJIaMnu opened this issue Jul 29, 2012 · 5 comments

Comments

@XapaJIaMnu
Copy link

Hey
As we all know most of the time you can't run the second X server with the nvidia card if you have some files in xorg.conf.d like 10-monitor.conf or 20-intel.conf, which specify special configuration.
However once the primary X server is loaded those files are not needed until it is reloaded, so you can safely rename them while you're running something with optirun and rename them back once optirun has finished running.

This could either be some simple code in optirun that checks for the most common offender (10-monitor.conf and 20-intel.conf) or more elaborate code that reads the configuration file for list of files that need to be renamed while optirun is running.

For example. On my machine I have 20-intel.conf in /etc/X11/xorg.conf.d . I try to run something with optirun and it fails because of this file. I manualy rename it to 20-intel.conf.bkk and now optirun runs just fine and the first X server has already optained whatever configuration it needed from that file and everything works. When i quit my application optirun should rename 20-intel.conf.bkk to 20-intel.conf.

I'm not very good at C but I'll try to make some patches.

@amonakov
Copy link
Contributor

No, adjusting optirun (or the bumblebee daemon) to move files is not an appropriate way to fix this problem.

However, it looks like if bumblebeed supplied a -configdir option to the X server, and that directory contained an empty .conf file, Xorg would stop there and not search in /etc/X11/xorg.conf.d, which would fix the problem nicely.

@XapaJIaMnu
Copy link
Author

Okay, sorry to bother then. I'm closing the issue.

@dust-n-bones
Copy link

Hi there!
I got one question...how do I use -configdir with bumblebeed?(My distro is Archlinux)
Thanks

@amonakov
Copy link
Contributor

amonakov commented Dec 2, 2012

It is not possible yet. The request to implement it is issue #222.

@dust-n-bones
Copy link

Thanks for the quick answer!

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

No branches or pull requests

3 participants