Contribute
Register

macOS Native CPU/IGPU Power Management

Sorry - the attachments don't show names until you hover over it. Attaching IPG OnBoot and 1-min-after-sleep. I checked, the wake on lan is disabled - I may have played with that setting yesterday. Will try leaving it disabled today and see what happens. Thanks!

Update: Didn't realize that the System Preferences > Energy Saver UI without SSDT has 2 sliders one for display and one for sleep. With SSDT, you only get one slider.

Update 2: Confirm that sleep is working correctly after I verified Energy Saver UI to make sure all checkboxes (Prevent computer from..., Put hard disks...., Wake fo network..., Start up automatically..., Enable Power Nap) were unchecked

Just not sure what's causing kernel_task to take up CPU after wake.
 

Attachments

  • IPG-OnBoot.png
    IPG-OnBoot.png
    65.6 KB · Views: 88
  • IPG-1-min-after-sleep.png
    IPG-1-min-after-sleep.png
    56 KB · Views: 82
Last edited:
Hello toleda, thank you for all your help with PM. I have fixed the high CPU after wake because of kernel_task. Disabled the following items in BIOS - don't know which one fixed it - will have to try process of elimination to figure that out:

Changed XHCI from Smart Auto to Auto
Disabled VT-D - I used to have it disabled, but having it enabled didn't have an impact so had left it as default.
Disabled Wake On Lan - Even though this is disabled under Energy Saver, I disabled it in the BIOS.
Disabled Thunderbolt.
 
  • Description of problem
I can't actually tell if it worked. The instructions seem to say install and run IORegistryExplorer / Intel Power Gadget / AppleIntelInfo, then install the kext, then run the three programs again to verify that "it" worked. However I could really use some help on what to look at in these files to ensure that "it" worked. I'm attaching the before and after files. Fo all I know it may be working perfectly :) Thank you in advance for your advice!
  • OS X version/motherboard model/BIOS version/processor/graphics
Latest Sierra, ASUS Maximus Gene VIII / 2202 / i6700K / Nvidia 1070
  • Procedure/Guide Used
post #1 in this thread
  • Copy of IOReg/File/Save a Copy As…, verify file (no ioreg.txt, screenshots)
attached baseline and after
  • Copy of AppleIntelInfo/Terminal: cat /tmp/AppleIntelInfo.dat
    • Terminal/Shell/Export Text As...
attached baseline and after
  • Copy Of Console/All Messages (last boot)
    • Console/File/Save a Copy As...
console seems empty, no save item in file menu. attaching screenshot:
Screen Shot 2017-10-21 at 12.54.16 PM.png
  • Screenshot of Intel Power Gadget
baseline: Screen Shot 2017-10-21 at 12.25.59 PM.png
after:Screen Shot 2017-10-21 at 12.44.13 PM.png

  • Clover (files only, no text pasted to Post)
    • EFI/CLOVER/config.plist
    • DPCIManager/Misc/Boot Log
    • EFI/CLOVER/ACPI/Patched/dsdt (if installed)
    • EFI/CLOVER/ACPI/Patched/ssdt (all)
 

Attachments

  • Ahimsa_After.ioreg
    11.6 MB · Views: 121
  • Ahimsa_Baseline.ioreg
    11.9 MB · Views: 109
  • AppleIntelInfo_Baseline.txt
    12.4 KB · Views: 110
  • AppleIntelInfo_After.txt
    11.4 KB · Views: 108
  • config.plist
    7.2 KB · Views: 218
  • SSDT-XCPM.aml
    187 bytes · Views: 107
  • SSDT-HDMI-NVIDIA-PEG0.aml
    458 bytes · Views: 89
Baseline has XCPM working, no difference.
How did you enable XCPM baseline?

its been quite a while but I believe I ran the ssdtprgen script way back in May. I believe thats the only power related thing I've ever done.

the bug that I was hoping to fix was that sometimes when the computer is asleep it doesn't wake all the way up, and frequently if it sleeps for a long time when I come back its powered off. maybe those got fixed anyway :)
 
The attached ssdt replaces the ssdtPRGen ssdt.

Not a CPU PM issue, likely, graphics and network related.

thanks! I meant that maybe ssdtPRGen had enabled it, since it was active when I did the baseline measurements. Thats the only thing I can think of for why its already enabled.
 
Implemented SSDT-XCPM & SSDT-LPCB for my series 9 motherboard. Also have the HDMI aml file in EFI/CLOVER/ACPI/patched/

Can you please verify that CPU PM is working?

NOTE :- Noticed CPU goes to 4.4 GHz when ads play on this forum in Safari and Chrome after XCPM implementation. Expected?

Sierra 10.12.6, GA-z97x-ud7 th, bios version F6, i7 4790K, GeForce GTX 970
Loaded optimized defaults in bios, macOS won't come up. Had to disable IGFX to get it to work just like CODEDJ!

Files with suffix Baseline, XCPM and XCPMGeekBenchRun.
Have also included EFI folder.

MultiBeast Configuration - 2017-10-20 06:47:26 -----------------------------------------------------------------
Quick Start > UEFI Boot Mode
Drivers > Disk > 3rd Party SATA
Drivers > Disk > 3rd Party eSATA
Drivers > Disk > Intel Generic AHCI SATA
Drivers > Misc > FakeSMC v6.25-333-g05e0f4be.1759
Drivers > Misc > FakeSMC Plugins v6.25-333-g05e0f4be.1759
Drivers > Misc > FakeSMC HWMonitor Application v6.25-333-g05e0f4be.1759 Drivers > Network > Intel > IntelMausiEthernet v2.3.0
Drivers > USB > 3rd Party USB 3.0
Drivers > USB > 7/8/9 Series USB Support
Drivers > USB > Increase Max Port Limit 9 Series
Bootloaders > Clover v2.4k r4173 UEFI Boot Mode
Customize > System Definitions > iMac > iMac 14,2
Drivers > Graphics > NVIDIA Web Drivers Boot Flag
Drivers > Graphics > Nvidia Graphics Fixup
 

Attachments

  • XCMP PM.zip
    21.9 MB · Views: 83
CPU PM is working

Awesome! Thank you for the verification.

That means a single thread on a single core got to 4.4, 4.0 means all threads on all cores can be executing. Possible the ad maxes a core, not likely.
Googling suggests it could be a FLASH related issue on the browsers. Will keep an eye our for it once I implement USB Fixes & GPU PM


What was the symptom?
Couldn't allocate runtime area. Have tried with OsxAptioFix2Drv & OsxAptioFixDrv to no avail.


image1.JPG
 
Back
Top