case 1:
when trying to "lock" to a GPU right after wake-up, the return value is correct however the GPU is not changed (changed to opposite? strange behavior)
case 2:
switching to nVIDIA even if "Intel Only" is selected (usually right after receive a notification like:
10/05/18 0:13:43 gfxCardStatus[190] The following notification has been triggered:
NSConcreteNotification 0x101834eb0 {name = NSApplicationDidChangeScreenParametersNotification; object = <NSApplication: 0x1018042b0>}
when user toggles Dynamic Switching in power settings in system preference panel, the new state sometimes isn't reflected in the menu bar (e.g. Have Dynamic On -> Change to nVIDIA ONLY -> turn Dynamic off in sys panel -> incorrect state in the menu, because the GPU wan't changed so no notification was send)
todo: look into documents to see if there's anyway to monitor the bit that sets Dynamic switching, if no, (use a timer? lame)