Jump to content
Pavo

AGPM Injector kext generator app!!

46 posts in this topic

Recommended Posts

Advertisement

Good work,
Any chance of a list of cards this is helpful with or is it helpful for anyone with a dGPU?


Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites
 

Good work,
Any chance of a list of cards this is helpful with or is it helpful for anyone with a dGPU?


Sent from my iPhone using Tapatalk

As of right now it will only work with any natively supported dGPU

Share this post


Link to post
Share on other sites
Posted (edited)

And what can we do if X86PlatformPlugin is not loaded?

 

Edit: Never mind, fixed. What should we look for after creating the kext?

Is EFI folder fine or S/L/E?

Edited by SavageAUS

Share this post


Link to post
Share on other sites
Posted (edited)
 

is it conflict with whatevergreen.kext?

Whatevergreen handles AGDP not AGPM.

 

 

And what can we do if X86PlatformPlugin is not loaded?

 

Edit: Never mind, fixed. What should we look for after creating the kext?

Is EFI folder fine or S/L/E?

I have not tested it in S/L/E or L/E, only EFI/Clover/kexts/Other

Edited by Pavo

Share this post


Link to post
Share on other sites
 

Whatevergreen handles AGDP not AGPM.

 

I have not tested it in S/L/E or L/E, only EFI/Clover/kexts/Other

IT displays below without generating this kext..what is difference?

QQ20190106-232412.png

Share this post


Link to post
Share on other sites
 

IT displays below without generating this kext..what is difference?

QQ20190106-232412.png

AGPM can work by itself if you are using the correct SMBIOS and GPU combination. Most the time the AGPM settings are wrong though because most GPUs in real Macs are mobile GPUs. This AGPM kext injector generator app will generate a AGPM injector kext with the correct settings for discrete GPUs. Right now it only supports what SMBIOS AGPM supports natively but if there are use cases out there that the SMBIOS isn't listed in the app, I could use that feedback to update the app.

Share this post


Link to post
Share on other sites
 

AGPM can work by itself if you are using the correct SMBIOS and GPU combination. Most the time the AGPM settings are wrong though because most GPUs in real Macs are mobile GPUs. This AGPM kext injector generator app will generate a AGPM injector kext with the correct settings for discrete GPUs. Right now it only supports what SMBIOS AGPM supports natively but if there are use cases out there that the SMBIOS isn't listed in the app, I could use that feedback to update the app.

hi,pavo,,,so in my case ,,there is no need to use this kext..right?

Share this post


Link to post
Share on other sites
 

Its only for Mojave and not High Sierra?

 

It is actually OS version independent, the app will parse the System/Library/Extensions/AppleGraphicsPowerManagement.kext on the system you are running the app on and generate a injector kext for that version of the system. I have only tested it for HS and Mojave but theoretically it could work for older OSes also.

Share this post


Link to post
Share on other sites
 

hi,pavo,,,so in my case ,,there is no need to use this kext..right?

Depends..... From your sig I see you are using 7700k CPU which means you should be using iMac18,3 SMBIOS. The AGPM settings for that SMBIOS have settings for both iGPU and GFX0. But the control-id for the GFX0 device is 17, which is for mobile GPUs. discrete GPUs should be using control-id 18. So in theory yes you should use this app to generate a injector kext to change the AGPM settings to use the right control-id.

Share this post


Link to post
Share on other sites

No, your App shows error if started in HS. I buld it for 10.13 Deployment (uploaded HS Version  few post before).

Bildschirmfoto 2019-01-06 um 16.39.26.jpg

Share this post


Link to post
Share on other sites
 

No, your App shows error if started in HS. I buld it for 10.13 Deployment (uploaded HS Version  few post before).

Bildschirmfoto 2019-01-06 um 16.39.26.jpg

Will look into that, thanks for the feedback.

Share this post


Link to post
Share on other sites
 

Depends..... From your sig I see you are using 7700k CPU which means you should be using iMac18,3 SMBIOS. The AGPM settings for that SMBIOS have settings for both iGPU and GFX0. But the control-id for the GFX0 device is 17, which is for mobile GPUs. discrete GPUs should be using control-id 18. So in theory yes you should use this app to generate a injector kext to change the AGPM settings to use the right control-id.

in my rig,,the control-id is 11...

CCC.png

Share this post


Link to post
Share on other sites

For my iMac 13,2 the AppleGraphics... is same in HS und Mojave.

Left of first pic is HS , right is 10.4-

 

This App would change that  into , second pic. 

 

 

Bildschirmfoto 2019-01-06 um 16.59.10.jpg

Bildschirmfoto 2019-01-06 um 17.02.15.jpg

Share this post


Link to post
Share on other sites
 

in my rig,,the control-id is 11...

CCC.png

 

0x11 = HEX value = 17 decimal :)

18 dec = 0x12

 

 

Share this post


Link to post
Share on other sites
Posted (edited)
 

in my rig,,the control-id is 11...

CCC.png

No, your control-id is 17 because hex converted to decimal is 0x11 hex = 17 decimal, 0x12 hex = 18 decimal

Edited by Pavo

Share this post


Link to post
Share on other sites
Posted (edited)
 

You mean 17 decimal

that is right..it is 17....i also need this kext

Edited by xtddd

Share this post


Link to post
Share on other sites
 

You mean 17 decimal

ukDefuK.png

i have added this kext.now it display 12 hex....but the IGPU dont display.

1111111.png

Share this post


Link to post
Share on other sites

I tested now the generated .kext with my iMac 13,2.

kext seems only add / change the GFX0 AGPM part.

BUG: It deletes the IGPU AGPM part from the orig. .plist.

 

Pic  left side shows AGPM after using the kext = IGPU part is missing/deleted, rigth side before using the kext (original AppleGra..)

Workaround: I copied the IGPU part (for my iMac13,2 ) into the AGPM.kext :)

 

 

Bildschirmfoto 2019-01-06 um 17.18.22.jpg

Share this post


Link to post
Share on other sites
 

I tested now the generated .kext with my iMac 13,2.

kext seems only add / change the GFX0 AGPM part.

BUG: It deletes the IGPU AGPM part from the orig. .plist.

 

Pic  left side shows AGPM after using the kext = IGPU part is missing/deleted, rigth side before using the kext (original AppleGra..)

 

Bildschirmfoto 2019-01-06 um 17.18.22.jpg

the same issue as here

Share this post


Link to post
Share on other sites
 

i have added this kext.now it display 12 hex....but the IGPU dont display.

1111111.png

 

 

I tested now the generated .kext with my iMac 13,2.

kext seems only add / change the GFX0 AGPM part.

BUG: It deletes the IGPU AGPM part from the orig. .plist.

 

Pic  left side shows AGPM after using the kext = IGPU part is missing/deleted, rigth side before using the kext (original AppleGra..)

Workaround: I copied the IGPU part (for my iMac13,2 ) into the AGPM.kext :)

 

 

Bildschirmfoto 2019-01-06 um 17.18.22.jpg

The kext injector is only for dGPUs for right now. I will look into adding support for iGPU in the future.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×