I have been working on my gpu switching system for a while. I have recently decided to stick with the open source driver. Those drivers were taken from the repo of Xorg edgers. OK, i have followed all the instructions given by Ubuntu and I have also made the script Ubuntu is talking on his official page but there is something wrong with the switching. It seems that when I which to switch to the discrete GPU, the power is on for both card and the mark is on the integrated card. if I choose the integrated card the discrete goes off and the marker remains on the integrate card(obviously). I have noticed that when I switch with the script I,ve got this message saying switching to a specific card. when it comes to the integrated, the first time it says that it switches then it saws that it already switched which is different for the discrete. it keeps saying switching to.... I've got a AMD Radeon hd 7730m with an intel hd 4000 running with Ivybridge.
I didn't get a correct switching between my ATI and my Intel graphic cards with the open source driver. The only thing that I got was disabling the discrete graphic card with
The only way that I got both graphic cards working and switching as I wanted was installing the latest privative drivers from AMD (http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx) and following this tutorial: What is the correct way to install ATI Catalyst Video Drivers (fglrx)?
I hope that this helped you.