Skip to content

macOS status bar app that allows control over the gpu on dual gpu macs

License

Notifications You must be signed in to change notification settings

randyoo/gSwitch

 
 

Repository files navigation

gSwitch

gSwitch allows control over the gpu on dual gpu macs. It also optionally gives a notification when the gpu changed.

Install

Either download the most recent release or build from the source.

To build from the source

You must have Carthage installed:

brew update
brew install carthage

And then bootstrap the frameworks:

carthage bootstrap

and then build in xcode

Roadmap

  • Localization? (If you want a language make an issue)
  • Polling for gpu vram and processor usage?
  • A settable list of applications/processes that are allowed to use discrete gpu when integrated only?

FAQ

Why does the app go back to dynamic switching when a display is plugged in? Unfortunately your mac is designed such that in order to use an external display it has to use the dedicated graphics card. And since you plugged in the cable I'm assuming you want to use the display. Unfortunately when you unplug the display, if you want to use a different mode, you will have to manually set it (at this time).

What is a dependent process vs a hungry process? A dependent process is one that is currently using your dedicated gpu. A hungry process is one that wants to use the dedicated gpu but is not allowed because you have set integrated only. If you change to dynamic switching or discrete only any process that was hungry will become dependent.

Why can't I change to integrated only when there is a dependent process? You can not change to integrated only when there is a dependency, because your dedicated gpu stays powered on. To prevent both gpus being power on the app prevents you from switching until you quit all dependent processes. (this is still being tested and might change in the future)

Why create this when the amazing gfxCardStatus exists? Well it had some problems on high sierra and I thought the notification system was a bit too happy so I rewrote the program in swift and made a bunch of changes. I'm also considering adding more features. Regardless, big shoutout to cody this project wouldn't have been possible without his gpu mux code.

Notes

I'm especially unsure if this will work if you have a mac older than 2011. (Let me know if it does!)

Since I wrote this in about a week I'm sure there are going to be issues.

About

macOS status bar app that allows control over the gpu on dual gpu macs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 85.7%
  • Objective-C 10.3%
  • HTML 3.7%
  • Shell 0.3%