Contribute
Register

UX305UA can't sleep

Status
Not open for further replies.
Sorry, resubmitted files are attached.

Terminal output for kextstat/pmset:

Code:
➜  ~ kextstat | grep -y acpiplat
   13    2 0xffffff7f82865000 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
   96    0 0xffffff7f82486000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <82 12 5 4 3>
➜  ~ kextstat | grep -y applehda
➜  ~ pmset -g assertions
2017-01-13 00:09:58 +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

And for kext cache:

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 USBInjectAll.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.

When I said "no luck with sleep" I meant there were no changes to my original issue - upon Apple -> Sleep (or lid close, or pressing the sleep button), the display turns off but the laptop otherwise stays on (and does not respond to any input), and must be force rebooted.
 

Attachments

  • CLOVER.zip
    1.4 MB · Views: 115
  • MacBook Pro.ioreg.zip
    415.8 KB · Views: 112
Sorry, resubmitted files are attached.

Terminal output for kextstat/pmset:

Code:
➜  ~ kextstat | grep -y acpiplat
   13    2 0xffffff7f82865000 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
   96    0 0xffffff7f82486000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <82 12 5 4 3>
➜  ~ kextstat | grep -y applehda
➜  ~ pmset -g assertions
2017-01-13 00:09:58 +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

And for kext cache:

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 USBInjectAll.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.

When I said "no luck with sleep" I meant there were no changes to my original issue - upon Apple -> Sleep (or lid close, or pressing the sleep button), the display turns off but the laptop otherwise stays on (and does not respond to any input), and must be force rebooted.

What is the output of 'pmset -g'?

I don't think you patched ACPI correctly. For example, SSDT-HACK has a GPRW, but you have no hotpatch for it, therefore it conflicts with the same method in DSDT.
Also, it has methods _Q0E and _Q0F which will conflict with DSDT methods of the same name (I see now, you removed _Q0E _Q0F from your patched/DSDT.aml), so that might be ok. Generally that is done with a rename patch though.

Hotpatch is for experts... I don't think you know enough to do it correctly... If you really want to attempt it, read the guide very carefully: http://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/
 
Last edited:
Code:
➜  ~ pmset -g
Active Profiles:
Battery Power        -1*
AC Power        -1
Currently in use:
 standby              1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             0
 gpuswitch            2
 disksleep            10
 sleep                0
 autopoweroffdelay    14400
 hibernatemode        0
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         2
 standbydelay         10800

Oops, I think I mistakenly removed the config.plist hotpatch when clearing up some of the others. However, some of the patches I've taken from a similar board (Skylake Asus UX305 but slightly different config due to international versions), so tbh I'm not too sure whether they're fully compatible. Should I be putting the hotpatch back in, or should I take it completely out?
 
Code:
➜  ~ pmset -g
Active Profiles:
Battery Power        -1*
AC Power        -1
Currently in use:
 standby              1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             0
 gpuswitch            2
 disksleep            10
 sleep                0
 autopoweroffdelay    14400
 hibernatemode        0
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         2
 standbydelay         10800

I was just checking that hibernatemode is 0 (disabled). It is...

I think your problems are caused by a bad ACPI setup. GPRW definitely not patched correctly...

Note also: Your SSDT-HACK has references to RMDT, but it isn't defined anywhere...
 
I used to have your logger but I've just taken the SSDT out for the time being, but didn't remove it from inside SSDT-HACK.

As for GPRW, I'm not very familiar with it and Google isn't really showing me much information about it (other than people apparently patching it) -- what does it stand for/what is it used for?

Also, for me to learn more about DSDT/ACPI/AML, are there any resources on it, such as what identifiers stand for what device controllers etc? The ACPI spec seems to be aimed at hardware implementers coming from the bottom up, not as a developer basically looking for an API reference...
 
I used to have your logger but I've just taken the SSDT out for the time being, but didn't remove it from inside SSDT-HACK.

That code will never be called due to the problem I mention about GPRW, but if it was, it would abort and therefore still a problem...

As for GPRW, I'm not very familiar with it and Google isn't really showing me much information about it (other than people apparently patching it) -- what does it stand for/what is it used for?

You shouldn't be including code you don't undertand.
Read guide: http://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/

If you're not technical enough to do the hotpatch (seems likely), patch in the normal way:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

Also, for me to learn more about DSDT/ACPI/AML, are there any resources on it, such as what identifiers stand for what device controllers etc? The ACPI spec seems to be aimed at hardware implementers coming from the bottom up, not as a developer basically looking for an API reference...

ACPI spec is relatively complete.
Like any specification it takes experience, experimentation, etc.
 
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!
Did you manage to get it to work? If yes, are you willing to provide a guide? I have the same laptop as yours.
 
Status
Not open for further replies.
Back
Top