I took a look at AppleGraphicsControl the last few days and found a way to manually switch cards.
Warning: This will likely make your laptop explode and kill some kittens, so don't run it if you're not absolutely certain what you're doing. Also, I'm not responsible if something like this happens.
Code is at http://pastry.se/554001/
This talks directly to the switching driver, at the moment it's able to force a graphics card switch (regardless if you're in automatic switching mode or not) and to disable switching completely (but it's not possible to reenable it without a reboot atm), look at the code for more.
It's not finished yet, but i think it's possible to extend it so you can choose between automatic switching, always intel and always nvidia.
Another thing I'd like to do is to implement a black/whitelist for applications in dynamic switching but I don't know how it marks an application as bad exactly.
Edit: Everyone likes screenshots, so here's one with X11 running using the intel chip: click
Warning: This will likely make your laptop explode and kill some kittens, so don't run it if you're not absolutely certain what you're doing. Also, I'm not responsible if something like this happens.
Code is at http://pastry.se/554001/
This talks directly to the switching driver, at the moment it's able to force a graphics card switch (regardless if you're in automatic switching mode or not) and to disable switching completely (but it's not possible to reenable it without a reboot atm), look at the code for more.
It's not finished yet, but i think it's possible to extend it so you can choose between automatic switching, always intel and always nvidia.
Another thing I'd like to do is to implement a black/whitelist for applications in dynamic switching but I don't know how it marks an application as bad exactly.
Edit: Everyone likes screenshots, so here's one with X11 running using the intel chip: click