Prevent brackets.io from using discrete graphics card
Water
|
01/06/2014
|

brackets.io is a brilliant open source code editor by Adobe. The editor is completely written using Javascript. Although sometimes I feel it a little bit slow, it is very powerful as a code editor for web development.

The only thing that annoys me is that the editor will trigger the discrete graphics card on my MacBook Pro Retina that will shorten the battery life of the computer. To solve this, we can add a flag to the Info.plist of application by using the following command:

defaults write /Applications/Brackets.app/Contents/Info.plist NSSupportsAutomaticGraphicsSwitching -bool YES

To remove the settings:

defaults delete /Applications/Brackets.app/Contents/Info.plist NSSupportsAutomaticGraphicsSwitching

If you want to check wheather you are using integrated or discrete display card, you can download gfxCardStatus.

Reference: https://github.com/adobe/brackets/issues/5028
Remark: The problem should be solved automatically on sprint 36 (not released yet as of this blog is published) that the flag is set in the bundle.