Contribute
Register

UX305UA can't sleep

Joined
Dec 11, 2016
Messages
8
Motherboard
AsRock Z77 Pro3
CPU
Intel i7-3770k
Graphics
MSI NVIDIA GTX 1070
Hello all,

Looking to get some help on getting my Asus UX305UA (specs in signature) to sleep. Current state of the Hackintosh is pretty much everything working (kb + touchpad, native power management, brightness, audio, wifi via usb dongle, etc) -- sleep is the last thing to solve.

Symptoms are: when attempting to sleep, the display turns off but the laptop otherwise stays on (power light remains on and fans keep spinning) and freezes at this point. At this point I have to force it off to reset. I do notice that the green LED on my USB wifi stops flashing and stays constantly on, which means that it's being halted in some form at least.

As I have native power management and
Code:
cat /var/log/system.log | grep "sleep states"
returns with "ACPI: sleep states S3 S4 S5", I'm thinking it might be a DSDT thing, but unfortunately I know pretty much nothing about sleep in the DSDT.

My ioreg and DSDT (disassembled already, please tell me if you want my raw aml's) are attached. Note: not sure if it's relevant, but I have a small patch in my Clover config for GFX0 -> IGPU.

Thanks in advance!
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,205
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hello all,

Looking to get some help on getting my Asus UX305UA (specs in signature) to sleep. Current state of the Hackintosh is pretty much everything working (kb + touchpad, native power management, brightness, audio, wifi via usb dongle, etc) -- sleep is the last thing to solve.

Symptoms are: when attempting to sleep, the display turns off but the laptop otherwise stays on (power light remains on and fans keep spinning) and freezes at this point. At this point I have to force it off to reset. I do notice that the green LED on my USB wifi stops flashing and stays constantly on, which means that it's being halted in some form at least.

As I have native power management and
Code:
cat /var/log/system.log | grep "sleep states"
returns with "ACPI: sleep states S3 S4 S5", I'm thinking it might be a DSDT thing, but unfortunately I know pretty much nothing about sleep in the DSDT.

My ioreg and DSDT (disassembled already, please tell me if you want my raw aml's) are attached. Note: not sure if it's relevant, but I have a small patch in my Clover config for GFX0 -> IGPU.

Thanks in advance!
Test sleep without external devices plugged in (including USB WiFi). Test only with Apple->Sleep.

Make sure you have ACPI patched correctly and power management implemented.

See FAQ:
http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html
 
Joined
Dec 11, 2016
Messages
8
Motherboard
AsRock Z77 Pro3
CPU
Intel i7-3770k
Graphics
MSI NVIDIA GTX 1070
Just tested with no external devices, still no luck.

I have power management implemented (as far as I can tell through Intel Power Gadget with speed stepping working fine). AppleIntelInfo.kext is also returning a list of P-states.

As for DSDT patches, I've currently got (from your repo):
- Rename _DSM to XDSM
- OS Check Fix for Windows 2015
- Skylake LPC
- Battery patch for Asus notebooks
- Backlight fix

and then 1 more manual patch to get my touchpad working.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,205
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Just tested with no external devices, still no luck.

I have power management implemented (as far as I can tell through Intel Power Gadget with speed stepping working fine). AppleIntelInfo.kext is also returning a list of P-states.

As for DSDT patches, I've currently got (from your repo):
- Rename _DSM to XDSM
- OS Check Fix for Windows 2015
- Skylake LPC
- Battery patch for Asus notebooks
- Backlight fix

and then 1 more manual patch to get my touchpad working.
Attach ioreg as ZIP: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

Provide output (in Terminal):
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
pmset -g assertions
Attach EFI/Clover folder as ZIP (press F4 at main Clover screen before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Attach output of (in Terminal):
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /
Compress all files as ZIP. Do not use external links. Attach all files using site attachments only.
 
Joined
Dec 11, 2016
Messages
8
Motherboard
AsRock Z77 Pro3
CPU
Intel i7-3770k
Graphics
MSI NVIDIA GTX 1070
ioreg and Clover folder attached as separate zips.

Terminal output for kextstat/pmset:

Code:
➜  ~ kextstat|grep -y acpiplat
   13    2 0xffffff7f82840000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (4.0) A29C7512-D3A8-3AED-9721-3A5FF1A32EB2 <12 11 7 6 5 4 3 1>

➜  ~ kextstat|grep -y appleintelcpu

➜  ~ kextstat|grep -y applelpc
   69    0 0xffffff7f82461000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <68 12 5 4 3>

➜  ~ kextstat|grep -y applehda

➜  ~ pmset -g assertions
2017-01-11 12:18:10 +1000
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   InteractivePushServiceTask     1
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 76(apsd): [0x0000009700120193] 00:00:39 InteractivePushServiceTask named: "com.apple.apsd-connectionestablish-push.apple.com"
	Timeout will fire in 141 secs Action=TimeoutActionTurnOff
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=1/01/1970, 10:00 AM description=com.apple.usb.externaldevice.14600000 owner=IOUSBHostDevice
Idle sleep preventers: IODisplayWrangler
Terminal output for kext cache refresh:

Code:
➜  ~ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooI2C.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext file:///System/Library/Extensions/AsusNBFnKeys.kext/ is in hash exception list, allowing to load
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext file:///System/Library/Extensions/AppleHDADisabler.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,205
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
ioreg and Clover folder attached as separate zips.

Terminal output for kextstat/pmset:

Code:
➜  ~ kextstat|grep -y acpiplat
   13    2 0xffffff7f82840000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (4.0) A29C7512-D3A8-3AED-9721-3A5FF1A32EB2 <12 11 7 6 5 4 3 1>

➜  ~ kextstat|grep -y appleintelcpu

➜  ~ kextstat|grep -y applelpc
   69    0 0xffffff7f82461000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <68 12 5 4 3>

➜  ~ kextstat|grep -y applehda

➜  ~ pmset -g assertions
2017-01-11 12:18:10 +1000
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   InteractivePushServiceTask     1
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 76(apsd): [0x0000009700120193] 00:00:39 InteractivePushServiceTask named: "com.apple.apsd-connectionestablish-push.apple.com"
    Timeout will fire in 141 secs Action=TimeoutActionTurnOff
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=1/01/1970, 10:00 AM description=com.apple.usb.externaldevice.14600000 owner=IOUSBHostDevice
Idle sleep preventers: IODisplayWrangler
Terminal output for kext cache refresh:

Code:
➜  ~ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooI2C.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelBacklight.kext
kext file:///System/Library/Extensions/AsusNBFnKeys.kext/ is in hash exception list, allowing to load
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext file:///System/Library/Extensions/AppleHDADisabler.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.
Suggestions/comments:
- remove insomnia
- you have a reference to HDAU in SSDT-HACK.aml but there is no HDAU on Skylake
- sleep will not begin until assertions are clear
- USB is not implemented correctly
- HDAS should be renamed HDEF
 
Joined
Dec 11, 2016
Messages
8
Motherboard
AsRock Z77 Pro3
CPU
Intel i7-3770k
Graphics
MSI NVIDIA GTX 1070
1 - Yep, just using insomnia atm so I can walk away from my computer for 5 minutes without it auto sleeping and freezing until I fix this
2 - Will remove, cheers
3 - Are these assertions an issue with sleeping (my situation), or are they only an issue with instant wake symptoms?
4 - Could you give more details on USB not being implemented correctly?
5 - Will test with the rename, but my audio already works perfectly. What normally happens if it's not renamed?

Thanks!
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,205
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
1 - Yep, just using insomnia atm so I can walk away from my computer for 5 minutes without it auto sleeping and freezing until I fix this
2 - Will remove, cheers
3 - Are these assertions an issue with sleeping (my situation), or are they only an issue with instant wake symptoms?
4 - Could you give more details on USB not being implemented correctly?
5 - Will test with the rename, but my audio already works perfectly. What normally happens if it's not renamed?

Thanks!
An assertion will not cause any "instant wake" (you also didn't mention any instant wake). An active assertion will keep sleep from happening until it is clear.

See USB guide: https://www.tonymacx86.com/threads/guide-10-11-usb-changes-and-solutions.173616/

As far as HDAS vs. HDEF no idea. I always do the rename. Look at Apple's ACPI files.
 
Joined
Dec 11, 2016
Messages
8
Motherboard
AsRock Z77 Pro3
CPU
Intel i7-3770k
Graphics
MSI NVIDIA GTX 1070
Alright... I've removed HDAU from SSDT-HACK and implemented USB as per the linked guide, but unfortunately no luck with sleep, even with no assertions:

Code:
➜  ~ pmset -g assertions
2017-01-12 17:12:12 +1000
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
No kernel assertions.
Idle sleep preventers: IODisplayWrangler
My webcam works now though as a result of implementing USB now, which is nice I suppose.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,205
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Alright... I've removed HDAU from SSDT-HACK and implemented USB as per the linked guide, but unfortunately no luck with sleep, even with no assertions:

Code:
➜  ~ pmset -g assertions
2017-01-12 17:12:12 +1000
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
No kernel assertions.
Idle sleep preventers: IODisplayWrangler
My webcam works now though as a result of implementing USB now, which is nice I suppose.
With any changes, you must resubmit files. Read post #4.

Also, you will need to detail what you mean by "no luck with sleep".
 
Top