Contribute
Register

[Guide] Dell XPS 9560 Mojave VirtualSMC, I2C Trackpad, Clover UEFI Hotpatch

Status
Not open for further replies.
@mazakiss also have you been clearing nvram after darkwake changes?
No lol

But now I did and it's the same:

AC adapter and Handoff enabled:
Code:
buzzynesss-macbook-pro:~ buzzyness$ pmset -g assertions
2019-05-27 00:57:47 +0200
Assertion status system-wide:
   BackgroundTask                 1
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
   InternalPreventSleep           1
Listed by owning process:
   pid 77(apsd): [0x000000a9000b8111] 00:00:00 ApplePushServiceTask named: "com.apple.apsd-datareceived-push.apple.com"
   pid 77(apsd): [0x000000a8000b810e] 00:00:01 ApplePushServiceTask named: "com.apple.apsd-lastpowerassertionlinger"
   pid 98(hidd): [0x0000001c00098024] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968127.3"
    Timeout will fire in 600 secs Action=TimeoutActionRelease
   pid 349(sharingd): [0x0000009f000180fb] 00:00:10 PreventUserIdleSystemSleep named: "Handoff"
   pid 54(powerd): [0x0000009b000d80d7] 00:00:14 InternalPreventSleep named: "com.apple.powermanagement.acwakelinger"
    Timeout will fire in 31 secs Action=TimeoutActionRelease
No kernel assertions.
Idle sleep preventers: IODisplayWrangler

Battery and Handoff enabled:
Code:
buzzynesss-macbook-pro:~ buzzyness$ pmset -g assertions
2019-05-27 01:00:44 +0200
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 349(sharingd): [0x0000012c0001814f] 00:00:24 PreventUserIdleSystemSleep named: "Handoff"
   pid 98(hidd): [0x0000001c00098024] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968127.3"
    Timeout will fire in 120 secs Action=TimeoutActionRelease
No kernel assertions.
Idle sleep preventers: IODisplayWrangler

Note:I obviously checked that no daemon, launch and login agents or special apps like Jettison are running in the background since they influence how sleep is working.

Do you use handoff yourself? Mine is working great on all my devices with iMessage, Facetime and such. But there is something related to this, I didn't finish reading about that, it's a documented issue even on real Macs.

Since we're talking about sleep, I think it's time for me to put my old ass internal mobo on a rest, see ya later ;-)
 
No lol

But now I did and it's the same:

AC adapter and Handoff enabled:
Code:
buzzynesss-macbook-pro:~ buzzyness$ pmset -g assertions
2019-05-27 00:57:47 +0200
Assertion status system-wide:
   BackgroundTask                 1
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
   InternalPreventSleep           1
Listed by owning process:
   pid 77(apsd): [0x000000a9000b8111] 00:00:00 ApplePushServiceTask named: "com.apple.apsd-datareceived-push.apple.com"
   pid 77(apsd): [0x000000a8000b810e] 00:00:01 ApplePushServiceTask named: "com.apple.apsd-lastpowerassertionlinger"
   pid 98(hidd): [0x0000001c00098024] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968127.3"
    Timeout will fire in 600 secs Action=TimeoutActionRelease
   pid 349(sharingd): [0x0000009f000180fb] 00:00:10 PreventUserIdleSystemSleep named: "Handoff"
   pid 54(powerd): [0x0000009b000d80d7] 00:00:14 InternalPreventSleep named: "com.apple.powermanagement.acwakelinger"
    Timeout will fire in 31 secs Action=TimeoutActionRelease
No kernel assertions.
Idle sleep preventers: IODisplayWrangler

Battery and Handoff enabled:
Code:
buzzynesss-macbook-pro:~ buzzyness$ pmset -g assertions
2019-05-27 01:00:44 +0200
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 349(sharingd): [0x0000012c0001814f] 00:00:24 PreventUserIdleSystemSleep named: "Handoff"
   pid 98(hidd): [0x0000001c00098024] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968127.3"
    Timeout will fire in 120 secs Action=TimeoutActionRelease
No kernel assertions.
Idle sleep preventers: IODisplayWrangler

Note:I obviously checked that no daemon, launch and login agents or special apps like Jettison are running in the background since they influence how sleep is working.

Do you use handoff yourself? Mine is working great on all my devices with iMessage, Facetime and such. But there is something related to this, I didn't finish reading about that, it's a documented issue even on real Macs.

Since we're talking about sleep, I think it's time for me to put my old ass internal mobo on a rest, see ya later ;-)

I think the assertion status will change after a while. Like when you run it yea UserIsActive obviously but not when you close the lid, then eventually it changes. Like sometimes you run it and BackgroundTask etc would show 1.

The Alienware R17 R4 files are a huge mess. He's using KNN files as well, no surprise there. He's also using an SSDT from a 9550 for hotplug USB-C. If we just use the original KNN TYPC SSDT, USB-C should work no problem but TB has no hot plug at all. I need to get my hands on a cheap TB3 device.
 
Last edited:
Clover v3.3 uploaded to main guide.
Guide updated with some recent findings as well.

Separate folder included for i5-7300HQ CPUFriendDataProvider.kext
SSDT-ADP1.aml and ACPI/DSDT patch - helps load AppleACPIACAdapter
Darkwake set to 1, fixes screen flicker
CsrActiveConfig set to 0x03E7 - may help with some kexts not injecting properly with Clover

There may be other minor edits, if you see something let me know.

I'm not big into naming each person so thanks to all who tested and helped!
 
