Contribute
Register

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

Status
Not open for further replies.
So my problem (crash during sleep) is a Sleep Wake Error according to Problem Report.

Stackshot Reason: Sleep transition timed out after 180 seconds while entering darkwake on way to sleep. Suspected bundle: com.apple.driver.usb.AppleUSBXHCI. Thread 0x634c.
Failure code:: 0xdeb5af27 00000031

================================================================
Date/Time: 2018-11-07 11:58:27 -0500
OS Version: ??? ??? (Build ???)
Architecture: x86_64
Report Version: 27

Data Source: Stackshots
Shared Cache: 0x148af000 BE7000AF-1CF6-3806-AB16-DC1CD4D99D8D

Event: Sleep Wake Failure
Duration: 0.00s
Steps: 1

Boot args: darkwake=no brcmfx-country=#a dart=0

Time Awake Since Boot: 4200s

Has anyone experienced anything similar? Don't know if it's because I don't have a compatible wifi card, but I have a DW1560 coming in 2-3 days so I'll post an error log when it comes / happens then.
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
I have no idea why anyone would want to disable hibernate.

Also, be aware that hibernation (suspend to disk or S4 sleep) is not supported on hackintosh.
You can find the quote above in most if not every laptop guide RehabMan has written.

If that is not reason enough well the guide for this laptop going back to first launch has always been to disable hibernate due to data corruption. The XPS line has been notorious for that and many people have suffered data corruption. Another reason to disable it is to save writes on your NVME drive. As we know hibernate takes everything in RAM and writes it to your hard drive. SSD and NVME have limited writes before EOL.
 
I have no idea why anyone would want to disable hibernate.
You can find the quote above in most if not every laptop guide RehabMan has written.

If that is not reason enough well the guide for this laptop going back to first launch has always been to disable hibernate due to data corruption. The XPS line has been notorious for that and many people have suffered data corruption. Another reason to disable it is to save writes on your NVME drive. As we know hibernate takes everything in RAM and writes it to your hard drive. SSD and NVME have limited writes before EOL.

It is possible to get hibernation working on some hardware, but is tricky and most will fail.
Hence the general recommendation to disable it.

Plus, since my systems have SSD, I do not want hibernation at all. I don't think it is a good idea to write GBs of data to my SSD on every sleep cycle (several, perhaps 10s, times per day). I disable it on Windows too.
 
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.

I attached all the files as zips. When I did F2 then F4 at Clover Boot Menu, my computer was unresponsive for about 10 minutes after I chose my hackintosh drive (backlight on, but unresponsive laptop with a blank/black screen), so I did a force shut down. It went through the second time though immediately; don't know if that will affect anything.

Thanks again for your help. Problems I was having was laptop crashing during sleep (it sleeps fine sometimes, but other times it crashes). Can't seem to reproduce it reliably, happens maybe 50% of the time.

My backlight settings are also not saved on reboot/shut down, even after removing the backlight settings as specified from earlier.

If it matters, I also currently have an Ubuntu partition, and I used to have a Windows partition which was wiped out.
 

Attachments

  • CLOVER.zip
    5.1 MB · Views: 75
  • kextcache.zip
    126.8 KB · Views: 73
  • kextstat.zip
    227.3 KB · Views: 75
  • RehabMan.zip
    65.5 KB · Views: 67
  • ioreg.zip
    927.9 KB · Views: 66
Last edited:
I attached all the files as zips. When I did F2 then F4 at Clover Boot Menu, my computer was unresponsive for about 10 minutes after I chose my hackintosh drive (backlight on, but unresponsive laptop with a blank/black screen), so I did a force shut down. It went through the second time though immediately; don't know if that will affect anything.

Thanks again for your help. Problems I was having was laptop crashing during sleep (it sleeps fine sometimes, but other times it crashes). Can't seem to reproduce it reliably, happens maybe 50% of the time.

My backlight settings are also not saved on reboot/shut down, even after removing the backlight settings as specified from earlier.

