many linux applications can used in osx of
macports or other porting tools. 1 minor inconvenience in process many of these applications use x11.app, default triggers switch discrete gpu.
relatively easy prevent x11 making osx switch integrated gpu. necessary operation add
nssupportsautomaticgraphicsswitching key info.plist file inside x11.app. documentation key can found
here.
since x11.app owned system, xcode not let save modified info.plist file. easiest way around make addition using terminal, follows:
1. quit x11, , open terminal.
2. find location of info.plist file:
code:
[color="red"]$[/color] cd /applications/utilities/x11.app/contents
3. open file editor, e.g. emacs. have use "sudo" , enter password, otherwise won't allowed edit file.
code:
[color="red"]$[/color] sudo emacs info.plist
4. info.plist plain text file in xml format. after lsminimumsystemversion key, modify file such looks afterwards (i.e. add red stuff!):
code:
<key>nsprincipalclass</key> <string>x11application</string> <key>lsminimumsystemversion</key> <string>10.7.0</string> [color="red"]<key>nssupportsautomaticgraphicsswitching</key> <true/>[/color] </dict> </plist>
5. save file (ctrl-x, ctrl-s in emacs), exit editor, , start x11. should stop forcing discrete gpu on startup.
notes:
info.plist file or whole x11.app before changing anything.
i'm not sure how affects x11 applications need discrete gpu.
remember reading here. mentioned work other applications, haven't tried yet.
below screenshot of gfxcardstatus running x11 applications (xterm, xournal, xlogo).
click expand...