If you are looking for a solution to GPU kernal panics on your Apple MacBookPro, please read the following.
I have discontinued use of gfxCardStatus to solve the MBP kernel panic problem as the issue is better solved on 2010 models with the nVidia GPU by the following hack:
https://github.com/julian-poidevin/MBPMid2010_GPUFix.
For other MBP models with the AMD graphics card I reccomend the following hack:
In the future I will also be replacing the known disfunctional capacitor on this model which will permanentaly solve the problem. More information can be found here:
https://www.youtube.com/watch?v=DzcgT_fiVTA
Due to the above fixes being a better solution for me, I will not likely be doing any further development on this fork of gfxCardStatus. Others are welcome to continue with it.
This is a fork from Cody Krieger's gfxCardStatus project: https://github.com/codykrieger/gfxCardStatus
The purpose of this project is to introduce a few changes that improve the way gfxCardStatus handles Integrated-Only mode. This is of particular interest to MacBookPro users that have the dreaded kernel panic problem from the nVidia GPU.
Currently gfxCardStatus v2.3 is unable to maintain Integrated-Only mode because OSX will sometimes force the machine back to Discrete mode when exiting certain apps. Unfortunately OSX is not aware that gfxCardStatus has set the "ONLY" flag (rather then dynamic switching), and so the system state will be changed to Discrete-Only, which is not usually desirable.
This version of gfxCardStatus will contain code changes that make it possible to maintain Integrated GPU as much as possible. Unfortunately it will not be possible to have 100% Integrated Usage because OSX does force to Discrete mode when exiting certain apps, which cannot be prevented. However, this version of gfxCardStatus will minimize the amount of time that the Discrete GPU is used by switching back to Integrated mode as soon as possible. And it will avoid getting trapped in Discrete-Only mode by the logical error explained above.
The initial idea for this project was created by an older fork by highandfew (https://github.com/highandfew/gfxCardStatus) some years ago that has not been pulled into the main project, nor has it been maintained ever since. This project will initially have highandfew's change integrated with the more recent code from gfxCardStatus, but will also provide a few more benefits, which shall be outlined here as they are completed.
An effort will be made to keep this project up to date with the main gfxCardStatus project it has been forked from, with regards to other bug fixes and enhancements which may come forth in the future.
Run the app, the menubar will have an icon added that should look like either an "i' or a "n". That is the menu for gfxCardStatus. if you want integrated-only mode, then select that from the menu. For the time being, this will need to be done every time you restart the app, it does not remember the setting between invocations. The icon in the menubar will tell you whether the MBP is currently in integrated or discrete mode.
Binary releases of this fork can probably be found here: https://github.com/steveschow/gfxCardStatus/releases
The fork can be installed via homebrew:
brew cask uninstall gfxcardstatus # if installed via homebrew
brew cask install steveschow-gfxcardstatus
Please see build instructions from: https://github.com/codykrieger/gfxCardStatus Note, the project currently has some build issues which I will try to correct here in this fork. If you have trouble building, then follow this workaround:
Pods
in Xcode, and build it, it builds some librariesI hope to have this problem corrected in this fork and hopefully can get pulled into the main project too, and I also hope to have binaries released on this repo, so stay tuned.
Licensed under the New BSD License.
Copyright (c) 2010-2012, Cody Krieger and other contributors All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CODY KRIEGER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.