Contribute
Register

[Guide] Native Power Management for Laptops

You did not implement HWP correctly.
iMac17,1 is not enabled for HWP.
To enable HWP correctly, you must use an SMBIOS that is enabled for HWP or patch the X86PlatformPlugin plist.

Tip: Remove HPW related settings in your config.plist... they are worthless.

I've followed your advise to change SMBIOS into to macbook pro 13,1 and removed HPW related settings, but HPW still somehow disabled after sleep mode.

Before sleep
Code:
Last login: Tue Jun 20 02:41:24 on console
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82837000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 867C81BE-EA01-3A65-89F4-06D78E6514CA <12 11 7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y appleintelcpu
   25    0 0xffffff7f82453000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) 9E383328-0713-3AD3-BC4A-3A2A5646FEE5 <7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applelpc
  110    0 0xffffff7f81fd6000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <97 12 5 4 3>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applehda
  104    1 0xffffff7f824f8000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <103 102 89 12 7 6 5 4 3 1>
  125    0 0xffffff7f8267a000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <124 114 104 103 102 89 6 5 4 3 1>
  126    0 0xffffff7f824f4000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (278.56) 06C594F4-3E5D-3BF4-A783-90C741DAA3F0 <4 3>
TongChunYips-iMac:~ tongchunyip$
Code:
Last login: Tue Jun 20 02:46:05 on ttys000
TongChunYips-iMac:~ tongchunyip$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
KernelCache ID: F879A83D7D83CCFA8FA9600D9CA740E7
symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache") failed 17 (File exists) <createPrelinkedKernel 2795>
TongChunYips-iMac:~ tongchunyip$

After sleep

Code:
Last login: Tue Jun 20 02:47:22 on ttys000
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82837000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 867C81BE-EA01-3A65-89F4-06D78E6514CA <12 11 7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y appleintelcpu
   25    0 0xffffff7f82453000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) 9E383328-0713-3AD3-BC4A-3A2A5646FEE5 <7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applelpc
  110    0 0xffffff7f81fd6000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <97 12 5 4 3>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applehda
  104    1 0xffffff7f824f8000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <103 102 89 12 7 6 5 4 3 1>
  125    0 0xffffff7f8267a000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <124 114 104 103 102 89 6 5 4 3 1>
  126    0 0xffffff7f824f4000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (278.56) 06C594F4-3E5D-3BF4-A783-90C741DAA3F0 <4 3>
TongChunYips-iMac:~ tongchunyip$

Code:
Last login: Tue Jun 20 02:50:15 on ttys000
TongChunYips-iMac:~ tongchunyip$
TongChunYips-iMac:~ tongchunyip$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
KernelCache ID: F879A83D7D83CCFA8FA9600D9CA740E7
symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache") failed 17 (File exists) <createPrelinkedKernel 2795>
TongChunYips-iMac:~ tongchunyip$
 

Attachments

  • CLOVER_IOREG.zip
    5.1 MB · Views: 76
I've followed your advise to change SMBIOS into to macbook pro 13,1 and removed HPW related settings, but HPW still somehow disabled after sleep mode.

Before sleep
Code:
Last login: Tue Jun 20 02:41:24 on console
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82837000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 867C81BE-EA01-3A65-89F4-06D78E6514CA <12 11 7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y appleintelcpu
   25    0 0xffffff7f82453000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) 9E383328-0713-3AD3-BC4A-3A2A5646FEE5 <7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applelpc
  110    0 0xffffff7f81fd6000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <97 12 5 4 3>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applehda
  104    1 0xffffff7f824f8000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <103 102 89 12 7 6 5 4 3 1>
  125    0 0xffffff7f8267a000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <124 114 104 103 102 89 6 5 4 3 1>
  126    0 0xffffff7f824f4000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (278.56) 06C594F4-3E5D-3BF4-A783-90C741DAA3F0 <4 3>
TongChunYips-iMac:~ tongchunyip$
Code:
Last login: Tue Jun 20 02:46:05 on ttys000
TongChunYips-iMac:~ tongchunyip$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
KernelCache ID: F879A83D7D83CCFA8FA9600D9CA740E7
symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache") failed 17 (File exists) <createPrelinkedKernel 2795>
TongChunYips-iMac:~ tongchunyip$

After sleep

