• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: i5 & i7 auto graphics switching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i5 & i7 auto graphics switching


  • Subject: Re: i5 & i7 auto graphics switching
  • From: Trygve Inda <email@hidden>
  • Date: Mon, 13 Sep 2010 15:03:10 +0000
  • Thread-topic: i5 & i7 auto graphics switching

> 2010/9/12 <email@hidden>
>
>> 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 use
> IORegistryEntryCreateCFProperties to get the display properties. In
> the returned CFDictionary, the value associated with the
> IODisplayPrefsKey remains the same before/after any GPU switch.
>
> I don't know if this is documented anywhere, it's just the result of
> my observations.

How do I get the CGDirectDisplayID into IORegistryEntryCreateCFProperties?

Is this any different than:

io_service_t    servicePort = CGDisplayIOServicePort (myCGDirectDisplayID);
CFDictionaryRef oldInfoDict = IODisplayCreateInfoDictionary (servicePort,
kNilOptions);

T.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: i5 & i7 auto graphics switching (From: Stephane Madrau <email@hidden>)

  • Prev by Date: Re: CALayer instant content update
  • Next by Date: Re: CALayer instant content update
  • Previous by thread: Re: i5 & i7 auto graphics switching
  • Next by thread: Re: i5 & i7 auto graphics switching
  • Index(es):
    • Date
    • Thread