Contribute
Register

GT 640 and AGPM unknownPlatform Fix.

Status
Not open for further replies.
Joined
Jan 18, 2011
Messages
62
Motherboard
GA-Z68X-UD3H-B3
CPU
i5-2500K
Graphics
GT640
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Just wanted to share what I did to get AGPM working. I'm using iMac12,2 as my sys def and I was getting the following in the system log

[AGPM Controller] unknownPlatform
AVF error: AVAHDGPURendererVP2VP3BoostVP3: AGPMSetBoost code = 0 returned 0xe00002c2 (ig)

So I decided to tweak the /System/Library/Extensions/AppleGraphicsPowerManagement.kext/Contents/Info.plist to get AGPM working. Since the GT 640 is similar to the GT 650M in the new Retina MacBookPro's Here is what I did. Obviously make a backup of the Info.plist before editing it.

I copied the info from the <key>Mac-C3EC7CD22292981F</key> section but replaced the <key>GFX0</key>with <key>Vendor10deDevice0fc1</key> which is the Vendor/device id for my card. Then I pasted it under the <key>iMac12,2</key> section right after the last <key>Vendor1002Device6740</key> </dict> section (See code block for clarity). Reason being, there isn't any GFX0 key's in the iMac12,2 section so I thought it would be better to use the VendorDevice key instead.
Code:
         <key>iMac12,2</key>
(lines removed for brevity)...
                    <key>Vendor1002Device6740</key>
                    <dict>
                        <key>control-id</key>
                        <integer>17</integer>
                        <key>max-power-state</key>
                        <integer>2</integer>
                    </dict>
The lines I added start here
                    <key>Vendor10deDevice0fc1</key>
                    <dict>
                        <key>BoostPState</key>
                        <array>
                            <integer>6</integer>
                            <integer>13</integer>
                            <integer>13</integer>
                            <integer>6</integer>
                        </array>
                        <key>BoostTime</key>
                        <array>
                            <integer>1</integer>
                            <integer>1</integer>
                            <integer>1</integer>
                            <integer>1</integer>
                        </array>
                        <key>Heuristic</key>
                        <dict>
                            <key>EnableEnergyPstate</key>
                            <integer>1</integer>
                            <key>EnergyPstate</key>
                            <integer>5</integer>
                            <key>ID</key>
                            <integer>4</integer>
                        </dict>
                        <key>control-id</key>
                        <integer>17</integer>
                    </dict>
and stop here, make sure and leave the last </dict> below this line.
                </dict>
Then do a sudo touch /System/Library/Extensions/ and check the system log to make sure it rebuilt the cache

After rebooting now I get the following: [AGPM Controller] build GPUDict by Vendor10deDevice0fc1.
Tested using Unigine and my score actually went up (which is probably just a lucky coincidence).
 
Thanks to share. I believed my setup have a correct power management for my graphic card. 3 states are reported with HWMonitor : 50 MHz, 405 MHz and full throttle : 772 MHz ;

But after a wake from sleep, the card stay in full throttle, it lost the power management.

So i went to check the console, and i have the same message errors as you ! My system is defined as iMac 12,2 as well ; do you think despite the power management effective at the first boot / AGPM.kext loaded i should tweak my plist ?


Best regards.
 
Thanks to share. I believed my setup have a correct power management for my graphic card. 3 states are reported with HWMonitor : 50 MHz, 405 MHz and full throttle : 772 MHz ;

But after a wake from sleep, the card stay in full throttle, it lost the power management.

So i went to check the console, and i have the same message errors as you ! My system is defined as iMac 12,2 as well ; do you think despite the power management effective at the first boot / AGPM.kext loaded i should tweak my plist ?


Best regards.

It might be worth a try but, it looks like you're running a GTX 580 so I would probably look to copy a definition that is closer to your model if there is one. As long as you backup the Info.plist you can always revert back, though I must admit that I have a cloned drive just in case the system becomes unbootable I can always boot into my clone revert to the saved plist and boot with UseKernelCache=No.
 
Same as you ; i always backup the files before a modification, and my main drive is cloned.

Could you check if your card still have a power management after a wake from sleep ?


Thanks
 
Thanks for sharing. This info fixed my sleep/wake issues. Since I also had an EVGA card, I used your patch exactly as shown and all is well.
 
Just wanted to share what I did to get AGPM working. I'm using iMac12,2 as my sys def and I was getting the following in the system log

[AGPM Controller] unknownPlatform
AVF error: AVAHDGPURendererVP2VP3BoostVP3: AGPMSetBoost code = 0 returned 0xe00002c2 (ig)

So I decided to tweak the /System/Library/Extensions/AppleGraphicsPowerManagement.kext/Contents/Info.plist to get AGPM working. Since the GT 640 is similar to the GT 650M in the new Retina MacBookPro's Here is what I did. Obviously make a backup of the Info.plist before editing it.

