Re: i5 & i7 auto graphics switching
Re: i5 & i7 auto graphics switching
- Subject: Re: i5 & i7 auto graphics switching
- From: Trygve Inda <email@hidden>
- Date: Sat, 18 Sep 2010 04:34:10 +0000
- Thread-topic: i5 & i7 auto graphics switching
>
> 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_t servicePort = CGDisplayIOServicePort (myCGDirectDisplayID);
>> CFDictionaryRef oldInfoDict = IODisplayCreateInfoDictionary (servicePort,
>> kNilOptions);
>
>
> A bit more complicated, sorry
> I'm doing it this way
>
> io_service_t servicePort = CGDisplayIOServicePort(cgID);
> io_service_t root = IODisplayForFramebuffer(servicePort, kNilOptions);
> NSDictionary* ioRegDict = nil;
> IORegistryEntryCreateCFProperties(root, (CFMutableDictionaryRef*)&ioRegDict,
> kCFAllocatorDefault, kNilOptions);
>
> with the IODisplayForFramebuffer function being defined in
> IOKitUser/graphics/IODisplayLib.c (it's part of the IOKitUser open source)
How do I link to this? Doing a search of the Frameworks on 10.6, I see no
IODisplayForFramebuffer function. Though I do see it in Google.
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