Popular Post Pavo Posted January 6, 2019 Popular Post Share Posted January 6, 2019 (edited) I would like to introduce you to a new app I just go done creating. AGPM Injector, its an app to generate an injector kext for Apple Graphics Power Management for discrete GPUs. AGPMInjector Edited January 6, 2019 by Pavo 16 4 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/ Share on other sites More sharing options...
SavageAUS Posted January 6, 2019 Share Posted January 6, 2019 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 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657471 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 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 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657477 Share on other sites More sharing options...
Sherlocks Posted January 6, 2019 Share Posted January 6, 2019 thank you Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657479 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 is it conflict with whatevergreen.kext? Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657488 Share on other sites More sharing options...
SavageAUS Posted January 6, 2019 Share Posted January 6, 2019 (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 January 6, 2019 by SavageAUS Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657490 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 (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 January 6, 2019 by Pavo 3 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657566 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 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? 1 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657569 Share on other sites More sharing options...
mitch_de Posted January 6, 2019 Share Posted January 6, 2019 Its only for Mojave and not High Sierra? EDIT: I build it for HS - works (generates the .kext - untested the .kext) AGPMInjector_HS.zip Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657570 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 IT displays below without generating this kext..what is difference? 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. 2 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657572 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 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? Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657573 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 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. Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657574 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 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. 1 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657575 Share on other sites More sharing options...
mitch_de Posted January 6, 2019 Share Posted January 6, 2019 No, your App shows error if started in HS. I buld it for 10.13 Deployment (uploaded HS Version few post before). Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657576 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 No, your App shows error if started in HS. I buld it for 10.13 Deployment (uploaded HS Version few post before). Will look into that, thanks for the feedback. Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657578 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 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... Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657586 Share on other sites More sharing options...
mitch_de Posted January 6, 2019 Share Posted January 6, 2019 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. Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657587 Share on other sites More sharing options...
mitch_de Posted January 6, 2019 Share Posted January 6, 2019 in my rig,,the control-id is 11... 0x11 = HEX value = 17 decimal 18 dec = 0x12 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657589 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 (edited) in my rig,,the control-id is 11... No, your control-id is 17 because hex converted to decimal is 0x11 hex = 17 decimal, 0x12 hex = 18 decimal Edited January 6, 2019 by Pavo 1 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657590 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 0x11 = HEX value = 18 decimal You mean 17 decimal 1 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657593 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 (edited) You mean 17 decimal that is right..it is 17....i also need this kext Edited January 6, 2019 by xtddd Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657594 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 You mean 17 decimal i have added this kext.now it display 12 hex....but the IGPU dont display. Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657596 Share on other sites More sharing options...
mitch_de Posted January 6, 2019 Share Posted January 6, 2019 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 1 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657597 Share on other sites More sharing options...
xtddd Posted January 6, 2019 Share Posted January 6, 2019 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..) the same issue as here Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657599 Share on other sites More sharing options...
Pavo Posted January 6, 2019 Author Share Posted January 6, 2019 i have added this kext.now it display 12 hex....but the IGPU dont display. 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 The kext injector is only for dGPUs for right now. I will look into adding support for iGPU in the future. 2 Link to comment https://www.insanelymac.com/forum/topic/337118-agpm-injector-kext-generator-app/#findComment-2657603 Share on other sites More sharing options...
Recommended Posts