If it matters, I also currently have an Ubuntu partition, and I used to have a Windows partition which was wiped out.

Please use gen_debug.sh as requested.
 
Please use gen_debug.sh as requested.

Sorry about that, files attached. IOREG dump failed while running the script if it matters.
 

Attachments

  • CLOVER.zip
    5.1 MB · Views: 75
  • debug_4421.zip
    4.5 MB · Views: 68
IOREG dump failed while running the script if it matters.

Your responsibility to insure it is collected.
Either do what is required to make the script work, or collect ioreg manually.
 
Your responsibility to insure it is collected.
Either do what is required to make the script work, or collect ioreg manually.

I tried two more times, one with 'gen_debug -sysprofile' as suggested in the script, but same result. Restarted as well and no other programs running. I collected it manually (Save a copy as). Files attached again / Thanks again.
 

Attachments

  • CLOVER.zip
    5.1 MB · Views: 77
  • ioreg_new.ioreg
    11.6 MB · Views: 90
  • debug_27866.zip
    4.9 MB · Views: 66
I tried two more times, one with 'gen_debug -sysprofile' as suggested in the script, but same result. Restarted as well and no other programs running. I collected it manually (Save a copy as). Files attached again / Thanks again.
Your kextcache output proves kexts are not installed correctly.
All kexts you need must be installed to the system volume.
Read post #2 of the Clover guide for details:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

Didn't check anything else.
 
If that is not reason enough well the guide for this laptop going back to first launch has always been to disable hibernate due to data corruption. The XPS line has been notorious for that and many people have suffered data corruption.

Oh I see. Yeah, that explains it :)

I also had an issue with hibernate wiping my partitions all the time about a year ago. It was on my desktop and was related with nvram not working, which was resulting same hibernate image loading again and again (producing filesystem corruption). I've asked slice to implement data loss protection in clover, particularly preventing same hibernate image loading more than once. It was implemented, hibernate image currently will only try loading once (whenever it succeeds or fails). Since then I had zero issues with data loss. But XPS has hardware NVRAM, so whatever problem people were having, it was a different problem.

It is possible to get hibernation working on some hardware, but is tricky and most will fail.
As long as
  • APFS is not used
  • NVRAM is working
  • HibernationFixup is used
It just works in most cases I've tried, at least on High Sierra. Sometimes you need to add -hbfx-patch-pci boot argument but that's it. And XPS doesn't even need -hbfx-patch-pci. Maybe I was just lucky with my hardware choices.

Plus, since my systems have SSD, I do not want hibernation at all. I don't think it is a good idea to write GBs of data to my SSD on every sleep cycle (several, perhaps 10s, times per day). I disable it on Windows too.

There is an app for that, called SmartSleep, it dynamically switches between sleep modes based on battery level.
So when your battery is above (let's say) 20%, laptop will use regular sleep, and will not write anything to disk.
When there is not much battery left, it will switch to hibernate automatically and will prevent data loss on sleeping longer than battery allows. Btw, I had much more data loss on unsaved documents not surviving sleeping through drained battery, than on hibernate destroying filesystem.

As we know hibernate takes everything in RAM and writes it to your hard drive. SSD and NVME have limited writes before EOL.

I filled my RAM with 18GB data, went to hibernate, booted from a different drive, and checked sleep image size.
It was just 1GB.
Code:
XPS-9560:vm dmatora$ du -sh *
1,0G    sleepimage
1,0G    swapfile0
1,0G    swapfile1
1,0G    swapfile2
To ensure it's not just resuming regular sleep from RAM, I filled my RAM with 18GB data again, hibernated, removed RAM, powered on laptop, powered it off, inserted RAM (yet swapped memory sticks their places) and resumed from hibernate within 2 seconds. XPS is one of the few machines where this trick works (not on Mojave). Don't ask me how.
 
Last edited:
Status
Not open for further replies.
Back
Top