>
> 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
> 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
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
> 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
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
> 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
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
___
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