- switching to imac18,2 since that matches my cpu better (macmini and imac18,1 use mobile cpus; the high-end 2017 imac 21.5 use imac18,2)
- first update usb stick OCTEST
- edited usbports to include that model
- open https://github.com/acidanthera/Lilu/releases/latest https://github.com/acidanthera/AppleALC/releases/latest https://github.com/acidanthera/WhateverGreen/releases/latest https://github.com/acidanthera/VirtualSMC/releases/latest
UEFITool /Users/adriaan/hackintosh/mb_bios_ga-z270n-gaming5_f6d/Z270NG5.F6d
ifrextract Setup.fbd Setup.txt
0x32093 Form: View/Configure CPU Lock Options, FormId: 0x2734 {01 86 34 27 24 07} 0x32099 One Of: CFG Lock, VarStoreInfo (VarOffset/VarName): 0x502, VarStore: 0x1, QuestionId: 0x251, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 C7 08 C8 08 51 02 01 00 02 05 10 10 00 01 00} 0x320AA One Of Option: Disabled, Value (8 bit): 0x0 {09 07 04 00 00 00 00} 0x320B1 One Of Option: Enabled, Value (8 bit): 0x1 (default) {09 07 03 00 30 00 01} 0x320B8 End One Of {29 02} 0x320BA One Of: Overclocking Lock, VarStoreInfo (VarOffset/VarName): 0x5B1, VarStore: 0x1, QuestionId: 0x252, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 C3 08 C4 08 52 02 01 00 B1 05 10 10 00 01 00} 0x320CB One Of Option: Disabled, Value (8 bit): 0x0 (default) {09 07 04 00 30 00 00} 0x320D2 One Of Option: Enabled, Value (8 bit): 0x1 {09 07 03 00 00 00 01} 0x320D9 End One Of {29 02} 0x320DB End Form {29 02}
setup_var 0x502 0x0
is it a bios issue? https://www.tonymacx86.com/threads/should-i-be-able-to-achieve-sleep-wake-intel-hd-630-gpu.260185/post-1869639
- https://github.com/acidanthera/Lilu/releases/download/1.3.8/1.3.8.RELEASE.zip
- https://github.com/acidanthera/AppleALC/releases/download/1.4.1/AppleALC-1.4.1-RELEASE.zip
- https://github.com/acidanthera/WhateverGreen/releases/download/1.3.2/1.3.2.RELEASE.zip
- DON'T BLINDLY UPGRADE CLOVER, revs > 5000 use a new directory layout: https://www.insanelymac.com/forum/topic/304530-clover-change-explanations/?page=6&tab=comments#comment-2681356
- clover r4862 (checked it didn't delete the uefi drivers this time...)
- whatevergreen 1.2.6
- lilu 1.3.1
- was getting some screen blanking when scrolling fast
- finally figured out how to get back to using kaby lake
- the index in the framebuffer patch is what maps to the mobo port that's actually routed to the DP connector on my mobo that's index 3 == port-number 7 (as shown in ioreg)
- since I don't use multiple monitors, I limited the framebuffer count to 1, and set the index for the other fbs to -1
- looks like all I needed was -disablegfxfirmware?
- note that i'm running the coffee lake framebuffer driver, with kbl graphics driver
2018-11-29 20:04:08 +0100 Sleep Entering Sleep state due to 'Software Sleep pid=94':TCPKeepAlive=inactive Using AC (Charge:0%) 3428 secs
2018-11-29 21:01:16 +0100 DarkWake DarkWake from Normal Sleep [CDNPB] due to RTC/Maintenance: Using AC (Charge:0%) 44 secs
2018-11-29 21:02:00 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using AC (Charge:0%) 128 secs
2018-11-29 21:04:08 +0100 DarkWake DarkWake from Normal Sleep [CDNP] due to XDCI XHC/UserActivity Assertion: Using AC (Charge:0%) 3 secs
2018-11-29 21:04:08 +0100 WakeDetails DriverReason:XHC - DriverDetails:
2018-11-29 21:04:08 +0100 HibernateStats hibmode=0 standbydelay=86400 4
2018-11-29 21:04:08 +0100 WakeTime WakeTime: 1.221 sec
Total Sleep/Wakes since boot at 2018-11-29 19:55:45 +0100 :4
➜ ~ pmset -g
System-wide power settings:
Currently in use:
standby 0
Sleep On Power Button 1
womp 1
autorestart 0
hibernatefile /var/vm/sleepimage
proximitywake 0
powernap 1
gpuswitch 2
networkoversleep 0
disksleep 10
standbydelayhigh 86400
sleep 0
hibernatemode 0
ttyskeepawake 1
displaysleep 5
tcpkeepalive 1
highstandbythreshold 50
standbydelaylow 86400
with this setup, slept fine for a whole night
changed sleep to 5 min, hopefully that will work too:
sleep 5
- had to reset a few config options (notable xhci handoff)
- fb patch: spoof coffeelake since it's close enough and used by the new mac mini
- had to switch to iMac17,1 SMBIOS (black screen after boot progress bar), everything else worked - further minimized clover conf - added EmuVariableUefi to see if that helps with sleep/wake
- followed https://www.insanelymac.com/forum/topic/335018-intel-fb-patcher-v165/
- dropped ACPI patches for audio, plugintype, igpu, usb ports, replaced by device properties / clover config
- exported the USBPorts.kext from fbpatcher (based on current working setup), removed USBInjectAll.kext and XHCI-200-series-injector.kext (and acpi patch)
- TODO:
- If you have ACL1220 audio change audio ID in devices inject audio to 2 i had it set to 1 on High Sierra. (https://www.tonymacx86.com/threads/update-directly-to-macos-mojave.260654/page-3#post-1815047)
- https://www.tonymacx86.com/threads/update-directly-to-macos-mojave.260654/page-18#post-1825391
- sudo pmset -a hibernatemode 0 sudo pmset -a standby 0 sudo pmset -a autopoweroff 0
- TODO:
- update clover configurator (5.3.1) and bootloader (https://sourceforge.net/projects/cloverefiboot/files/Installer/Clover_v2.4k_r4769.zip/download)
-
kexts
- download from: - https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek/downloads/RehabMan-FakeSMC-2018-0915.zip - https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads/RehabMan-USBInjectAll-2018-1108.zip - https://github.com/acidanthera/Lilu/releases/download/1.2.8/1.2.8.RELEASE.zip - https://github.com/acidanthera/AppleALC/releases/download/1.3.3/1.3.3.RELEASE.zip - https://github.com/acidanthera/WhateverGreen/releases/download/1.2.4/1.2.4.RELEASE.zip
- copy to /EFI/EFI/CLOVER/kext:
- AppleALC.kext
- FakeSMC.kext
- FakeSMC_ACPISensors.kext
- FakeSMC_CPUSensors.kext
- FakeSMC_GPUSensors.kext
- FakeSMC_LPCSensors.kext
- FakeSMC_SMMSensors.kext
- Lilu.kext
- USBInjectAll.kext
- WhateverGreen.kext
- maintain custom injector:
- XHCI-200-series-injector.kext (custom)
-
- /EFI/CLOVER/drivers64UEFI
- ApfsDriverLoader.efi
- UsbKbDxe.efi
- AppleUiSupport.efi
- ApfsDriverLoader.efi
- /EFI/CLOVER/drivers64UEFI
-
Used clover configurator to install additional drivers to drivers64UEFI - AppleImageCodec-64.efi - AppleImageLoader-64.efi - AppleKeyAggregator-64.efi - AppleKeyFeeder-64.efi - AppleUITheme-64.efi - AptioInputFix-64.efi - AptioMemoryFix-64.efi - DataHubDxe-64.efi - EmuVariableUefi-64.efi - FSInject-64.efi - FirmwareVolume-64.efi - SMCHelper-64.efi - VBoxHfs-64.efi
-
- wiped out some drivers, didn't boot anymore: https://www.tonymacx86.com/threads/warning-clover-update-r4586-deletes-osxaptiofix3drv-64-efi.255174/
- took the opportunity to update all custom kexts
- 6.26-344-g1cf53906.1787 fakesmc: https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek/downloads/
- 0.6.6 usb-injectall https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads/
- v1.2.4 https://github.com/acidanthera/Lilu/releases
- v1.2.8 https://github.com/acidanthera/AppleALC/releases
- v1.3.2 https://github.com/acidanthera/ApfsSupportPkg (no longer need to update apfs.efi every upgrade)
- v1.2.7 https://github.com/lvs1974/IntelGraphicsFixup/releases
- Follow https://www.tonymacx86.com/threads/install-high-sierra-public-beta-to-a-new-partition-apfs.226446/
- Update clover, fakesmc, lilu, applealc, USBInjectAll
- install apfs.efi as a driver for use during efi boot
- CsrActiveConfig 0x67 for the install (todo: set back to 0)
- NVMe is native now: Drop the SSDT-NVMe-Pcc.aml table (at first manually during install so I could easily go back if it failed, then just by removing the fail). Also remove the HackrNVMeFamily-10_12_6 kext of course.
- upgrade to latest
- load optimized defaults, disable unused stuff (sata), enable ehci handoff
- vt-d enabled (disabled in macOS using boot option dart=0) -- TODO: should probably disable in bios
- no entry sign on install was resolved by acpi dsdt patches & usbinjectall to get access to USB3 SuperSpeed ports
- trying to get wake from sleep working:
- disabled boot logo / explicitly disabled CSM by first chosing Windows 8 as OS
- disabled now-unused ethernet
- eabled ASPM, but disabled the subsettings for discrete gfx/dmi/... aspm
- enabled Render Standby (IGPU low power mode in idle)
- enabled ERP (low power on standby)
- mind blown bluetooth keyboard/trackpad works in the bios!!!
After following https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/, disabled the port limit (15 -> 20) patch.
HS01-HS06 = ports 1..6 SS01-SS06 = ports 0x11..0x16
-
Intel USB controller
-
6 USB 3.1 Gen 1 ports (all confirmed working)
- HS01/SS02 Front left @14100000 id 0x1000002ca / SS02@15200000 id 0x1000002db
- HS02/SS01 Front right @14200000 id 0x1000002cb / SS01@15100000 id 0x1000002da
- HS03 Back under PS2 port bottom @14300000 id 0x1000002cc / SS03@15300000 id 0x1000002dc
- HS04 Back under PS2 port top @14400000 id 0x1000002cd
- HS05 Back under ethernet port bottom @14500000 id 0x1000002ce / SS05@15500000 id 0x1000002de
- HS06 Back under ethernet port top @14600000 id 0x1000002cf / SS06@15600000 id 0x1000002df
-
2 x USB 2.0/1.1 ports (internal USB header)
-
-
ASMedia ASM2142 usb controller (Known not working: RehabMan/OS-X-USB-Inject-All#4 (comment))
- 1 x USB Type-C™ port on the back panel, with USB 3.1 Gen 2 support
- 1 x USB 3.1 Gen 2 Type-A port (red) on the back panel
log show --predicate 'process == "kernel" and senderImagePath contains[cd] "AppleACPIPlatform"' --debug --info --last 10m
PCPartPicker build notes/pics, and full part list:
- Intel - Core i7-7700 3.6GHz Quad-Core Processor
- Noctua - NH-L9i 33.8 CFM CPU Cooler
- Gigabyte - GA-Z270N-Gaming 5 Mini ITX LGA1151 Motherboard
- Corsair - Vengeance LPX 32GB (2 x 16GB) DDR4-2400 Memory
- Samsung - 960 EVO 250GB M.2-2280 Solid State Drive
- Hobbypower BCM94360CS2 Card To NGFF(M.2) Key A/E Adapter
- Apple Laptop bt/wifi BCM94360CS2 module 653-0023 (A1465 A1466)
- Dell - P2415Q 23.8" -- connected using displayport
- picoPSU-160-XT 160W 12V DC-DC Power Converter Module
- 192w AC-DC Power Adapter, 12v 16A
https://browser.geekbench.com/v4/cpu/3285984