@mazakiss due to your recent sleep issues, I did a little test last night.

After I posted I unplugged everything from the laptop including the charger and closed the lid.
Laptop was 100% charged, battery says 7401mAh full charge capacity via System Report.
With the latest Clover v3.3 setup without VoltageShift offset. Handoff is Enabled.

After almost 3 hours, I opened the lid (no flicker :D), 98%.
Closed the lid almost immediately and after ~12 hours, 95%.

I'm going to say that system is confirmed sleeping just on battery stats alone. After the testing you've done, what kind of person would I be if I couldn't return the favor. I hope the info below is helpful.

Here's the output for Sleep Wake
Code:
2019-05-26 23:40:14 -0400 Sleep           Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=disabled Using Batt (Charge:100%) 8243 secs
2019-05-27 01:57:37 -0400 Wake           Wake from Normal Sleep [CDNVA] due to LID0/HID Activity: Using BATT (Charge:98%) 44 secs   
2019-05-27 01:58:21 -0400 Sleep            Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=disabled Using Batt (Charge:98%) 39815 secs
2019-05-27 13:01:56 -0400 Wake             Wake from Normal Sleep [CDNVA] due to LID0/HID Activity: Using BATT (Charge:95%)

And my Assertions after wake
Code:
2019-05-27 13:03:12 -0400
Assertion status system-wide:
   BackgroundTask                 1
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 615(cloudphotosd): [0x00002904000b8b20] 00:01:18 BackgroundTask named: "com.apple.cloudphotosd.darkwake.sync"
    Details: cloudphotosd darkwake power assertion for initial and large iCPL downloads/uploads
    Timeout will fire in 1722 secs Action=TimeoutActionTurnOff
   pid 97(hidd): [0x0000266200098939] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4295014278.3"
    Timeout will fire in 900 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=507  level=255 0x4=USB mod=12/31/69, 7:00 PM description=com.apple.usb.externaldevice.14200000 owner=USB2.0 Hub
   id=508  level=255 0x4=USB mod=12/31/69, 7:00 PM description=com.apple.usb.externaldevice.14800000 owner=USB3.1 Hub
Idle sleep preventers: IODisplayWrangler
 
I'm about to update my Clover install in EFI to the 3.3 package, and then update to 10.14.5. I noticed that installing VoodooPS2Controller.kext to L/E is no longer necessary, but I had done it previously when it was still needed. Should I go ahead and remove it before or after doing either update via the kextunload command?
 
I'm about to update my Clover install in EFI to the 3.3 package, and then update to 10.14.5. I noticed that installing VoodooPS2Controller.kext to L/E is no longer necessary, but I had done it previously when it was still needed. Should I go ahead and remove it before or after doing either update via the kextunload command?

Yea go ahead and remove it, no longer necessary to have anything installed in L/E. Pure vanilla.

I got a full dump of a real MBP 14,1 and I've just actually made a pretty big break through.
USB-C no longer needs to act like a PCI-Express card. Still testing somethings but this could be huge.
 
Noted. And awesome! This laptop makes such an amazing Hackintosh already. Looking forward to further improvements.
 
Clover bootloader is too small it's barely readable. What's the best screen resolution for clover? It's currently set to 1920x1080.

Thanks
Did you manage to fix this? I also have the 4K model and want to have things look normal size, and I tried setting the 'Screen Resolution' under Gui to 3840x2160 in my config.plist like @blazinsmokey suggested but it didn't change anything for me.
 
Oh and one other odd thing. I'm fairly certain I just updated my EFI properly, which should mean it's using Clover r4895, however it still shows up as r4701 both on the About Clover screen at boot and in Clover Configurator. Is this just a visual bug?

I backed up my old CLOVER folder, then deleted it, copied the one from the 3.3 download in it's place, and replaced the included config.plist with my own from the backup. I then shut the system down and powered it back up without issue on 10.14.3 without VoodooPS2Controller.kext in L/E.

I have not tried clearing NVRAM yet, and I still need to update my darkwake and CsrActiveConfig values to the new ones from post #399 before updating macOS to 10.14.5

EDIT: Updated the values, works fine on 10.14.3, did not clear NVRAM or update to 10.14.5 yet. Waiting on verification regarding clover version first.
 
Last edited:
Yea go ahead and remove it, no longer necessary to have anything installed in L/E. Pure vanilla.

I got a full dump of a real MBP 14,1 and I've just actually made a pretty big break through.
USB-C no longer needs to act like a PCI-Express card. Still testing somethings but this could be huge.
Wow, slow the pace man i can’t keep going! That’s litterally insane!

Just a side note about temps: after using VoltageShift and sealed the vents with electrical tape, I barely reach 40 degrees with 80 tabs open. It has the benefit of favouring fresh air intake vs hot air outtake also dampering fan noize. You have to close the gap between the fans and heatsink (not the space between the case and heatsink, very important, i did it wrong the first time). Use 3 bands to do it reverting the sticky side to be placed between the gap to prevent grabbing the dust on it. I also put a small piece of copper sheet on the back case just above the IC’s making contact with the thermal paste.

I will also report sleep regarding your last post.

Awesome @blazinsmokey !
 

Attachments

  • Screenshot 2019-05-28 at 02.09.13.png
    Screenshot 2019-05-28 at 02.09.13.png
    283.3 KB · Views: 84
  • Screenshot 2019-05-28 at 02.59.20.png
    Screenshot 2019-05-28 at 02.59.20.png
    269 KB · Views: 78
Last edited:
Status
Not open for further replies.
Back
Top