Code:
Last login: Tue Jun 20 02:47:22 on ttys000
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82837000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 867C81BE-EA01-3A65-89F4-06D78E6514CA <12 11 7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y appleintelcpu
   25    0 0xffffff7f82453000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) 9E383328-0713-3AD3-BC4A-3A2A5646FEE5 <7 6 5 4 3 1>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applelpc
  110    0 0xffffff7f81fd6000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <97 12 5 4 3>
TongChunYips-iMac:~ tongchunyip$ kextstat|grep -y applehda
  104    1 0xffffff7f824f8000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <103 102 89 12 7 6 5 4 3 1>
  125    0 0xffffff7f8267a000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <124 114 104 103 102 89 6 5 4 3 1>
  126    0 0xffffff7f824f4000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (278.56) 06C594F4-3E5D-3BF4-A783-90C741DAA3F0 <4 3>
TongChunYips-iMac:~ tongchunyip$

Code:
Last login: Tue Jun 20 02:50:15 on ttys000
TongChunYips-iMac:~ tongchunyip$
TongChunYips-iMac:~ tongchunyip$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
KernelCache ID: F879A83D7D83CCFA8FA9600D9CA740E7
symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache") failed 17 (File exists) <createPrelinkedKernel 2795>
TongChunYips-iMac:~ tongchunyip$

Just guessing (because I find HWP not useful so far, so haven't used it that much...)

Probably your CPU is not matching against one of the FrequencyVectors (3100/3400) in the X86PlatformPlugin.kext plist. Because your CPU is nominal x30, not x31 or x34. Or if it is matching against top turbo, yours is x35, again not x31 or x34. Look at the plist and you'll see...

Look into freqVectorsEdit.sh.

Also, why are you running Sierra 10.12.3?

Note: You need to use AppleIntelInfo.kext to check HWP enablement (must be unloaded prior to sleep, then reloaded after wake in order to check). No idea why you provided kextstat/kextcache output before sleep/after sleep.... And FYI, your output demonstrates you didn't install your kexts correctly...
 
Last edited:
Just guessing (because I find HWP not useful so far, so haven't used it that much...)

Probably your CPU is not matching against one of the FrequencyVectors (3100/3400) in the X86PlatformPlugin.kext plist. Because your CPU is nominal x30, not x31 or x34. Or if it is matching against top turbo, yours is x35, again not x31 or x34. Look at the plist and you'll see...

Look into freqVectorsEdit.sh.

Also, why are you running Sierra 10.12.3?

Note: You need to use AppleIntelInfo.kext to check HWP enablement (must be unloaded prior to sleep, then reloaded after wake in order to check). No idea why you provided kextstat/kextcache output before sleep/after sleep.... And FYI, your output demonstrates you didn't install your kexts correctly...

I am using 10.12.3 because it's the last version that intelbacklight.kext works. And, yes , I used Appleintelinfo.kext for checking and the result remained the same. As I am not so familiar with the output, do you mean I have to reinstall IntelBacklight.kext and AppleMobileDevice.kext?
 
I am using 10.12.3 because it's the last version that intelbacklight.kext works. And, yes , I used Appleintelinfo.kext for checking and the result remained the same.

Try update to 10.12.5 (current version).
Also, I think you need to fix the FrequencyVectors (as I mentioned).
Or forget about it, and just use an non-HWP SMBIOS.

As I am not so familiar with the output, do you mean I have to reinstall IntelBacklight.kext and AppleMobileDevice.kext?

As per Clover guide (post #2), all kexts you need should be installed to the system volume.
FakeSMC.kext is always a "kext you need", but it is not installed.
Read guide:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/
 
And it may be a good idea to disable the other hibernation related options:
Code:
pmset -a standby 0
pmset -a autopoweroff 0
Hi RehabMan :)
Notice those 2 hibernate related commands should be run as root, so should be changed to:
Code:
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0
 
Hi RehabMan :)
Notice those 2 hibernate related commands should be run as root, so should be changed to:
Code:
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0

Yes. Changed.
 
I'm having a very weird issue with power management.

I have HWP enabled and working, with injected frequency vectors. I have noticed that my battery life vastly improves if I briefly plug in an AC adapter. I don't have to charge the computer, just have to get it to recognize the AC adapter and battery management will improve after the AC adapter is unplugged

I'm using SSDT-PluginType1 as opposed to the full SSDT from ssdtprgen.sh, and X86PlatformPlugin is loaded.
 

Attachments

  • CLOVER.zip
    2.2 MB · Views: 82
  • IOReg.zip
    599.7 KB · Views: 99
  • Terminal Output.zip
    2.2 KB · Views: 73
Back
Top