Contribute
Register

Getting sleep/wake to work on Dell XPS 12 9250 on 10.13.4

Status
Not open for further replies.
Do only the EDID override or the display override file, not both.
What values have you tried for byte 20?

You forgot to disable hibernation (see CPU PM guide linked from FAQ).

I disabled hibernate with the following commands:

Code:
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage

Status per 'pmset -g':

Code:
Peters-MBP:Desktop peter$ pmset -g
System-wide power settings:
Currently in use:
standbydelay         10800
standby              0
womp                 0
halfdim              1
hibernatefile        /var/vm/sleepimage
powernap             0
gpuswitch            2
networkoversleep     0
disksleep            10
sleep                15
autopoweroffdelay    28800
hibernatemode        0
autopoweroff         0
ttyskeepawake        1
displaysleep         15
tcpkeepalive         1
lidwake              1
 

Attachments

  • debug_1595.zip
    2 MB · Views: 88
I disabled hibernate with the following commands:

Code:
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage

Status per 'pmset -g':

Code:
Peters-MBP:Desktop peter$ pmset -g
System-wide power settings:
Currently in use:
standbydelay         10800
standby              0
womp                 0
halfdim              1
hibernatefile        /var/vm/sleepimage
powernap             0
gpuswitch            2
networkoversleep     0
disksleep            10
sleep                15
autopoweroffdelay    28800
hibernatemode        0
autopoweroff         0
ttyskeepawake        1
displaysleep         15
tcpkeepalive         1
lidwake              1

You didn't answer my questions in my last reply.
 
You didn't answer my questions in my last reply.

Crap. Sorry, I did and I think I closed Safari and it reverted to an earlier message I typed.

Do only the EDID override or the display override file, not both.
What values have you tried for byte 20?

I have tried both B5 and 95 (only in Clover > Graphics > Custom EDID):

Code:
00FFFFFFFFFFFF004D103D140000000022190104B51C10780EDF50A35435B5260F5054000000010101010101010101010101010101014DD000A0F0703E8030203500149C10000018000000100000000000000000000000000000000000FE0048474D4A36804C513132354431000000000002410328001200000B010A20200016

00FFFFFFFFFFFF004D103D140000000022190104951C10780EDF50A35435B5260F5054000000010101010101010101010101010101014DD000A0F0703E8030203500149C10000018000000100000000000000000000000000000000000FE0048474D4A36804C513132354431000000000002410328001200000B010A20200036

They both appear to not make any difference. The screen remains black (with no backlight), as if the device is still in sleep mode.
 

Attachments

  • debug_1595.zip
    2 MB · Views: 95
Crap. Sorry, I did and I think I closed Safari and it reverted to an earlier message I typed.



I have tried both B5 and 95 (only in Clover > Graphics > Custom EDID):

Code:
00FFFFFFFFFFFF004D103D140000000022190104B51C10780EDF50A35435B5260F5054000000010101010101010101010101010101014DD000A0F0703E8030203500149C10000018000000100000000000000000000000000000000000FE0048474D4A36804C513132354431000000000002410328001200000B010A20200016

00FFFFFFFFFFFF004D103D140000000022190104951C10780EDF50A35435B5260F5054000000010101010101010101010101010101014DD000A0F0703E8030203500149C10000018000000100000000000000000000000000000000000FE0048474D4A36804C513132354431000000000002410328001200000B010A20200036

They both appear to not make any difference. The screen remains black (with no backlight), as if the device is still in sleep mode.

You should try different ig-platform-id values.
Common with laptops: 0x591b0000, but there are others.

Note specifying Custom + ProductID/VendorID under Inject/EDID is nonsense (as ProductID and VendorID are part of the EDID, therefore Custom and those two settings conflict). One will be ignored, not sure which one.
 
You should try different ig-platform-id values.
Common with laptops: 0x591b0000, but there are others.

Note specifying Custom + ProductID/VendorID under Inject/EDID is nonsense (as ProductID and VendorID are part of the EDID, therefore Custom and those two settings conflict). One will be ignored, not sure which one.

Exciting news! I believe it is sleeping properly now.

Here is what I did:

Completely removed EDID override
Set ig-platform-id to 0x19260000 (which appears to be for HD540 graphics, but idk it works)
ONLY applied "instant wake" (_PRW 0x6d patch)" patch for DSDT

This is what I see in Intel Power Gadget:

Screen Shot 2018-05-12 at 1.03.50 PM.png
Note: The drop in the first graph is is when the device is in sleep. It appears to be consuming 1W. Is this an expected number? Should I compare this to my device running Windows?

I understand enabling things such as HWP could also help with power draw.

Thanks for all of your help! I will write an 10.13.4 installation guide for this device once I test it and apply a few more patches.
 

Attachments

  • debug_19257.zip
    2.1 MB · Views: 90
Note: The drop in the first graph is is when the device is in sleep. It appears to be consuming 1W.

