Contribute
Register

[Guide] Native Power Management for Laptops

Joined
Dec 17, 2012
Messages
18
Motherboard
Samsung NP350V5C-S09IT-Clover
CPU
i7-3630QM/HM76
Graphics
HD 4000+HD 7670, 1366x768
Hi guys,

I got a PM that works in turbo mode only: 3,2ghz (32x).
Debug report attached for help.

Thank you in advance.
 

Attachments

  • debug_24677.zip
    2.8 MB · Views: 61

trs96

Moderator
Joined
Jul 31, 2012
Messages
18,923
Motherboard
GA-Z97X-UD3H-BK
CPU
i5-4690K
Graphics
HD4600 / RX 570
Mac
  1. MacBook Pro
  2. Mac mini
Mobile Phone
  1. Android
Joined
Aug 18, 2016
Messages
308
Motherboard
Inspiron 11 3153
CPU
i3-6100u
Graphics
HD 520
Disabled hibernation and got this message, just want to make sure its expected.

Code:
Warning: Idle sleep timings for "AC Power" may not behave as expected.
- Disk sleep should be non-zero whenever system sleep is non-zero.
 
Last edited:
Joined
Sep 22, 2011
Messages
1,082
Motherboard
HP EliteDesk 800 G4 Mini
CPU
I7-8700
Graphics
UHD 630
Mac
  1. Mac mini
Mobile Phone
  1. iOS
Sharing my own lesson learned:

I'm working on my 4th hackintosh and have found consistently across all platforms that native power management is best achieved by choosing the Mac Model that most closely approximates the hardware and also by choosing the closest AppleLPC.IONameMatch.

For example, I have a laptop that achieves optimal power management as a MacBookPro5,1 (which requires me to include CLOVER boot flag -no_compat_check to run High Sierra and Mojave and hopefully later OSes). Luckily, this laptop's LPC IOName is detected and matches a name already listed in AppleLPC.kext/Contents/Info.plist, but my other three systems needed a custom LPC.IOName injected via a DSDT patch.

Since USBInjectAll.kext doesn't support MacBookPro's older than 6,1, I needed to manually add MBP5,1 entries to USBInjectAll.kext/Contents/Info.plist (duplicated the entries for MBP7,1 and replaced "MacBookPro7,1" with MacBookPro5,1"). My HackBookPro5,1 has never been better.

Prior to this realization, I was always trying to force MacOS to run by choosing a Mac Model compatible with the OS. Now, I'll always choose the Mac Model that best approximates the hardware and then figure out how to get the OS to run on that MacModel.

In addition to the Mac Model and the LPC.IOName, I suspect that choosing the correct OS Identification for "Darwin" makes a difference. Both of my laptops include _OSI conditions for "Linux" in their DSDTs. I'm still testing, but it appears to me that setting the "Darwin" equivalency to "Linux" for the OS Identification in the DSDT results in the lowest CPU / GPU temps (for my laptops that specify "Linux" conditions in the DSDT). I suspect that other systems can be optimized by experimenting with and choosing the best "Darwin" _OSI equivalency (which may not be "Linux").
 
Last edited:
Joined
Oct 16, 2018
Messages
102
Motherboard
Matebook 13 Eu
CPU
i7-8565U
Graphics
UHD 620
Mobile Phone
  1. Android
Can't find "as CPU PM is already enabled with the plists provided by the guide." that .plist. I've read the guide like 2 or 3 times. I have a whiskey lake and my laptop has a very bad battery drain
 
Joined
May 1, 2019
Messages
43
Motherboard
Dell Inspiron 15 7586
CPU
i7-8565U
Graphics
UHD 620, 3840 x 2160
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Joined
Dec 18, 2013
Messages
484
Motherboard
Lenovo Yoga C740
CPU
i7-10510U
Graphics
Intel UHD Graphics
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. Android
Hi all,

Since the very beginning I'm experiencing problems regarding sleep/wake with my older Toshiba KIRA, which is a great, portable laptop.

Most of the time putting it to sleep works fine (waking it up is different story) but sometimes it just breaks and the computer will not go to sleep. It just remains on, everything is off though. I have to turn it off then and the sleep status is gone.

When it works I cannot wake it using the power button, (I deactivated the lid wake) it simply takes a break and turns itself off.

The only possibility to wake up properly is to use the Logitech wireless mouse: if the receiver was in one of the USB ports I can switch the mouse on, press a button and the laptop wakes up properly.

So in general it should work but then sometimes it doesn't. Actually maybe 80% of the time it doesn't.

Another problem is that the battery status is delayed by 20-30 seconds. Sometimes it also stops working and the sleep/wake also doesn't work.

Currently I have Mojave running, with all the patches installed.

Any ideas? Thanks in advance!


Problem Reporting

Be precise about the nature of the problem.

Read FAQ, "Problem Reporting". Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 

Attachments

  • debug_19467.zip
    3.3 MB · Views: 85
Joined
Aug 30, 2019
Messages
18
Motherboard
Gigabyte P65 (Gigabyte Aero 15 gen1)-Clover
CPU
i7-7700HQ / HM175
Graphics
HD 630 / GTX 1060, 1920*1080
Mobile Phone
  1. Android
  2. iOS
Hi, I think the native power management of my cpu is working. However, the battery, which is 94Wh, still drains fast, approx 40% an hour...And I have already disabled by d-gpu
截屏2019-10-17上午8.55.40.png
 
Last edited:
Joined
Oct 17, 2013
Messages
146
Motherboard
Chuwi AeroBook Plus
CPU
Intel i5 6287U
Graphics
HD550, 3840 x 2160
Mobile Phone
  1. iOS
Hi, I think the native power management of my cpu is working, but the CPU not going down from 1,2Ghz ( on the specs of cpu tell about 500mhz). For the boost it's ok 1.3Ghz. I don't know if i can modify anything to slow down and have less battery problem (the battery in about 2 hours it's off) when with windows I can use all the day.

I attach the consuete log.
 

Attachments

  • debug_23918.zip
    5.2 MB · Views: 83
Top