I did the USB mapping with hackintool and it worked out I think. External drives are now finally external.
I also took a stab at HibernationFixup. I've got it to save the IOHibernateRTCVariables to nvram and I think the sleepimage is being created but I can't boot after Hibernation. It seems like it enters hibernation fine, then shuts off, I start the computer and when I choose macOS in Opencore it immediately black screens and reboots. The only log I could find was this:
Opencore Logs:
Code:
OC: Translated HibernateMode None to 0
OC: Hibernation detection status is Not Found
Boot Log:
Code:
PMRD: Sleep failure code 0xffffffff 0x0000001f
Sleep failure code 0xffffffff 0x0000001f
Regular sleep works fine.
Edit: Okay I've come a little further but I don't know how to proceed and this is probably where my hibernation attempt ends. If anyone wants to pick up from where I left, here it goes:
- If you did anything to prevent hibernation, reverse it. For example delete /var/vm/sleepimage so it can be created. You may need to temporarily disable SIP to it.
- Delete your powermanagement settings in /Library/Preferences/com.apple.PowerManagement.*
- Download and install HibernationFixup.kext
- In your OC config set HibernateMode to Auto
- NVRAM: Set hibernationmode to 25 so it uses proper hibernation (saves ram contents to disk) -> sudo pmset -a hibernatemode 25
- Reboot, clear nvram for good measure
- Put your hack to sleep. It will turn off completely which is expected.
- Start it up, choose your macOS startup disk in OC and enjoy the vast emptiness of a black screen
- Reboot, watch it reset immediately after choosing your boot drive
- Start up again normally.
- ???????????????????????
There are zero logs that give any information. The only thing I could see is that OC just seems to stop the booting process without any errors. It doesn't even really start macOS. The logs just stop right before all the kexts should be loaded. It seems to find everything and then nothing:
Code:
OC: Translated HibernateMode Auto to 3
OCB: boot-image pre-fix - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/SasEx(0x010000000025385C,0x81B181717074616C,0x0,NoTopology,0,0,0)/2304805000
OCB: boot-image post-fix - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,71-81-B1-81-5C-38-25-00)/2304805000
OCB: boot-image post-fix remainder - 2304805000
OCB: boot-image is 70 bytes - Success
OCB: RTC hibernation is 1
OCB: NVRAM hibernation is 1 / Success / 44
OC: Hibernation detection status is Success
And then there is a sleep error in the macOS log, but that is generated AFTER step 10:
Code:
PMRD: Sleep failure code 0x01150f00 0x0000001f
Sleep failure code 0x01150f00 0x0000001f