Contribute
Register

[Guide] Native Power Management for Laptops

Hi Mr. RehabMan,

Thank you again, i also think so :)

I'm starting over my installation. Thank you again, will post result after fresh install

Hi Mr. RehabMan,

Sorry took me a while to report back, this is what i'm doing :
- install OSX (using yosemite downloaded from store, create usb, and install)
- install clover for UEFI only in ESP
- using config_HD4600_4400_4200.plist as clover config.plist
- edit config.plist SMBIOS to use MackBookPro11,1
- put FakeSMC.kext, VoodooPS2Controller.kext, and RealtekRTL8111.kext in EFI/CLOVER/kexts/10.10
- put FakePCIID*.kext to /S/L/E
- reboot
- press F4 on clover bootscreen for dumping DSDT/SSDT

so now i have working graphics and LAN, no audio (wifi is out. still waiting compatible replacement card)

kextstat output :
$ kextstat | grep -y acpiplat
13 2 0xffffff7f81fae000 0x65000 0x65000 com.apple.driver.AppleACPIPlatform (3.1) <12 11 7 6 5 4 3 1>
$ kextstat | grep -y appleintelcpu
$ kextstat | grep -y applelpc
90 0 0xffffff7f81a76000 0x3000 0x3000 com.apple.driver.AppleLPC (1.7.3) <82 12 5 4 3>
$ kextstat | grep -y applehda

kextcache output :
$ sudo touch /System/Library/Extensions/ && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_XHCIMux.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HDMI_Audio.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HD_Graphics.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext

Please advice what to do next, my target is CPU power management working first.
Should i patch DSDT then generate SSDT using ssdtPRGen.sh or generate SSDT then patch DSDT.

i'm attaching IOReg file.

And thank you again for helping me.
 

Attachments

  • ioreg_vanilla.zip
    310.6 KB · Views: 187
Please advice what to do next, my target is CPU power management working first.
Should i patch DSDT then generate SSDT using ssdtPRGen.sh or generate SSDT then patch DSDT.

Patching OEM ACPI files is independent from generating SSDT.aml for CPU PM.
 
Patching OEM ACPI files is independent from generating SSDT.aml for CPU PM.

Hi RehabMan,

Thank you for guiding me.

I think now my installation is almost complete except for appleintelcpu not showing in kextstat and sleep when closing lid.

This is fresh install.
below is all the patch applied to my DSDT :
- Debug (add DSDT debug method, all instruments)
- Remove _PRW from LID
- Rename GFX0 to IGPU
- Brightness Fix (basic PNLF)
- OS check fix (Windows 8)
- Fix Mutex with non-zero sync level
- Haswell LPC
- Fn-F11 & Fn-F12 for brightness key ( manually - should find the original author for credit though. will update later)
- Lenovo G50-70 battery
- Fix HPET (wake restart if not applied)
- Fix IRQ
- Fix RTC

Patch for SSDT :
* SSDT-1
- Add SSDT debug extern declarations
* SSDT-2
- Add SSDT debug extern declarations
* SSDT-6
- Add SSDT debug extern declarations
- Rename GFX0 to IGPU

So for now below is everything that working on my Lenovo G40-70:
- HD4400 graphics (done really know QE/CI working or not, but playing Tropico 5 is smooth)
- battery level
- sleep (manually select sleep or hold power button for 1-2 second)
- LAN
- Sound (using voodooHDA)

Attached CLOVER folder, ioreg, terminal kextcache output, terminal kextstat output.

For now, i'm still confused why "kextstat|grep -y appleintelcpu" not showing anything.

And for LID close (i think because i patch SSDT with debug) now i'm getting this message on kernel messages
when closing/opening lid but still not sleeping.
5/30/16 7:04:47.000 PM kernel[0]: ACPIDebug: "GPE _L0E enter"
5/30/16 7:04:54.000 PM kernel[0]: ACPIDebug: "GPE _L0E enter"

so apparently LID0 don't have anything to do with my lid, because closing/opening not triggering LID0._LID event.
 

Attachments

  • LenovoG40-70.zip
    3.8 MB · Views: 203
I think now my installation is almost complete except for appleintelcpu not showing in kextstat and sleep when closing lid.

AppleIntelCPUPowerManagement.kext is not used with Haswell (or later) CPU.

And for LID close (i think because i patch SSDT with debug) now i'm getting this message on kernel messages
when closing/opening lid but still not sleeping.

so apparently LID0 don't have anything to do with my lid, because closing/opening not triggering LID0._LID event.

Do some further debugging of the _L0E method. Eventually it should Notify(LID0, ...) which will cause the lid handler in OS X to call LID0._LID, which should then return the correct status. A change from lid open to lid closed should trigger sleep.
 
AppleIntelCPUPowerManagement.kext is not used with Haswell (or later) CPU.



