Contribute
Register

[Guide] Native Power Management for Laptops

This my hack, is it work correctly, sir?
 

Attachments

  • Untitled.png
    Untitled.png
    680.6 KB · Views: 106
This my hack, is it work correctly, sir?

Why do you continue to ask the same question, when it has already been answered multiple times?
 
Why do you continue to ask the same question, when it has already been answered multiple times?
sorry, forgive me. Cause i see only 2step in CPU-s.Thanks a lot!
 
@RehabMan : would i ask about Sleep mode in this thread? If not please correct it, thanks again! I fix DSDT and now sleep is work, but seem slow (time from press sleep to done). I check with this command:
Code:
pmset -g assertions
Here is the output from pmset... Looks like IODisplayWrangler have the problem or not? Anything wrong, sir?
Code:
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 183(coreaudiod): [0x0000078a00018115] 00:32:26 PreventUserIdleSystemSleep named: "com.apple.audio.GDAudioDevice_UID.context.preventuseridlesleep"
    Created for PID: 874.
   pid 96(hidd): [0x00000cfd00098278] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294969842.17"
    Timeout will fire in 120 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=506  level=255 0x4=USB mod=1/1/70, 8:00 AM description=com.apple.usb.externaldevice.1d160000 owner=IOUSBHostDevice
   id=507  level=255 0x4=USB mod=1/1/70, 8:00 AM description=com.apple.usb.externaldevice.1d150000 owner=Integrated_Webcam_HD
   id=508  level=255 0x4=USB mod=1/1/70, 8:00 AM description=com.apple.usb.externaldevice.1d180000 owner=USB2.0-CRW
   id=509  level=255 0x4=USB mod=1/1/70, 8:00 AM description=com.apple.usb.externaldevice.1d120000 owner=USB Optical Mouse
Idle sleep preventers: IODisplayWrangler

and with this:
Code:
log show --style syslog | fgrep "Wake reason"
Output (just the last few lines of text):
Code:
2018-05-14 21:12:38.507059+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:12:38.507061+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:13:38.078090+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:13:38.078093+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:14:34.685935+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:14:34.685938+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:15:30.504494+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-14 21:15:30.504497+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 05:59:48.139882+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 05:59:48.139885+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:00:42.943548+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:00:42.943550+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:42:34.700089+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:42:34.700092+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:43:30.450345+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:43:30.450347+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:44:26.302267+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:44:26.302270+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:45:22.462048+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:45:22.462051+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:46:18.213851+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:46:18.213854+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:47:13.083765+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:47:13.083768+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:48:09.088708+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:48:09.088711+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:49:05.101033+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:49:05.101035+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:50:00.065688+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:50:00.065690+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:50:56.260220+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:50:56.260222+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:51:52.409261+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:51:52.409264+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:52:48.038342+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:52:48.038345+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:53:43.183382+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:53:43.183385+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:54:39.255685+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:54:39.255687+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:55:35.157063+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:55:35.157065+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:56:30.401779+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:56:30.401781+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:57:26.148589+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:57:26.148592+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:58:22.794626+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:58:22.794628+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:59:18.315276+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 06:59:18.315279+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:00:14.227504+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:00:14.227507+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:01:08.125637+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:01:08.125640+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:02:03.197404+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:02:03.197406+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:02:59.190802+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:02:59.190804+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:03:55.048387+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:03:55.048390+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:04:49.905543+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:04:49.905545+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:05:46.048117+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:05:46.048120+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:06:41.279017+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:06:41.279020+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:07:37.217322+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:07:37.217324+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:08:33.105974+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:08:33.105977+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:09:29.091212+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:09:29.091215+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:10:24.203878+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:10:24.203880+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:11:20.224261+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:11:20.224263+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:12:15.978048+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:12:15.978051+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:13:11.146931+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:13:11.146933+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:14:07.334129+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:14:07.334132+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:15:03.042347+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:15:03.042350+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:15:59.039930+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:15:59.039933+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:16:54.086144+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:16:54.086147+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:17:50.291752+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:17:50.291754+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:18:46.358951+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:18:46.358953+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:19:41.032582+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:19:41.032595+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:20:35.925403+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
2018-05-15 07:20:35.925406+0700  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: GLAN EH02 XHC EH01
 
@RehabMan : would i ask about Sleep mode in this thread? If not please correct it, thanks again! I fix DSDT and now sleep is work, but seem slow (time from press sleep to done).

15-20 second delay from Apple->Sleep to actual sleep is normal.
Same on a real Mac.
 
15-20 second delay from Apple->Sleep to actual sleep is normal.
Same on a real Mac.
Thanks you so much! Sr about my mistake when post wrong, have a nice day!
 
Hello @RehabMan, I've created SSDT using ssdtPRGen.sh -c 3 -x 1. The Turbo Boost supported 2600Mhz, but on my hack cannot reach out that. Stuck on 2400Mhz.

I try to create another with -c 3 -x 0 wihout -xcpm called on config.plist the result is stuck on 800Mhz
 

Attachments

  • EFI.zip
    2.9 MB · Views: 80
  • ioreg.zip
    639.2 KB · Views: 75
Back
Top