Contribute
Register

Mac OSX high sierra 10.13.3 waking instantly from sleep

Status
Not open for further replies.
Joined
Sep 12, 2013
Messages
7
Motherboard
Asus B85M-G
CPU
i7 3.6Ghz
Graphics
Radeon xFX 5700 XT
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I've got same problem with sleep as on 10.13.2 version of system. System shut down everything... but after 1 second everything starts again and I am in the login screen, instead statys in sleep mode.

Thanks for any advices.

My hackintosh parameters:
- os: MaxOSX 10.13.3
- motherboard: Asus B85M-G
- gpu: Asus GTX1050 (nvidia web drivers)
- procesor: i7 3.6Ghz
 
Last edited:
After running this command: log show --style syslog | fgrep "Wake reason"

2018-02-04 00:14:33.237048+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Keyboard (0x02)
2018-02-04 00:14:45.107255+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
2018-02-04 02:07:32.884996+0100 localhost kernel[0]: (AppleACPIPlatform) Wake reason: GLAN HDEF XHC
2018-02-04 02:07:32.884997+0100 localhost kernel[0]: (AppleACPIPlatform) Wake reason: GLAN HDEF XHC
2018-02-04 02:07:39.794798+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
2018-02-04 02:19:16.654996+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
2018-02-04 02:24:27.345176+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
2018-02-04 02:25:28.684288+0100 localhost kernel[0]: (AppleACPIPlatform) Wake reason: GLAN HDEF XHC
2018-02-04 02:25:28.684289+0100 localhost kernel[0]: (AppleACPIPlatform) Wake reason: GLAN HDEF XHC
2018-02-04 02:25:35.906187+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)
2018-02-04 02:28:53.657849+0100 localhost kernel[0]: (AppleACPIPlatform) Wake reason: GLAN HDEF XHC
2018-02-04 02:28:53.657850+0100 localhost kernel[0]: (AppleACPIPlatform) Wake reason: GLAN HDEF XHC
2018-02-04 02:29:00.917845+0100 localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)


I am not sure what is the cause of wake up... becouse even if I disable lan card in bios and disconnect all use devices... still something wakes up my computer. I think that my hackintosh goes to sleep in proper, becouse every fans, hardrivers stops.
 
Also I think the output of this command may be helpful: pmset -g assertions

2018-02-04 02:53:08 +0100
Assertion status system-wide:
BackgroundTask 1
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 1
PreventUserIdleSystemSleep 0
NetworkClientActive 0
Listed by owning process:
pid 96(hidd): [0x000000130009801b] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968303.3"
Timeout will fire in 300 secs Action=TimeoutActionRelease
pid 52(powerd): [0x0000000300088000] 00:28:41 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"
pid 483(cloudphotosd): [0x0000010f000b80fc] 00:24:07 BackgroundTask named: "com.apple.cloudphotosd.darkwake.sync"
Details: cloudphotosd darkwake power assertion for initial and large iCPL downloads/uploads
Timeout will fire in 352 secs Action=TimeoutActionTurnOff
Kernel Assertions: 0x4=USB
id=501 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14600000 owner=IOUSBHostDevice
id=503 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14500000 owner=BCM20702A0
id=507 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14610000 owner=4-Port USB 2.0 Hub
id=509 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14630000 owner=HUAWEI_MOBILE
id=510 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14613000 owner=Razer Naga Chroma
id=511 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14611000 owner=Magic Trackpad 2
id=512 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14612000
id=513 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14614000 owner=Keyboard Hub
id=517 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14100000 owner=Mass Storage
id=518 level=255 0x4=USB mod=01.01.1970, 01:00 description=com.apple.usb.externaldevice.14e00000 owner=Storage Media
Idle sleep preventers: IODisplayWrangler
 
Ok i found that I need to remove GLAN _PRW method in my system DSDT. I've used RehabMan-MaciASL-2017-0117.zip to create my dsdt file, but I can't compile it. Can anyone help me with compilation of my System DSDT.dsl (in attachment) to ACPI binary ? I've got compilation errors...
 

Attachments

  • System DSDT.dsl
    463.1 KB · Views: 343
AMAZING!!!! I FOUND SOLUTION!!!! ...after 3 days of searching

Needed tools:
- MaciASL (2017-0117) (https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/)
Screen Shot 2020-02-11 at 23.59.35.png
- iasl51 (20161210-64(RM)) (https://github.com/RehabMan/Intel-iasl (copy iasl51 to /urs/local/bin/ )
Screen Shot 2020-02-11 at 23.59.25.png
Screen Shot 2020-02-11 at 23.54.10.png

1. Generate DSDT i other similar files by pressing f4 in Clover Bootloader. All generated files should be:
EFI/CLOVER/ACPI/origin
IMG_8537.JPG

2. Run command: iasl51 -da DSDT.aml SSDT*.aml in catalog EFI/CLOVER/ACPI/origin. This will generate:
DSDT.dsl and lots of SSDT*.dsl files....
Screen Shot 2020-02-12 at 00.03.30.pngScreen Shot 2020-02-12 at 00.05.33.png

3. Copy all this *.dsl files to EFI/CLOVER/ACPI/pathed
Screen Shot 2020-02-12 at 00.08.31.png

4. Copy all files EFI/CLOVER/ACPI/origin/SSDT*.aml to EFI/CLOVER/ACPI/pathed
Screen Shot 2020-02-12 at 00.10.00.png

5. Open DSDT.dsl in MaciASL
Screen Shot 2020-02-12 at 00.10.46.pngScreen Shot 2020-02-12 at 00.11.40.png

6. Apply patches from RhabMan Laptop:
- [syn] FIX PARSEOP_ZERO Error
- [syn] FIX ADBG Error
- [usb] USB3_PRW 0x0D (instant wake)
Screen Shot 2020-02-12 at 00.12.42.png

7. Press Compile... now compilation should be without errors... Save file (CMD+S).
Screen Shot 2020-02-12 at 00.14.07.png

8. Save file EFI/CLOVER/ACPI/pathed/DSDT.dsl as EFI/CLOVER/ACPI/pathed/DSDT.aml.
Screen Shot 2020-02-12 at 00.25.26.png
Screen Shot 2020-02-12 at 00.32.11.png

9. Open config.plist. Make sure you have selected:
- ACPI/SSDT/dropOEM.
- Devices/USB/inject
- Devices/USB/FixOwnership
Zrzut ekranu 2018-02-04 23.59.37.pngZrzut ekranu 2018-02-04 23.59.52.png

10. Reboot. Now should be no instant wake from sleep :)
 

Attachments

  • config.plist
    5.8 KB · Views: 353
  • Zrzut ekranu 2018-02-04 23.37.52.png
    Zrzut ekranu 2018-02-04 23.37.52.png
    225.4 KB · Views: 846
Last edited:
thank you darekf77 (see here if you want to know what for) :)
 
I recently experienced the 'immediately wakes from sleep' issue on my hack running 17,1 smbios.
The solution that worked for me, and which was SHOCKINGLY EASY, actually didn't require ANY DSDT editing whatsoever:

1. Go to System Preferences > Energy Saver
2. Ensure that that checkbox called 'Enable Power Nap' is UNCHECKED
3. Happy napping kids!

Hope this helps some of you. I think it has something to do specifically with the 17,1 smbios, since previously I was using Mac Pro 3,1 and never encountered this issue.


power nap.jpg
 
Status
Not open for further replies.
Back
Top