Re: i5 & i7 auto graphics switching

2010-09-17 Thread Trygve Inda
> > Le 13 sept. 2010 à 17:03, Trygve Inda a écrit : > >> How do I get the CGDirectDisplayID into IORegistryEntryCreateCFProperties? >> >> Is this any different than: >> >> io_service_tservicePort = CGDisplayIOServicePort (myCGDirectDisplayID); >> CFDictionaryRef oldInfoDict = IODisplayCreat

Re: i5 & i7 auto graphics switching

2010-09-13 Thread Trygve Inda
> 2010/9/12 > >> When it is running on the slow card, the CGDirectDisplayID will be x, and on >> the fast card it will be y. Is there anyway to derive x from y or y from x? >> I am trying to be able to uniquely identify screens even before/after a >> processor switch. > > Given a CGDirectDisplay

Re: i5 & i7 auto graphics switching

2010-09-13 Thread Stephane Madrau
2010/9/12 > When it is running on the slow card, the CGDirectDisplayID will be x, and on > the fast card it will be y. Is there anyway to derive x from y or y from x? > I am trying to be able to uniquely identify screens even before/after a > processor switch. Given a CGDirectDisplayID, you can

Re: i5 & i7 auto graphics switching

2010-09-12 Thread Trygve Inda
> On Sep 11, 2010, at 10:57 PM, Trygve Inda wrote: > >>> On Sep 11, 2010, at 10:52 AM, Trygve Inda wrote: >>> Is there a way to be notified when the graphic card is switched? >>> >>> NSApplicationDidChangeScreenParametersNotification >> >> When it is running on the slow card, the CGDirectD

Re: i5 & i7 auto graphics switching

2010-09-12 Thread Ken Thomases
On Sep 11, 2010, at 10:57 PM, Trygve Inda wrote: >> On Sep 11, 2010, at 10:52 AM, Trygve Inda wrote: >> >>> Is there a way to be notified when the graphic card is switched? >> >> NSApplicationDidChangeScreenParametersNotification > > When it is running on the slow card, the CGDirectDisplayID wi

Re: i5 & i7 auto graphics switching

2010-09-11 Thread Trygve Inda
> On Sep 11, 2010, at 10:52 AM, Trygve Inda wrote: > >> Is there a way to be notified when the graphic card is switched? > > NSApplicationDidChangeScreenParametersNotification > > That fires when the GPU is switched, as well as well displays are rearranged > or reconfigured. > > Regards, > Ken

Re: i5 & i7 auto graphics switching

2010-09-11 Thread Ken Thomases
On Sep 11, 2010, at 10:52 AM, Trygve Inda wrote: > Is there a way to be notified when the graphic card is switched? NSApplicationDidChangeScreenParametersNotification That fires when the GPU is switched, as well as well displays are rearranged or reconfigured. Regards, Ken ___

i5 & i7 auto graphics switching

2010-09-11 Thread Trygve Inda
Is there a way to be notified when the graphic card is switched? Some flags in CGDisplayRegisterReconfigurationCallback perhaps? I am trying to keep track if physical displays on multi-screen systems. With NSScreen, the screen number will change if for example the user has a laptop with an exter