I copied the info from the <key>Mac-C3EC7CD22292981F</key> section but replaced the <key>GFX0</key>with <key>Vendor10deDevice0fc1</key> which is the Vendor/device id for my card. Then I pasted it under the <key>iMac12,2</key> section right after the last <key>Vendor1002Device6740</key> </dict> section (See code block for clarity). Reason being, there isn't any GFX0 key's in the iMac12,2 section so I thought it would be better to use the VendorDevice key instead.
Code:
         <key>iMac12,2</key>
(lines removed for brevity)...
                    <key>Vendor1002Device6740</key>
                    <dict>
                        <key>control-id</key>
                        <integer>17</integer>
                        <key>max-power-state</key>
                        <integer>2</integer>
                    </dict>
The lines I added start here
                    <key>Vendor10deDevice0fc1</key>
                    <dict>
                        <key>BoostPState</key>
                        <array>
                            <integer>6</integer>
                            <integer>13</integer>
                            <integer>13</integer>
                            <integer>6</integer>
                        </array>
                        <key>BoostTime</key>
                        <array>
                            <integer>1</integer>
                            <integer>1</integer>
                            <integer>1</integer>
                            <integer>1</integer>
                        </array>
                        <key>Heuristic</key>
                        <dict>
                            <key>EnableEnergyPstate</key>
                            <integer>1</integer>
                            <key>EnergyPstate</key>
                            <integer>5</integer>
                            <key>ID</key>
                            <integer>4</integer>
                        </dict>
                        <key>control-id</key>
                        <integer>17</integer>
                    </dict>
and stop here, make sure and leave the last </dict> below this line.
                </dict>
Then do a sudo touch /System/Library/Extensions/ and check the system log to make sure it rebuilt the cache

After rebooting now I get the following: [AGPM Controller] build GPUDict by Vendor10deDevice0fc1.
Tested using Unigine and my score actually went up (which is probably just a lucky coincidence).

Can you post your modded Info.plist? I am using the GT 640 and would prefer iMac12,2 for Airplay (using MacPro 3,1).......
 
Hi dm5253, thanks for sharing this info.

I am using GT 640 and having the same problem. Once it goes into sleep, can't be waken up. The screen just does not light up again, though the CPU fan starts to work as soon I click the mouse.

I'll try your method shortly.

Update: I made the changes on the kext as you described. I still can not wake the computer after sleep. Once I did wake it up after sleep, but that was 3 minutes after I pressed the power button. And the second time I tried, it took forever.
I also noticed that the debug LED on the mobo shows "A0" when it is normally working, and turns off during sleep when I press the power button. When I press the button again or click the mouse, the mobo wakes up and so do the debug LED and the harddisk. However, the LED shows "03" instead of "A0". And the LCD screen just does not light up. I am using HDMI connecting the GT 640 and the screen.

update2 (23 Sep.): When I finished typing the above paragraph, the screen turned on suddenly (at least 3 minutes after I pressed the power button to wake it up). And the debug LED still shows "03".

update3 (24 Sep.): I did a flesh reinstall, restored every kext and any other settings. Tried the manual sleep, it did sleep. I pressed a key, it woke up except the monitor. After several minutes, the monitor woke up. I tried a second time, the same result. I tried a third time by clicking the power button. It fell asleep. When I clicked the power button again to wake it up, I started timing. The case woke up immediately, but it took the monitor 7 minutes to come up and show the login window. Any body has any comments?

UPDATE4 (24 Sep. mid night): Finally the wake up problem was solved by leaving out the dsdt.aml during boot. I renamed dsdt.aml to something else, everything, including wake up, went well except audio, as the audio was defined in dsdt. Anyway, the wake up was back, one click for wake up, no delay, no 7 minutes! For the audio, installed "ML_Patched_AppleHDA_v2.3.0 (OS X 10.8)" and rebooted, it works like a charm, though no audio over HDMI, which I can live with. In short, I removed dsdt.aml, got wake up back at the cost of audio-over-HDMI. Now, my rig is 99.99% perfect.
 
I have a GTX 650 and just tried your patch and it resolved the UnknownPlatform error, but new I get a new error.


Oct 20 17:55:18 localhost PluginProcess[201]: AVF error: AGPMGetManagedPortForAccelerator returned 0x4 for VP4

Has anyone else seen this?
 
thanks a lot worked for me!

but now i have a trigger rebuild?
 

Attachments

  • Screen Shot 2012-11-12 at 2.13.04 AM.png
    Screen Shot 2012-11-12 at 2.13.04 AM.png
    140.9 KB · Views: 1,531
thanks a lot worked for me!

but now i have a trigger rebuild?

Same here...

By the way, how do you see graphic states in HWMonitor ? I see graphic fan speed and temp, but nothing related to the graphic card states. Is there any terminal trick or whatever to check this info ?

Thanks in advance !
 
Status
Not open for further replies.
Back
Top