Bundled the modules from https://github.com/awilliam/asus-switcheroo for gentoo. I provided use flags for both nvidia and nouveau drivers.
Steps to Reproduce:
1. Install ebuild
2. Gain control of your graphics cards.
My graphics cards could be turned on or off.
Created attachment 272523 [details]
Created attachment 272525 [details]
modprobe.d file for prop. nvidia driver
This seemed easier than a complicated patch that would be just as large.
Created attachment 272527 [details]
This is to manage xorg.conf files and opengl settings when switching cards.
Created attachment 272529 [details]
Shell script to switch to nvidia and reload X.
Created attachment 272531 [details]
almost empty xorg.conf for use with nvidia drivers.
Just says to use nvidia drivers.
Created attachment 272533 [details]
ebuild for asus-switcheroo
slightly more elogs.
Now in sunrise under x11-drivers/asus-switcheroo
Has this moved out of sunrise now? I just checked that repo and can't find it.
(In reply to comment #8)
> Has this moved out of sunrise now? I just checked that repo and can't find it.
It is in sunrise, but is waiting to be moved to the reviewed branch of sunrise. Thus it shows up only at http://overlays.gentoo.org/proj/sunrise/browser/sunrise/x11-drivers/asus-switcheroo/. It'll hopefully be available through `layman -a sunrise' within a week.
I'm testing this out myself on an Asus UL30JT, but there needs to be some tweaking for kernel 2.6.28 and beyond. The ebuild needs to update to the latest Github commit, and some tweaking for:
* Using byo-switcheroo instead of asus-switcheroo
* Accomidating /etc/X11/xorg.conf.d instead of /etc/X11/xorg.conf (I use a Wacom tablet, and any tweaks can be broken out this way)
It seems that at least one ebuild related to this bug exists in the Sunrise overlay at the moment. However, I have to regretfully announce that after a long inactivity period the Sunrise project has been discontinued and the related overlay will be eventually removed. For this reason, I'd like to ask you to reevaluate the ebuilds and consider moving them. If you'd like to maintain a package from Sunrise in Gentoo, please take a look at our Proxy Maintainers  project.
Please make sure to take ebuilds from the unreviewed developer Sunrise repository  rather than the -reviewed one, since the latter has not been updated for over a year. While at it, please note that:
1. Adding a package to Gentoo requires declaring yourself as an active maintainer for it. All bugs regarding the package will be assigned to you, and you will be expected to maintain it.
2. Some packages may not be suitable for addition anymore. While there's no strong rules that would prevent you from adding a package, it may be a bad idea to add old-unmaintained packages that will shortly result in a large number of bugs reported with no solution. If that is the case, please close the bug as RESOLVED/OBSOLETE to make it easier to find packages worth adding.
3. Some of the bugs were already closed as WONTFIX/OBSOLETE/... while the relevant ebuild was kept in Sunrise. If you disagree with the original decision, you still can add the ebuild via proxy-maint.
4. Pleaes note that many of the Sunrise ebuilds are old and may be buggy. If you decide to move them, please make sure to update/clean them up. The proxy-maint team will also review your ebuilds, therefore making sure they land in Gentoo in good quality.
Once again, thank you for your contribution. We hope that you will still want to contribute to Gentoo, through proxy-maint or otherwise.