During sleep, you will not be able to get any readings because the CPU is not doing anything.
If you're curious about power usage during sleep, remove the battery and measure power usage at the wall with a device such as Kill-A-Watt.
 
Looks like I spoke too soon.. I tried applying the HWP patches and now it has the same issue. Device does not come out of sleep. I reverted all files back to prior to implementing HWP, when it was working, but it still isn't working.

I tried a 'sudo kextcache -I /' as well:

Code:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe87c360 [0x7fffa7cb1af0]> { URL = "VoodooPS2Trackpad.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Trackpad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe8282c0 [0x7fffa7cb1af0]> { URL = "VoodooPS2Controller.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.voodoo.driver.PS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe857030 [0x7fffa7cb1af0]> { URL = "VoodooPS2Mouse.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Mouse" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe8369a0 [0x7fffa7cb1af0]> { URL = "VoodooPS2Keyboard.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe822b30 [0x7fffa7cb1af0]> { URL = "VoodooHDA.kext/ -- file:///Library/Extensions/", ID = "org.voodoo.driver.VoodooHDA" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe81c570 [0x7fffa7cb1af0]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe8114a0 [0x7fffa7cb1af0]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe80e2e0 [0x7fffa7cb1af0]> { URL = "IntelGraphicsFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.IntelGraphicsFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe805ce0 [0x7fffa7cb1af0]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fda8fa30 [0x7fffa7cb1af0]> { URL = "FakePCIID.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fda8ff50 [0x7fffa7cb1af0]> { URL = "FakePCIID_Broadcom_WiFi.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Broadcom-WiFi" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fe804cf0 [0x7fffa7cb1af0]> { URL = "CoreDisplayFixup.kext/ -- file:///Library/Extensions/", ID = "org.vanilla.driver.CoreDisplayFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fdfdfe10 [0x7fffa7cb1af0]> { URL = "BrcmPatchRAM2.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmPatchRAM2" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fdfdf570 [0x7fffa7cb1af0]> { URL = "BrcmFirmwareRepo.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmFirmwareStore" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fdfd2e60 [0x7fffa7cb1af0]> { URL = "AppleHDADisabler.kext/ -- file:///Library/Extensions/", ID = "net.osrom.kext.Disabler" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fdfd34b0 [0x7fffa7cb1af0]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa9fdfd0240 [0x7fffa7cb1af0]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
KernelCache ID: FFEDBE3B1965EB0A531450A39559A0BB
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b653270 [0x7fffa7cb1af0]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6553f0 [0x7fffa7cb1af0]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b658930 [0x7fffa7cb1af0]> { URL = "AppleHDADisabler.kext/ -- file:///Library/Extensions/", ID = "net.osrom.kext.Disabler" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b661bf0 [0x7fffa7cb1af0]> { URL = "BrcmFirmwareRepo.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmFirmwareStore" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6665c0 [0x7fffa7cb1af0]> { URL = "BrcmPatchRAM2.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmPatchRAM2" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b3947f0 [0x7fffa7cb1af0]> { URL = "CoreDisplayFixup.kext/ -- file:///Library/Extensions/", ID = "org.vanilla.driver.CoreDisplayFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6684b0 [0x7fffa7cb1af0]> { URL = "FakePCIID.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b39abd0 [0x7fffa7cb1af0]> { URL = "FakePCIID_Broadcom_WiFi.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Broadcom-WiFi" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b39b980 [0x7fffa7cb1af0]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b39fd20 [0x7fffa7cb1af0]> { URL = "IntelGraphicsFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.IntelGraphicsFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b3a1080 [0x7fffa7cb1af0]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b3a2c60 [0x7fffa7cb1af0]> { URL = "RealtekRTL8111.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.RealtekRTL8111" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b3a5d60 [0x7fffa7cb1af0]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6830c0 [0x7fffa7cb1af0]> { URL = "VoodooHDA.kext/ -- file:///Library/Extensions/", ID = "org.voodoo.driver.VoodooHDA" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b69aa10 [0x7fffa7cb1af0]> { URL = "VoodooPS2Controller.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.voodoo.driver.PS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6a9d60 [0x7fffa7cb1af0]> { URL = "VoodooPS2Keyboard.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6e2280 [0x7fffa7cb1af0]> { URL = "VoodooPS2Mouse.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Mouse" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa97b6eba40 [0x7fffa7cb1af0]> { URL = "VoodooPS2Trackpad.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Trackpad" }

Also, I attempted booting with 'No Caches' set in Clover and it did not make a difference.

Are there any other caches that could have been set by some previous options I tried? Maybe one of them stuck from a change I performed earlier, which may mean I never had the right configuration, just the right cache at some point.
 

Attachments

  • debug_8256.zip
    2.1 MB · Views: 87
I found some interesting information. Here's an instance where sleep was "working". The following is taken from 'pmset -g log|grep -A 20 -e "Entering Sleep state due to"'. Note the time from 12:14 to 12:29.

Code:
2018-05-12 12:14:35 -0700 Sleep                   Entering Sleep state due to 'Idle Sleep':TCPKeepAlive=inactive Using Batt (Charge:64%)           
2018-05-12 12:14:38 -0700 Wake Requests           [*proc=powerd request=TCPKATurnOff inDelta=43257]           
2018-05-12 12:14:38 -0700 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(2875 ms)]           
2018-05-13 12:29:22 -0700 HibernateStats          hibmode=0 standbydelay=0                                                                 0          
Sleep/Wakes since boot at 2018-05-12 11:49:46 -0700 :0   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                  Message                                                                        Duration      Delay     
==========                ======                  =======                                                                        ========      =====     
UUID: Unknown UUID
2018-05-13 12:29:22 -0700 Failure                 Sleep Failure [code:0xFFFFFFFF0400001F]:                                                
Sleep/Wakes since boot at 2018-05-12 11:49:46 -0700 :0   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                  Message                                                                        Duration      Delay     
==========                ======                  =======                                                                        ========      =====     
UUID: (null)
2018-05-13 12:29:22 -0700 Start                   powerd process is started                                                               
2018-05-13 12:29:22 -0700 Assertions              Summary- [System: No Assertions] Using Batt          
2018-05-13 12:29:24 -0700 Assertions              Kernel Idle sleep preventers: IODisplayWrangler          
2018-05-12 12:29:52 -0700 Assertions              Summary- [System: BGTask] Using AC(Charge: 65)          
2018-05-12 12:30:25 -0700 Assertions              Kernel System sleep preventers: .Display_boot          
2018-05-12 12:30:43 -0700 Assertions              PID 93(hidd) Created UserIsActive "com.apple.iohideventsystem.queue.tickle.4294968532.11" 00:00:00  id:0x0x900008139 [System: PrevIdle DeclUser BGTask kDisp]          
2018-05-12 12:31:08 -0700 Assertions              PID 39(UserEventAgent) Released BackgroundTask "com.apple.mds.Health check (2).1" 00:01:37  id:0x0xb00008072 [System: PrevIdle DeclUser BGTask kDisp]          
2018-05-12 12:31:11 -0700 Assertions              PID 237(mds_stores) Released BackgroundTask "com.apple.metadata.mds_stores.power" -23:-58:- id:0x0xb00008060 [System: PrevIdle DeclUser BGTask kDisp]          
Sleep/Wakes since boot at 2018-05-13 12:29:22 -0700 :0   Dark Wake Count in this sleep cycle:0

Which times corresponds with the system.log--again around 12:14 to 12:29:

Code:
May 12 11:53:49 Peters-MBP com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
May 12 11:53:49 Peters-MBP systemstats[49]: assertion failed: 17E199: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
May 12 12:04:42 Peters-MBP syslogd[40]: ASL Sender Statistics
May 12 12:14:20 Peters-MBP com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
May 13 12:29:18 localhost bootlog[0]: BOOT_TIME 1526239758 0
May 13 12:29:22 localhost syslogd[40]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/asl" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

What is interesting to note is the error: "0xFFFFFFFF0400001F". It appears this error can be for many things. This being said, I wonder if sleep was really working at this point. Regardless, all I am seeing now is [in pmset -g log]:

Code:
2018-05-12 23:27:27 -0700 Sleep                   Entering Sleep state due to 'Idle Sleep':TCPKeepAlive=inactive Using AC (Charge:100%)          
2018-05-12 23:27:29 -0700 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(2667 ms)]          
Sleep/Wakes since boot at 2018-05-12 23:20:54 -0700 :0   Dark Wake Count in this sleep cycle:1

And again in system.log:

Code:
May 12 23:24:57 Peters-MBP systemstats[49]: assertion failed: 17E199: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
May 12 23:25:31 Peters-MBP com.apple.xpc.launchd[1] (com.apple.quicklook[458]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
May 12 23:27:12 Peters-MBP com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
May 12 23:35:35 localhost bootlog[0]: BOOT_TIME 1526193335 0

Other useful information:

Code:
$ pmset -g
System-wide power settings:
Currently in use:
standbydelay         10800
standby              0
womp                 0
halfdim              1
hibernatefile        /var/vm/sleepimage
powernap             0
gpuswitch            2
networkoversleep     0
disksleep            10
sleep                1
autopoweroffdelay    28800
hibernatemode        0
autopoweroff         0
ttyskeepawake        1
displaysleep         1
tcpkeepalive         1
lidwake              1

Which looks completely different. Maybe I should continue trying different ig-platform-id values. Really, I wish there were better ways to troubleshoot this issue.
 

Attachments

  • debug_8122.zip
    2 MB · Views: 83
Status
Not open for further replies.
Back
Top