Do some further debugging of the _L0E method. Eventually it should Notify(LID0, ...) which will cause the lid handler in OS X to call LID0._LID, which should then return the correct status. A change from lid open to lid closed should trigger sleep.

Hi RehabMan,

Thank you so much for your help. I'm going to try to make guide for Lenovo G40-70 out of this.

I'll do some more digging then, hope to be able to solve lid close for sleep.
 
- no rollbacks of AppleACPIPlatform.kext

How do I know if I have rollbacks of this kext?
 
How do I know if I have rollbacks of this kext?

Check the version# in kextstat:
Code:
kextstat|grep -y acpiplat

It seems like if you installed a rollback, you would know it...
 
Hello everyone!

I literally cant explain whats going on :)

I have a toshiba satellite c660 with i3-2350m and gt520m.

I've alot of times tried to go away from NullCPU kext and sometimes it ending on "missing bluetooth cont...", sometimes just blackscreen, sometimes KP(which reason i couldn't get). I just though i MacOS working and i can live with that. Oh, also im using VoodooTSCSync, cuz it only way i found to remove cpus=1 from my life :)

But that was is not interesting part, as far i'm using NullCPU, i knew that my cpu works in high power mode, and my cpu temp didn't got hotter then 70 degrees(Celsius). But just 5 minutes ago, i wanted to watch how much Watts "eats" my CPU, and on what freq its working now, but i saw something strange...

This CPU, as i said with NullCPU looks like working with power management, because Intel Power Gadget shows that on idle its working around 0,8GHz and "eats" around 5,8Watt(IA: 2,20-2,30Watt), and on high load it can go to 2,30GHz and "eat" 19Watt(IA: 12Watt), but also it have a positions between them, just like when multiplier is changing...

RehabMan and other smart people, can you explain to me what a hell is going on on my laptop? :lol::lol:

P.S. i can give you any info that you will need(if you will need ofc)

P.S.S just noticed one more thing: sometimes freq just can drop to 0,8GHz and stay there for less than a minute(system become really laggy) but after that CPU freq going back to its normal state and keeps changing freq depending on system load

P.S.S.S added screenshots of Inter Power Gadget
 

Attachments

  • Снимок экрана 2017-08-31 в 17.29.31.png
    Снимок экрана 2017-08-31 в 17.29.31.png
    32.9 KB · Views: 200
  • Снимок экрана 2017-08-31 в 17.29.38.png
    Снимок экрана 2017-08-31 в 17.29.38.png
    34.1 KB · Views: 209
  • Снимок экрана 2017-08-31 в 17.29.44.png
    Снимок экрана 2017-08-31 в 17.29.44.png
    34.5 KB · Views: 195
Last edited:
Hello everyone!

I literally cant explain whats going on :)

I have a toshiba satellite c660 with i3-2350m and gt520m.

I've alot of times tried to go away from NullCPU kext and sometimes it ending on "missing bluetooth cont...", sometimes just blackscreen, sometimes KP(which reason i couldn't get). I just though i MacOS working and i can live with that. Oh, also im using VoodooTSCSync, cuz it only way i found to remove cpus=1 from my life :)

But that was is not interesting part, as far i'm using NullCPU, i knew that my cpu works in high power mode, and my cpu temp didn't got hotter then 70 degrees(Celsius). But just 5 minutes ago, i wanted to watch how much Watts "eats" my CPU, and on what freq its working now, but i saw something strange...

This CPU, as i said with NullCPU looks like working with power management, because Intel Power Gadget shows that on idle its working around 0,8GHz and "eats" around 5,8Watt(IA: 2,20-2,30Watt), and on high load it can go to 2,30GHz and "eat" 19Watt(IA: 12Watt), but also it have a positions between them, just like when multiplier is changing...

RehabMan and other smart people, can you explain to me what a hell is going on on my laptop? :lol::lol:

P.S. i can give you any info that you will need(if you will need ofc)

P.S.S just noticed one more thing: sometimes freq just can drop to 0,8GHz and stay there for less than a minute(system become really laggy) but after that CPU freq going back to its normal state and keeps changing freq depending on system load

NullCPU never needed with Clover.
Sounds like you didn't follow the guide...

Follow the Clover guide linked from the FAQ.
http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html

Although you should read the FAQ for an overview of issues, the Clover guide is linked from the first question: "Q. Where do I start?", just after the bold face "Clover Guide".
Here is a direct link, just to be clear:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

Also, your profile must be filled out with complete details as requested in the FAQ, again under "Q. Where do I start?". All seven details requested are equally important.

And if you have an issue (after following the guide), or on any other problem, you must provide a detailed description of the problem including information that helps us understand what you're doing. Always attach "Problem Reporting" files as per FAQ.
http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html
The required files and data are fully detailed in the last question in the FAQ:
"Q. What are typical "Problem Reporting" files?"
 
Back
Top