Skip to content

Instantly share code, notes, and snippets.

@adriaanm
Last active November 6, 2020 11:45
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adriaanm/836c6a74f77e92950f5a83de5c711b54 to your computer and use it in GitHub Desktop.
Save adriaanm/836c6a74f77e92950f5a83de5c711b54 to your computer and use it in GitHub Desktop.
"mac" mini config

My logbook on my first hackintosh

try imac18,2

  • 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)

oc 0.6.3

cfg lock

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

sleep still not working

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

just bumping in case that helps with sleep...

Round of updates (prep for 10.14.3 update)

  • clover r4862 (checked it didn't delete the uefi drivers this time...)
  • whatevergreen 1.2.6
  • lilu 1.3.1

back to kaby lake

  • 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

sleep/wake working!?!?

  • 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

upgrade to latest bios

  • had to reset a few config options (notable xhci handoff)

made MacMini8,1 work

  • fb patch: spoof coffeelake since it's close enough and used by the new mac mini

Upgraded to 10.4.1

  • 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

Preparing for Mojave upgrade

Clover update r4769

Clover update r4586

High Sierra upgrade

BIOS

  • 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!!!

USB details

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

Misc

logging

log show --predicate 'process == "kernel" and senderImagePath contains[cd] "AppleACPIPlatform"' --debug --info --last 10m

Build

PCPartPicker build notes/pics, and full part list:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>Comment</key>
<string>SSDT-EC-USBX.aml</string>
<key>Path</key>
<string>SSDT-EC-USBX.aml</string>
<key>Enabled</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>SSDT-PLUG.aml</string>
<key>Path</key>
<string>SSDT-PLUG.aml</string>
<key>Enabled</key>
<true/>
</dict>
</array>
<key>Delete</key>
<array>
</array>
<key>Patch</key>
<array>
</array>
<key>Quirks</key>
<dict/>
</dict>
<key>Booter</key>
<dict>
<key>MmioWhitelist</key>
<array>
</array>
<key>Quirks</key>
<dict>
<key>AvoidRuntimeDefrag</key>
<true/>
<key>DevirtualiseMmio</key>
<false/>
<key>DisableSingleUser</key>
<false/>
<key>DisableVariableWrite</key>
<false/>
<key>DiscardHibernateMap</key>
<false/>
<key>EnableSafeModeSlide</key>
<true/>
<key>EnableWriteUnprotector</key>
<true/>
<key>ForceExitBootServices</key>
<false/>
<key>ProtectMemoryRegions</key>
<false/>
<key>ProtectSecureBoot</key>
<false/>
<key>ProtectUefiServices</key>
<false/>
<key>ProvideCustomSlide</key>
<true/>
<key>ProvideMaxSlide</key>
<integer>0</integer>
<key>RebuildAppleMemoryMap</key>
<true/>
<key>SetupVirtualMap</key>
<true/>
<key>SignalAppleOS</key>
<false/>
<key>SyncRuntimePermissions</key>
<true/>
</dict>
</dict>
<key>DeviceProperties</key>
<dict>
<key>Add</key>
<dict>
<key>PciRoot(0x0)/Pci(0x1f,0x3)</key>
<dict>
<key>layout-id</key>
<data>AQAAAA==</data>
</dict>
<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
<dict>
<key>AAPL,ig-platform-id</key>
<data>AAASWQ==</data>
<key>framebuffer-patch-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con0-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con1-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con3-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-con0-index</key>
<data>AwAAAA==</data>
<key>framebuffer-con0-busid</key>
<data>BgAAAA==</data>
<key>framebuffer-con0-pipe</key>
<data>EgAAAA==</data>
<key>framebuffer-con0-type</key>
<data>AAQAAA==</data>
<key>framebuffer-con0-flags</key>
<data>xwMAAA==</data>
<key>framebuffer-con1-index</key>
<data>/////w==</data>
<key>framebuffer-con1-busid</key>
<data>AAAAAA==</data>
<key>framebuffer-con1-pipe</key>
<data>AAAAAA==</data>
<key>framebuffer-con1-type</key>
<data>AQAAAA==</data>
<key>framebuffer-con1-flags</key>
<data>IAAAAA==</data>
<key>framebuffer-con2-index</key>
<data>/////w==</data>
<key>framebuffer-con2-busid</key>
<data>AAAAAA==</data>
<key>framebuffer-con2-pipe</key>
<data>AAAAAA==</data>
<key>framebuffer-con2-type</key>
<data>AQAAAA==</data>
<key>framebuffer-con2-flags</key>
<data>IAAAAA==</data>
<key>framebuffer-con3-index</key>
<data>/////w==</data>
<key>framebuffer-con3-busid</key>
<data>AAAAAA==</data>
<key>framebuffer-con3-pipe</key>
<data>AAAAAA==</data>
<key>framebuffer-con3-type</key>
<data>AQAAAA==</data>
<key>framebuffer-con3-flags</key>
<data>IAAAAA==</data>
<key>framebuffer-portcount</key>
<data>AQAAAA==</data>
</dict>
</dict>
<key>Delete</key>
<dict/>
</dict>
<key>Kernel</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>Comment</key>
<string></string>
<key>MaxKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
<key>Enabled</key>
<true/>
<key>MinKernel</key>
<string></string>
<key>ExecutablePath</key>
<string>Contents/MacOS/Lilu</string>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>Lilu.kext</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>MaxKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
<key>Enabled</key>
<true/>
<key>MinKernel</key>
<string></string>
<key>ExecutablePath</key>
<string>Contents/MacOS/VirtualSMC</string>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>VirtualSMC.kext</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>MaxKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
<key>Enabled</key>
<true/>
<key>MinKernel</key>
<string></string>
<key>ExecutablePath</key>
<string>Contents/MacOS/AppleALC</string>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>AppleALC.kext</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>MaxKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
<key>Enabled</key>
<true/>
<key>MinKernel</key>
<string></string>
<key>ExecutablePath</key>
<string></string>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>USBPorts.kext</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>MaxKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
<key>Enabled</key>
<true/>
<key>MinKernel</key>
<string></string>
<key>ExecutablePath</key>
<string>Contents/MacOS/WhateverGreen</string>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>WhateverGreen.kext</string>
</dict>
</array>
<key>Block</key>
<array>
</array>
<key>Emulate</key>
<dict/>
<key>Patch</key>
<array>
</array>
<key>Quirks</key>
<dict>
<key>DisableIoMapper</key>
<true/>
<key>DisableLinkeditJettison</key>
<true/>
<key>DisableRtcChecksum</key>
<false/>
<key>ExtendBTFeatureFlags</key>
<false/>
<key>ForceSecureBootScheme</key>
<false/>
<key>IncreasePciBarSize</key>
<false/>
<key>LapicKernelPanic</key>
<false/>
<key>LegacyCommpage</key>
<false/>
<key>PanicNoKextDump</key>
<true/>
</dict>
<key>Scheme</key>
<dict>
<key>FuzzyMatch</key>
<true/>
<key>KernelArch</key>
<string>x86_64</string>
<key>KernelCache</key>
<string>Auto</string>
</dict>
</dict>
<key>Misc</key>
<dict>
<key>BlessOverride</key>
<array>
</array>
<key>Boot</key>
<dict>
<key>HibernateMode</key>
<string>None</string>
<key>HideAuxiliary</key>
<false/>
<key>PickerAttributes</key>
<integer>1</integer>
<key>PickerAudioAssist</key>
<false/>
<key>PickerMode</key>
<string>Builtin</string>
<key>PollAppleHotKeys</key>
<false/>
<key>ShowPicker</key>
<true/>
<key>TakeoffDelay</key>
<integer>0</integer>
<key>Timeout</key>
<integer>5</integer>
</dict>
<key>Debug</key>
<dict>
<key>AppleDebug</key>
<false/>
<key>ApplePanic</key>
<false/>
<key>DisableWatchDog</key>
<false/>
<key>DisplayDelay</key>
<integer>0</integer>
<key>DisplayLevel</key>
<integer>2147483650</integer>
<key>SerialInit</key>
<false/>
<key>SysReport</key>
<false/>
<key>Target</key>
<integer>3</integer>
</dict>
<key>Entries</key>
<array>
</array>
<key>Security</key>
<dict>
<key>AllowNvramReset</key>
<true/>
<key>AllowSetDefault</key>
<true/>
<key>ApECID</key>
<integer>0</integer>
<key>AuthRestart</key>
<false/>
<key>BlacklistAppleUpdate</key>
<true/>
<key>BootProtect</key>
<string>Bootstrap</string>
<key>DmgLoading</key>
<string>Signed</string>
<key>EnablePassword</key>
<false/>
<key>ExposeSensitiveData</key>
<integer>6</integer>
<key>HaltLevel</key>
<integer>2147483648</integer>
<key>PasswordHash</key>
<data></data>
<key>PasswordSalt</key>
<data></data>
<key>ScanPolicy</key>
<integer>0</integer>
<key>SecureBootModel</key>
<string>Default</string>
<key>Vault</key>
<string>Optional</string>
</dict>
<key>Tools</key>
<array>
<dict>
<key>Comment</key>
<string>BootKicker.efi</string>
<key>Name</key>
<string>BootKicker.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>BootKicker.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>ChipTune.efi</string>
<key>Name</key>
<string>ChipTune.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>ChipTune.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>CleanNvram.efi</string>
<key>Name</key>
<string>CleanNvram.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>CleanNvram.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>GopStop.efi</string>
<key>Name</key>
<string>GopStop.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>GopStop.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>HdaCodecDump.efi</string>
<key>Name</key>
<string>HdaCodecDump.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>HdaCodecDump.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>KeyTester.efi</string>
<key>Name</key>
<string>KeyTester.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>KeyTester.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>MmapDump.efi</string>
<key>Name</key>
<string>MmapDump.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>MmapDump.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>OpenControl.efi</string>
<key>Name</key>
<string>OpenControl.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>OpenControl.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>OpenShell.efi</string>
<key>Name</key>
<string>OpenShell.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>OpenShell.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>ResetSystem.efi</string>
<key>Name</key>
<string>ResetSystem.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>ResetSystem.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>RtcRw.efi</string>
<key>Name</key>
<string>RtcRw.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>RtcRw.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>VerifyMsrE2.efi</string>
<key>Name</key>
<string>VerifyMsrE2.efi</string>
<key>Enabled</key>
<true/>
<key>Arguments</key>
<string></string>
<key>Path</key>
<string>VerifyMsrE2.efi</string>
<key>Auxiliary</key>
<true/>
</dict>
</array>
</dict>
<key>NVRAM</key>
<dict>
<key>Add</key>
<dict>
<key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
<dict>
<key>DefaultBackgroundColor</key>
<data>AAAAAA==</data>
<key>UIScale</key>
<data>Ag==</data>
</dict>
<key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
<dict>
<key>rtc-blacklist</key>
<data></data>
</dict>
<key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
<dict>
<key>SystemAudioVolume</key>
<data>Rg==</data>
<key>boot-args</key>
<string>-disablegfxfirmware keepsyms=1 -v</string>
<key>run-efi-updater</key>
<string>No</string>
<key>csr-active-config</key>
<data>AAAAAA==</data>
</dict>
</dict>
<key>Delete</key>
<dict>
<key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
<array>
<string>UIScale</string>
<string>DefaultBackgroundColor</string>
</array>
<key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
<array>
<string>boot-args</string>
</array>
</dict>
<key>WriteFlash</key>
<true/>
</dict>
<key>PlatformInfo</key>
<dict>
<key>Automatic</key>
<true/>
<key>CustomMemory</key>
<false/>
<key>Generic</key>
<dict>
<key>SystemMemoryStatus</key>
<string>Auto</string>
<key>MLB</key>
<string>C02024303CDH69FFB</string>
<key>ProcessorType</key>
<integer>0</integer>
<key>SystemProductName</key>
<string>iMac18,2</string>
<key>SystemSerialNumber</key>
<string>C02CVTZAH7JY</string>
<key>SystemUUID</key>
<string>80E5836B-FD07-4D66-A9C4-EA1A5386EA3C</string>
</dict>
<key>UpdateDataHub</key>
<true/>
<key>UpdateNVRAM</key>
<true/>
<key>UpdateSMBIOS</key>
<true/>
<key>UpdateSMBIOSMode</key>
<string>Create</string>
</dict>
<key>UEFI</key>
<dict>
<key>APFS</key>
<dict>
<key>EnableJumpstart</key>
<true/>
<key>GlobalConnect</key>
<false/>
<key>HideVerbose</key>
<true/>
<key>JumpstartHotPlug</key>
<false/>
<key>MinDate</key>
<integer>0</integer>
<key>MinVersion</key>
<integer>0</integer>
</dict>
<key>Audio</key>
<dict>
<key>AudioCodec</key>
<integer>0</integer>
<key>AudioDevice</key>
<string>PciRoot(0x0)/Pci(0x1b,0x0)</string>
<key>AudioOut</key>
<integer>0</integer>
<key>AudioSupport</key>
<false/>
<key>MinimumVolume</key>
<integer>20</integer>
<key>PlayChime</key>
<false/>
<key>VolumeAmplifier</key>
<integer>0</integer>
</dict>
<key>ConnectDrivers</key>
<true/>
<key>Drivers</key>
<array>
<string>AudioDxe.efi</string>
<string>CrScreenshotDxe.efi</string>
<string>HiiDatabase.efi</string>
<string>NvmExpressDxe.efi</string>
<string>OpenCanopy.efi</string>
<string>OpenRuntime.efi</string>
<string>OpenUsbKbDxe.efi</string>
<string>Ps2KeyboardDxe.efi</string>
<string>Ps2MouseDxe.efi</string>
<string>UsbMouseDxe.efi</string>
<string>XhciDxe.efi</string>
</array>
<key>Input</key>
<dict>
<key>KeyFiltering</key>
<false/>
<key>KeyForgetThreshold</key>
<integer>5</integer>
<key>KeyMergeThreshold</key>
<integer>2</integer>
<key>KeySupport</key>
<true/>
<key>KeySupportMode</key>
<string>Auto</string>
<key>KeySwap</key>
<false/>
<key>PointerSupport</key>
<false/>
<key>PointerSupportMode</key>
<string>ASUS</string>
<key>TimerResolution</key>
<integer>50000</integer>
</dict>
<key>Output</key>
<dict>
<key>ClearScreenOnModeSwitch</key>
<false/>
<key>ConsoleMode</key>
<string></string>
<key>DirectGopRendering</key>
<false/>
<key>ForceResolution</key>
<false/>
<key>IgnoreTextInGraphics</key>
<false/>
<key>ProvideConsoleGop</key>
<true/>
<key>ReconnectOnResChange</key>
<false/>
<key>ReplaceTabWithSpace</key>
<false/>
<key>Resolution</key>
<string>Max</string>
<key>SanitiseClearScreen</key>
<false/>
<key>TextRenderer</key>
<string>BuiltinGraphics</string>
<key>UgaPassThrough</key>
<false/>
</dict>
<key>ProtocolOverrides</key>
<dict>
<key>AppleAudio</key>
<false/>
<key>AppleBootPolicy</key>
<false/>
<key>AppleDebugLog</key>
<false/>
<key>AppleEvent</key>
<false/>
<key>AppleFramebufferInfo</key>
<false/>
<key>AppleImageConversion</key>
<false/>
<key>AppleImg4Verification</key>
<false/>
<key>AppleKeyMap</key>
<false/>
<key>AppleRtcRam</key>
<false/>
<key>AppleSecureBoot</key>
<false/>
<key>AppleSmcIo</key>
<false/>
<key>AppleUserInterfaceTheme</key>
<false/>
<key>DataHub</key>
<false/>
<key>DeviceProperties</key>
<false/>
<key>FirmwareVolume</key>
<false/>
<key>HashServices</key>
<false/>
<key>OSInfo</key>
<false/>
<key>UnicodeCollation</key>
<false/>
</dict>
<key>Quirks</key>
<dict>
<key>DeduplicateBootOrder</key>
<true/>
<key>ExitBootServicesDelay</key>
<integer>0</integer>
<key>IgnoreInvalidFlexRatio</key>
<false/>
<key>ReleaseUsbOwnership</key>
<false/>
<key>RequestBootVarRouting</key>
<true/>
<key>TscSyncTimeout</key>
<integer>0</integer>
<key>UnblockFsConnect</key>
<false/>
</dict>
<key>ReservedMemory</key>
<array>
</array>
</dict>
</dict>
</plist>
http://www.insanelymac.com/forum/topic/320897-black-screen-when-plugging-hdmi/?p=2362782
00001259 00000000 5E900800 00000000
00030303 00006002 00000000 00000060 6C050000 6C050000 00000000 00000000
01050900 00040000 87010000
02040A00 00040000 87010000
03060A00 00040000 87010000
FF000000 01000000 20000000
0B110000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 A0821C00 00000000 F0821C00 00000000 01000000 08000000 00000000 00000000
DE900800 00000000 00020302 00006002 00000000 00000060 6C050000 6C050000 00000000 00000000
00000800 02000000 98000000 03050900 00040000 87010000 02040A00 00080000 87010000
PATCH:
00030303 00006002 --> 00020302 00006002 // 2 pipes, ports, framebuffers
01050900 00040000 87010000 02040A00 00040000 87010000 03060A00 00040000 87010000 ->
03000800 00040000 87010000 02040900 00080000 87010000 FF000000 01000000 20000000
03000800 00040000 87010000
AppleIntelKBLGraphicsFramebuffer:
0x59128086
0x59168086
0x591B8086
0x591E8086
0x59268086
0x59278086
0x59238086
1259 // hd 630 0x5912
0000 0000 5E90 0800 0000 0000 // zeroes get patched when kext is loaded
00
03 03 03 pipe/port/framebuff counts
0000 6002
0000 0000
0000 0060
6C05 0000
6C05 0000
0000 0000 0000 0000
FF00 0000 0100 0000 2000 0000
0204 0A00 0004 0000 8701 0000
0105 0900 0004 0000 8701 0000
0306 0A00 0004 0000 8701 0000
0B11 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
5082 1C00 0000 0000
A082 1C00 0000 0000
F082 1C00 0000 0000
0100 0000 0800 0000
0000 0000 0000 0000 0000
00001B59 // mobile hd 630, actually used in lineup in mbp (1259 is not currently)
0000 0000 5E90 0800 0000 0000
01
03 03 03
0000 6002
0000 5001
0000 0060
6C05 0000
6C05 0000
0000 0000 0000 0000
0000 0800 0200 0000 9800 0000
0204 0A00 0008 0000 8701 0000
0306 0A00 0004 0000 8701 0000
FF00 0000 0100 0000 2000 0000
0B130000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5082 1C00 0000 0000
F082 1C00 0000 0000
F082 1C00 0000 0000
0100 0000 0800 0000
0100 0000 0000 0000
AppleIntelSKLGraphicsFramebuffer
1219 0000 0000 4F88 0800 0000 0000 0103 0303
0000 2002
0000 5001
0000 0060
6C05 0000
6C05 0000
0000 0000
0000 0000
Port:
- FF: not used
- N: port-number N+4
POFB CNTP
FF00 0000 0100 0000 2000 0000 // internal display
0105 0900 0004 0000 8701 0000
0204 0A00 0004 0000 8701 0000
0306 0A00 0004 0000 8701 0000
0F11 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
6045 1C00 0000 0000
B046 1C00 0000 0000
B046 1C00 0000 0000
0100 0000 0800 0000 0100 0000 0000 0000 0100
03060a00 00040000 87010000
06 00 1B 59 | D E 9 | 01 01 01 01 | 6002 | 0000 | 00 00 08 00 02000000 98040000 | FF 00 00 00 01000000 20000000 | FF 00 00 00 01000000 20000000 | FF000000 01000000 20000000 | 02131300 00000600 03000000 04000000 80DF1710 00000000 78050000 D2050000 40060000 00000000 00000000 00000000 50821C00 00000000 F0821C00 00000000 F0821C00 00000000 01000000 08000000 00000000 00000000
00 00 12 59 | 5 E 9 | 00 03 03 03 | 6002 | 0000 | 01 05 09 00 00040000 87010000 | 02 04 0A 00 00040000 87010000 | 03 06 0A 00 00040000 87010000 | FF000000 01000000 20000000 | 0B110000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 A0821C00 00000000 F0821C00 00000000 01000000 08000000 00000000 00000000
03 00 12 59 | 8 E 9 | 01 00 00 00 | 0000 | 0000 | FF 00 00 00 01000000 20000000 | FF 00 00 00 01000000 20000000 | FF 00 00 00 01000000 20000000 | FF000000 01000000 20000000 | 00100000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 C0801C00 00000000 B0811C00 00000000 00821C00 00000000 01000000 08000000 00000000 00000000
00 00 16 59 | 5 E 9 | 01 03 03 03 | 2002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 87010000 | 02 04 0A 00 00080000 87010000 | FF000000 01000000 20000000 | 0B0B0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 C0801C00 00000000 B0811C00 00000000 00821C00 00000000 01000000 08000000 01000000 00000000
02 00 18 59 | 8 E 9 | 01 00 00 00 | 0000 | 0000 | FF 00 00 00 01000000 20000000 | FF 00 00 00 01000000 20000000 | FF 00 00 00 01000000 20000000 | FF000000 01000000 20000000 | 00100000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 C0801C00 00000000 B0811C00 00000000 00821C00 00000000 01000000 08000000 00000000 00000000
00 00 1B 59 | 5 E 9 | 01 03 03 03 | 6002 | 5001 | 00 00 08 00 02000000 98000000 | 02 04 0A 00 00080000 87010000 | 03 06 0A 00 00040000 87010000 | FF000000 01000000 20000000 | 0B130000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 F0821C00 00000000 F0821C00 00000000 01000000 08000000 01000000 00000000
06 00 1B 59 | D E 9 | 01 01 01 01 | 6002 | 0000 | 00 00 08 00 02000000 98040000 | FF 00 00 00 01000000 20000000 | FF 00 00 00 01000000 20000000 | FF000000 01000000 20000000 | 02131300 00000600 03000000 04000000 80DF1710 00000000 78050000 D2050000 40060000 00000000 00000000 00000000 50821C00 00000000 F0821C00 00000000 F0821C00 00000000 01000000 08000000 00000000 00000000
00 00 1E 59 | 5 E 9 | 01 03 03 03 | 2002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 87010000 | 02 04 0A 00 00040000 87010000 | FF000000 01000000 20000000 | 8B070000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 C0801C00 00000000 10811C00 00000000 60811C00 00000000 01000000 08000000 01000000 00000000
01 00 1E 59 | 7 8 9 | 01 03 03 03 | 6002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 81010000 | 02 04 0A 00 00040000 81010000 | FF000000 01000000 20000000 | 02072B00 00000000 02000000 04000000 00EF1C0D 00000000 78050000 D2050000 40060000 00000000 00000000 00000000 C0801C00 00000000 60811C00 00000000 40831C00 00000000 01000000 08000000 01000000 00000000
00 00 23 59 | 5 E 9 | 00 03 03 03 | 6002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 87010000 | 02 04 0A 00 00040000 87010000 | FF000000 01000000 20000000 | 8B0B0300 00000600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 B0811C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
00 00 26 59 | 5 E 9 | 00 03 03 03 | 6002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 87010000 | 02 04 0A 00 00040000 87010000 | FF000000 01000000 20000000 | 8B0B0300 00000600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 B0811C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
02 00 26 59 | A 4 9 | 01 03 03 03 | 9003 | 0000 | 00 00 08 00 02000000 98040000 | 01 05 09 00 00040000 C7030000 | 02 04 0A 00 00040000 C7030000 | FF000000 01000000 20000000 | 0A0BE300 00070600 03000000 04000000 80DF1710 00000000 78050000 D2050000 40060000 00000000 00000000 00000000 50821C00 00000000 00821C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
07 00 26 59 | A 4 9 | 00 03 03 03 | 9003 | 5001 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 C7030000 | 02 04 0A 00 00040000 C7030000 | FF000000 01000000 20000000 | 0E0B8300 00070600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 00821C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
00 00 27 59 | 5 E 9 | 00 03 03 03 | 6002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 87010000 | 02 04 0A 00 00040000 87010000 | FF000000 01000000 20000000 | 8B0B0300 00000600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 B0811C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
09 00 27 59 | 5 E 9 | 01 03 03 03 | 6002 | 0000 | 00 00 08 00 02000000 98000000 | 01 05 09 00 00040000 C7010000 | 02 04 0A 00 00040000 C7010000 | FF000000 01000000 20000000 | 0A0B8300 00070600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 50821C00 00000000 00821C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
04 00 27 59 | C 1 9 | 01 03 03 03 | 9003 | 0000 | 00 00 08 00 02000000 98040000 | 01 05 09 00 00040000 C7030000 | 02 04 0A 00 00040000 C7030000 | FF000000 01000000 20000000 | 0A0BE300 00070600 03000000 04000000 80DF1710 00000000 78050000 D2050000 40060000 00000000 00000000 00000000 50821C00 00000000 00821C00 00000000 00821C00 00000000 02000000 08000000 00000000 00000000
Capri (mac mini)
0B006601 00020302 00000002 00000001 | 02050000 00040000 07010000 | 03040000 00040000 07010000 | 04060000 00080000 06000000 | 00000000 01000000 40000000 | 00000000 00000200 10C80F00 1CC80F00 28C80F00 34C80F00 00CC0F00 0CCC0F00 18CC0F00 24CC0F00 00D00F00 0CD00F00 18D00F00 24D00F00 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 006F9801 FFFFFFFF
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20161210-64(RM)
* Copyright (c) 2000 - 2016 Intel Corporation
*
* Disassembling to non-symbolic legacy ASL operators
*
* Disassembly of iASLd68ZT6.aml, Mon Apr 13 23:14:33 2020
*
* Original Table Header:
* Signature "SSDT"
* Length 0x0000015D (349)
* Revision 0x02
* Checksum 0xC2
* OEM ID "ACDT"
* OEM Table ID "SsdtEC"
* OEM Revision 0x00001000 (4096)
* Compiler ID "INTL"
* Compiler Version 0x20161210 (538317328)
*/
DefinitionBlock ("", "SSDT", 2, "ACDT", "SsdtEC", 0x00001000)
{
External (_SB_.PCI0.LPCB, DeviceObj) // (from opcode)
External (_SB_.PCI0.LPCB.H_EC, DeviceObj) // (from opcode)
Scope (\_SB.PCI0.LPCB.H_EC)
{
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (Zero)
}
Else
{
Return (0x0F)
}
}
}
Scope (\_SB)
{
Device (USBX)
{
Name (_ADR, Zero) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x08)
{
"kUSBSleepPowerSupply",
0x13EC,
"kUSBSleepPortCurrentLimit",
0x0834,
"kUSBWakePowerSupply",
0x13EC,
"kUSBWakePortCurrentLimit",
0x0834
})
}
}
Scope (\_SB.PCI0.LPCB)
{
Device (EC)
{
Name (_HID, "ACID0001") // _HID: Hardware ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}
}
}
}
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20161210-64(RM)
* Copyright (c) 2000 - 2016 Intel Corporation
*
* Disassembling to non-symbolic legacy ASL operators
*
* Disassembly of iASLZotXOB.aml, Mon Apr 13 23:13:52 2020
*
* Original Table Header:
* Signature "SSDT"
* Length 0x00000063 (99)
* Revision 0x02
* Checksum 0x83
* OEM ID "ACDT"
* OEM Table ID "CpuPlug"
* OEM Revision 0x00003000 (12288)
* Compiler ID "INTL"
* Compiler Version 0x20161210 (538317328)
*/
DefinitionBlock ("", "SSDT", 2, "ACDT", "CpuPlug", 0x00003000)
{
External (_PR_.CPU0, DeviceObj) // (from opcode)
Scope (\_PR.CPU0)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x02)
{
"plugin-type",
One
})
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleGetInfoString</key>
<string>1.0 Copyright © 2018 Headsoft. All rights reserved.</string>
<key>CFBundleIdentifier</key>
<string>com.Headsoft.USBPorts</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>USBPorts</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>IOKitPersonalities</key>
<dict>
<key>iMac18,1-XHC</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
<key>IOClass</key>
<string>AppleUSBHostMergeProperties</string>
<key>IONameMatch</key>
<string>XHC</string>
<key>IOProviderClass</key>
<string>AppleUSBXHCIPCI</string>
<key>IOProviderMergeProperties</key>
<dict>
<key>port-count</key>
<data>
FgAAAA==
</data>
<key>ports</key>
<dict>
<key>HS01</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AQAAAA==
</data>
</dict>
<key>HS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AgAAAA==
</data>
</dict>
<key>HS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AwAAAA==
</data>
</dict>
<key>HS04</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
BAAAAA==
</data>
</dict>
<key>HS05</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
BQAAAA==
</data>
</dict>
<key>HS06</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
BgAAAA==
</data>
</dict>
<key>HS08</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>
CAAAAA==
</data>
</dict>
<key>SS01</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
EQAAAA==
</data>
</dict>
<key>SS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
EgAAAA==
</data>
</dict>
<key>SS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
EwAAAA==
</data>
</dict>
<key>SS04</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
FAAAAA==
</data>
</dict>
<key>SS05</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
FQAAAA==
</data>
</dict>
<key>SS06</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
FgAAAA==
</data>
</dict>
</dict>
</dict>
<key>model</key>
<string>iMac18,1</string>
</dict>
<key>iMac18,2-XHC</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
<key>IOClass</key>
<string>AppleUSBHostMergeProperties</string>
<key>IONameMatch</key>
<string>XHC</string>
<key>IOProviderClass</key>
<string>AppleUSBXHCIPCI</string>
<key>IOProviderMergeProperties</key>
<dict>
<key>port-count</key>
<data>
FgAAAA==
</data>
<key>ports</key>
<dict>
<key>HS01</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AQAAAA==
</data>
</dict>
<key>HS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AgAAAA==
</data>
</dict>
<key>HS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AwAAAA==
</data>
</dict>
<key>HS04</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
BAAAAA==
</data>
</dict>
<key>HS05</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
BQAAAA==
</data>
</dict>
<key>HS06</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
BgAAAA==
</data>
</dict>
<key>HS08</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>
CAAAAA==
</data>
</dict>
<key>SS01</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
EQAAAA==
</data>
</dict>
<key>SS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
EgAAAA==
</data>
</dict>
<key>SS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
EwAAAA==
</data>
</dict>
<key>SS04</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
FAAAAA==
</data>
</dict>
<key>SS05</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
FQAAAA==
</data>
</dict>
<key>SS06</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
FgAAAA==
</data>
</dict>
</dict>
</dict>
<key>model</key>
<string>iMac18,2</string>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
@adriaanm
Copy link
Author

adriaanm commented Jul 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment