okay well.. i've started reading my preboot.log and disable thing that was not needed... and moving more thing to hotpatch..
So right now.. based on your hotpatch guide...
Code:
DSDT/Fixes provide fixed function ACPI patching. Each "Fix" can do a particular kind of patching that can be used instead of typical patching you might do with MaciASL and static patching. For example, "IRQ Fix" can be accomplished with "FixHPET_0010" "FixIPIC_0040" "FIX_RTC_20000" and "FIX_TMR_40000". As an other example, "Fix _WAK Arg0 v2" can be accomplished with "FIX_WAK_200000". You can read the Clover wiki for more information on each patch. Most of the time, there are not many DSDT "Fixes" needed for basic functionality. DSDT "Fixes" are useful for implementing patches that are difficult or impossible to implement with ACPI/DSDT/Patches or additional SSDTs.
Removed "HPET FIX, IRQ Fix and RTC Fix" by using
FixHPET_0010, FIX_RTC_20000, FixIPIC_0040 and FIX_TMR_40000
Also removed "Fix _WAK Arg0 v2" by using
FIX_WAK_200000
And I tried using The shutdown fix using both
Fix_Shutdown0004 and Halt Enabler
So for now i've only patched my dsdt with the following :
Comment Out External ‘BNUM’ Ref
USB3_PRW 0x6D Skylake (instant wake)
Fix Mutex with non-Zero SyncLevel
add patched Q13 method for brightness keys
Did i assumed wrong?
Edit...
From what i can see now, i don't need Fix Mutex since all the mutex are already returning 0x00
Edit2..
I don't know how to port/hotpatch this :
--------USB3_PRW 0x6D Skylake (instant wake)
I want to hotpatch it so I won't have to comment out something in my dsdt... I feel like this might be why I can't shutdown it...
So right now I got this setup :
Removed "HPET FIX, IRQ Fix and RTC Fix" by using
FixHPET_0010, FIX_RTC_20000, FixIPIC_0040 and FIX_TMR_40000
Also removed "Fix _WAK Arg0 v2" by using
FIX_WAK_200000
And I tried using The shutdown fix using both
Fix_Shutdown0004 and Halt Enabler
Renamed _Q13 to XQ13 and added ssdt-hack.aml (with only brightness keys method.. and slightly modded it.)
but it was pretty close to your example
DSDT PATCHES :
Comment Out External ‘BNUM’ Ref
USB3_PRW 0x6D Skylake (instant wake)
Code:
Franciss-MacBook-Air:RehabMan francis$ kextstat|grep -y acpiplat
15 2 0xffffff7f82530000 0xa5000 0xa5000 com.apple.driver.AppleACPIPlatform (6.1) 33FE0184-9235-32DF-8BC2-0B2B11971EDB <14 13 12 11 7 6 5 4 3 1>
Franciss-MacBook-Air:RehabMan francis$ kextstat|grep -y appleintelcpu
Franciss-MacBook-Air:RehabMan francis$ kextstat|grep -y applelpc
Franciss-MacBook-Air:RehabMan francis$ kextstat|grep -y applehda
105 1 0xffffff7f82147000 0x1f000 0x1f000 com.apple.driver.AppleHDAController (280.12) 55162F3D-B7E9-315C-A7E1-C5C4C02F03EC <104 103 90 12 7 6 5 4 3 1>
131 0 0xffffff7f822cb000 0xb7000 0xb7000 com.apple.driver.AppleHDA (280.12) 7FC2BABA-4D4F-34FC-93E2-3E3244DEB73D <130 106 105 104 103 90 6 5 4 3 1>
133 0 0xffffff7f82166000 0x2000 0x2000 com.apple.driver.AppleHDAHardwareConfigDriver (280.12) 2D6BB587-0D94-3E6D-AFBE-A4A03F37A6A9 <4 3>
Franciss-MacBook-Air:RehabMan francis$ ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
ls: /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*: No such file or directory
Franciss-MacBook-Air:RehabMan francis$ pmset -g assertions
2017-11-05 05:56:16 -0500
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 472(AddressBookSourceSync): [0x0000009900018138] 00:00:18 PreventUserIdleSystemSleep named: "Address Book Source Sync"
Timeout will fire in 1781 secs Action=TimeoutActionTurnOff
pid 95(hidd): [0x0000001100098052] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968078.3"
Timeout will fire in 600 secs Action=TimeoutActionRelease
No kernel assertions.
Idle sleep preventers: IODisplayWrangler
Franciss-MacBook-Air:RehabMan francis$ system_profiler SPSerialATADataType|grep TRIM
TRIM Support: No
Franciss-MacBook-Air:RehabMan francis$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a846860 [0x7fff8fa5a570]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a7db660 [0x7fff8fa5a570]> { URL = "BrcmPatchRAM2.kext/ -- file:///System/Library/Extensions/", ID = "com.no-one.BrcmPatchRAM2" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a6466c0 [0x7fff8fa5a570]> { URL = "BrcmFirmwareRepo.kext/ -- file:///System/Library/Extensions/", ID = "com.no-one.BrcmFirmwareStore" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a695810 [0x7fff8fa5a570]> { URL = "FakeSMC.kext/ -- file:///System/Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a694b20 [0x7fff8fa5a570]> { URL = "IntelGraphicsFixup.kext/ -- file:///System/Library/Extensions/", ID = "as.lvs1974.IntelGraphicsFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc917c24c60 [0x7fff8fa5a570]> { URL = "Lilu.kext/ -- file:///System/Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc917f3be60 [0x7fff8fa5a570]> { URL = "VoodooPS2Mouse.kext/ -- file:///System/Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Mouse" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc917f3a900 [0x7fff8fa5a570]> { URL = "VoodooPS2Controller.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.voodoo.driver.PS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc917dada30 [0x7fff8fa5a570]> { URL = "VoodooPS2Keyboard.kext/ -- file:///System/Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a66bd70 [0x7fff8fa5a570]> { URL = "VoodooPS2Trackpad.kext/ -- file:///System/Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Trackpad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a61ac00 [0x7fff8fa5a570]> { URL = "FakePCIID.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a623570 [0x7fff8fa5a570]> { URL = "FakePCIID_Broadcom_WiFi.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Broadcom-WiFi" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a277c80 [0x7fff8fa5a570]> { URL = "USBInjectAll.kext/ -- file:///System/Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a075580 [0x7fff8fa5a570]> { URL = "PinConfigs.kext/ -- file:///System/Library/Extensions/AppleALC.kext/Contents/PlugIns/", ID = "as.vit9696.PinConfigs" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc91a0749e0 [0x7fff8fa5a570]> { URL = "AppleALC.kext/ -- file:///System/Library/Extensions/", ID = "as.vit9696.AppleALC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc917c07830 [0x7fff8fa5a570]> { URL = "ACPIBatteryManager.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
KernelCache ID: F191E0F79C18AC57897452228F75464A