Contribute
Register

[Guide] Intel NUC7/NUC8 using Clover UEFI (NUC7i7Bxx,NUC8i7Bxx,etc)

Leesureone

Moderator
Joined
Feb 21, 2010
Messages
3,505
Motherboard
Asus Z690 Rog Strix G Gaming
CPU
i9-12900K
Graphics
RX 6900 XT
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. iOS
It's me again. :-/ My NUC is still giving me grief—now it's refusing to sleep reliably.

So, I'm still at the stage after having gotten rid of FakePCIID.kext and FakePCIID_Intel_HDMI_Audio.kext and having installed a modified AppleALC.kext.
At first there was no digital audio to be found, but after having used the NUC for a while (with my Soundblaster sound card still in use) and a couple of reboots, there is suddenly a digital DisplayPort option in the sound output preferences and… it even works.
I do not have the slightest clue as to why this took so long to appear. I don't remember changing anything else system-wise which might have triggered this change. It's bizarre.

Unfortunately a new problem did arise (seemingly alongside this change): My NUC's sleep doesn't work reliably anymore. :(

Sometimes the NUC ignores sleep commands completely and nothing happens at all, sometimes it goes to sleep for a second, only to wake up again immediately.

I looked at the system.log file, but can't see much there that would give me a clue. My energy saver settings do also look a bit weird: There is only a time slider for the display, not for the Mac itself (see attached screenshot). Though it looked like that from the beginning, sleep used to work before regardless. Unfortunately, not anymore and I have no idea why.

Here is an excerpt of the system.log from two failed sleep attempts (in quick succession) prior today:

Dec 8 11:21:12 --- last message repeated 1 time ---
Dec 8 11:21:12 Viz0r Shimo[277]: No write key
Dec 8 11:21:14 Viz0r com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Dec 8 11:21:33 Viz0r Spotlight[272]: assertion failed: 18G1012: libxpc.dylib + 90677 [7DEE2300-6D8E-3C00-9C63-E3E80D56B0C4]: 0x89
Dec 8 11:21:42 Viz0r Shimo[277]: No write key
Dec 8 11:22:00 Viz0r Shimo[277]: System is going into sleep mode -> disconnecting accounts, if any
Dec 8 11:22:02 Viz0r com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.501): Service "com.apple.xpc.launchd.unmanaged.loginwindow.88" tried to register for endpoint "com.apple.tsm.uiserver" already registered by owner: com.apple.SystemUIServer.agent
Dec 8 11:22:12 --- last message repeated 1 time ---
Dec 8 11:22:12 Viz0r Shimo[277]: No write key
Dec 8 11:22:27 Viz0r com.apple.xpc.launchd[1] (com.apple.sandboxd[449]): Service exited due to SIGALRM | sent by kernel_task[0]
Dec 8 11:22:28 Viz0r Shimo[277]: Shimo detected a change of network configurations.
Dec 8 11:22:30 Viz0r Shimo[277]: System is waking from sleep -> reconnecting sleeping accounts in 2.000000 seconds
Dec 8 11:22:31 Viz0r timed[77]: settimeofday({0x5deccee7,0xd26b3}) == 0
Dec 8 11:22:31 Viz0r Gamma Control[297]: *** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray
Dec 8 11:22:32 Viz0r com.apple.xpc.launchd[1] (com.apple.preference.displays.MirrorDisplays): Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
Dec 8 11:22:35 Viz0r xpcproxy[638]: libcoreservices: _dirhelper_userdir: 529: bootstrap_look_up returned (ipc/send) invalid destination port
Dec 8 11:22:46 Viz0r Shimo[277]: No write key
Dec 8 11:22:47 Viz0r diagnosticd[644]: Posting empty stream filter
Dec 8 11:22:47 Viz0r diagnosticd[644]: no EOS device present
Dec 8 11:22:47 Viz0r diagnosticd[644]: allowing Console (642) access to stream due to admin status
Dec 8 11:22:47 Viz0r diagnosticd[644]: Posting stream filter: "{
global = 30064771083;
}"
Dec 8 11:22:47 Viz0r diagnosticd[644]: System mode client started - Console (642) - mode: 0xb, filter: "<empty>"
Dec 8 11:22:50 Viz0r com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Loading kexts via Library/ Extensions can cause the behavior you described, sound doesn't work at first and then after a couple reboots it does. I think that's related to the kextcache not being rebuilt properly. As to sleep issues are you using Shimo VPN? Lots of messages relating to Shimo...Shimo[277]: System is waking from sleep.

Try disconnecting and then checking sleep. If needed try reinstalling it.
 
Joined
Sep 25, 2019
Messages
27
Motherboard
Intel
CPU
i5-7300 U
Graphics
HD 620
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Hey guys, finally im writing from the Nucintosh :)
Now I try to fix some more problems with it, on me the sleep/wake with PowerNap / wo power nap doesn't work.

Can someone give me a hint?

EDIT:

Hardware:
Intel NUC7i5BNHE i5-7300 U
16GB DDR4 2600 MHz
Samsung 960 Pro Plus 250 (MacOS)
Samsung 870 EVO 250 (DATA)

Clover: 5100

Followed this guide from Rehebman here.

This is the error I get after force-reboot:

Code:
Sleep Wake failure in EFI

Failure code:: 0xffffffff 0x0000001f

Please IGNORE the below stackshot

================================================================
Date/Time:        2019-12-08 15:49:21 +0100
OS Version:       ??? ??? (Build ???)
Architecture:     x86_64
Report Version:   29

Data Source:      Stackshots
Shared Cache:     0x585000 9F085A79-58EA-3122-B544-263FF463EA33

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

Boot args:        dart=0 -cdfon lilucpu=9 -hbfx-dump-nvram

Time Awake Since Boot: 12s



Process:          swd [295]
Architecture:     x86_64
Footprint:        360 KB
Start time:       2019-12-08 15:49:21 +0100
End time:         2019-12-08 15:49:21 +0100
Num samples:      1 (1)

  Thread 0x7b6    1 sample (1)    priority 4 (base 4)
  <thread QoS background (requested background), thread darwinbg, process darwinbg, IO tier 2>
  1  start + 1 (libdyld.dylib + 70373) [0x7fff633e02e5] 1
    1  ??? [0x1004dd454] 1
      1  ??? [0x1004dd1dd] 1
        1  __stack_snapshot_with_config + 10 (libsystem_kernel.dylib + 135938) [0x7fff63549302] 1
         *1  ??? [0xffffff80002e1206] 1
           *1  ??? [0xffffff800099a1aa] 1
             *1  ??? [0xffffff80008b3211] 1
               *1  ??? [0xffffff8000304387] (running) 1

  Binary Images:
        0x7fff633cf000 -     0x7fff63404fff  libdyld.dylib (733.6)              <2FA4B359-624B-337C-9207-CDCF841C2E52>  /usr/lib/system/libdyld.dylib
        0x7fff63528000 -     0x7fff63554fff  libsystem_kernel.dylib (6153.41.3) <18918E9C-45BC-3D5A-A6B6-3DBC60EEE2E1>  /usr/lib/system/libsystem_kernel.dylib

My Config.plist:
XML:
<?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>DSDT</key>
        <dict>
            <key>DropOEM_DSM</key>
            <false/>
            <key>Fixes</key>
            <dict>
                <key>AddPNLF</key>
                <true/>
                <key>DeleteUnused</key>
                <false/>
                <key>FixHDA</key>
                <true/>
                <key>FixIntelGfx</key>
                <true/>
                <key>FixS3D</key>
                <true/>
                <key>FixShutdown</key>
                <true/>
                <key>FixUSB</key>
                <true/>
            </dict>
            <key>Patches</key>
            <array>
                <dict>
                    <key>Comment</key>
                    <string>change _OSI to XOSI</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    X09TSQ==
                    </data>
                    <key>Replace</key>
                    <data>
                    WE9TSQ==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change H_EC to EC</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    SF9FQw==
                    </data>
                    <key>Replace</key>
                    <data>
                    RUNfXw==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change GFX0 to IGPU</string>
                    <key>Disabled</key>
                    <true/>
                    <key>Find</key>
                    <data>
                    R0ZYMA==
                    </data>
                    <key>Replace</key>
                    <data>
                    SUdQVQ==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change HECI to IMEI</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    SEVDSQ==
                    </data>
                    <key>Replace</key>
                    <data>
                    SU1FSQ==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change SAT0 to SATA</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    U0FUMA==
                    </data>
                    <key>Replace</key>
                    <data>
                    U0FUQQ==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change HDAS to HDEF</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    SERBUw==
                    </data>
                    <key>Replace</key>
                    <data>
                    SERFRg==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change _DSM to XDSM</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    X0RTTQ==
                    </data>
                    <key>Replace</key>
                    <data>
                    WERTTQ==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change XDCI._STA to XDCI.XSTA</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    X1NUQQ==
                    </data>
                    <key>Replace</key>
                    <data>
                    WFNUQQ==
                    </data>
                    <key>TgtBridge</key>
                    <data>
                    WERDSQ==
                    </data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change Method(_PTS,1,N) to ZPTS</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    X1BUUwE=
                    </data>
                    <key>Replace</key>
                    <data>
                    WlBUUwE=
                    </data>
                </dict>
            </array>
            <key>SlpSmiAtWake</key>
            <true/>
            <key>SuspendOverride</key>
            <true/>
        </dict>
        <key>DisabledAML</key>
        <array>
            <string>SSDT-DDA.aml</string>
        </array>
        <key>HaltEnabler</key>
        <false/>
        <key>SSDT</key>
        <dict>
            <key>EnableC2</key>
            <false/>
            <key>EnableC4</key>
            <false/>
            <key>EnableC6</key>
            <false/>
            <key>EnableC7</key>
            <false/>
            <key>Generate</key>
            <dict>
                <key>APLF</key>
                <false/>
                <key>APSN</key>
                <false/>
                <key>CStates</key>
                <false/>
                <key>PStates</key>
                <false/>
                <key>PluginType</key>
                <true/>
            </dict>
            <key>UnderVoltStep</key>
            <string>0</string>
            <key>UseSystemIO</key>
            <false/>
        </dict>
    </dict>
    <key>Boot</key>
    <dict>
        <key>Arguments</key>
        <string>dart=0 -cdfon lilucpu=9 -hbfx-dump-nvram</string>
        <key>DefaultVolume</key>
        <string>LastBootedVolume</string>
        <key>HibernationFixup</key>
        <true/>
        <key>NeverHibernate</key>
        <false/>
        <key>Secure</key>
        <false/>
        <key>Timeout</key>
        <integer>5</integer>
        <key>XMPDetection</key>
        <string>Yes</string>
    </dict>
    <key>CPU</key>
    <dict>
        <key>#FrequencyMHz</key>
        <integer>1800</integer>
        <key>HWPEnable</key>
        <false/>
        <key>UseARTFrequency</key>
        <false/>
    </dict>
    <key>Devices</key>
    <dict>
        <key>Audio</key>
        <dict>
            <key>AFGLowPowerState</key>
            <true/>
            <key>Inject</key>
            <string>Detect</string>
            <key>ResetHDA</key>
            <true/>
        </dict>
        <key>FakeID</key>
        <dict>
            <key>#IntelGFX</key>
            <string>0x19168086</string>
        </dict>
        <key>Properties</key>
        <dict>
            <key>PciRoot(0)/Pci(0x02,0)</key>
            <dict>
                <key>framebuffer-patch-enable</key>
                <integer>0</integer>
            </dict>
            <key>PciRoot(0)/Pci(0x1f,3)</key>
            <dict>
                <key>#device-id</key>
                <data>
                dJ0AAA==
                </data>
            </dict>
        </dict>
        <key>USB</key>
        <dict>
            <key>AddClockID</key>
            <false/>
            <key>FixOwnership</key>
            <false/>
            <key>Inject</key>
            <false/>
        </dict>
        <key>UseIntelHDMI</key>
        <false/>
    </dict>
    <key>GUI</key>
    <dict>
        <key>#ScreenResolution</key>
        <string>1920x1080</string>
        <key>Language</key>
        <string>de:0</string>
        <key>Mouse</key>
        <dict>
            <key>DoubleClick</key>
            <integer>800</integer>
            <key>Enabled</key>
            <false/>
            <key>Speed</key>
            <integer>8</integer>
        </dict>
        <key>Scan</key>
        <true/>
        <key>ScreenResolution</key>
        <string>1920x1080</string>
    </dict>
    <key>Graphics</key>
    <dict>
        <key>#ig-platform-id</key>
        <string>0x19160000</string>
        <key>Inject</key>
        <dict>
            <key>Intel</key>
            <true/>
        </dict>
        <key>ig-platform-id</key>
        <string>0x59160000</string>
    </dict>
    <key>KernelAndKextPatches</key>
    <dict>
        <key>#FakeCPUID</key>
        <string>0x0506e3</string>
        <key>#Kaby Lake-Comment</key>
        <string>Kaby Lake CPU supportable by using CPUID from Skylake</string>
        <key>AppleRTC</key>
        <true/>
        <key>KernelPm</key>
        <true/>
        <key>KernelToPatch</key>
        <array>
            <dict>
                <key>Comment</key>
                <string>MSR 0xE2 _xcpm_idle instant reboot(c) Pike R. Alpha</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                ILniAAAADzA=
                </data>
                <key>Replace</key>
                <data>
                ILniAAAAkJA=
                </data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Disable panic kext logging on 10.13 release kernel (credit vit9696)</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                igKEwHRE
                </data>
                <key>MatchOS</key>
                <string>10.13.x</string>
                <key>Replace</key>
                <data>
                igKEwOtE
                </data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Disable panic kext logging on 10.14 release kernel (credit vit9696)</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                igKEwHRC
                </data>
                <key>MatchOS</key>
                <string>10.14.x</string>
                <key>Replace</key>
                <data>
                igKEwOtC
                </data>
            </dict>
        </array>
        <key>KextsToPatch</key>
        <array>
            <dict>
                <key>Comment</key>
                <string>Enable TRIM for SSD</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                AEFQUExFIFNTRAA=
                </data>
                <key>InfoPlistPatch</key>
                <false/>
                <key>Name</key>
                <string>com.apple.iokit.IOAHCIBlockStorage</string>
                <key>Replace</key>
                <data>
                AAAAAAAAAAAAAAA=
                </data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>PLRP 10.15 P1</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                g/sPDw==
                </data>
                <key>InfoPlistPatch</key>
                <false/>
                <key>Name</key>
                <string>com.apple.iokit.IOUSBHostFamily</string>
                <key>Replace</key>
                <data>
                g/s/Dw==
                </data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>PLRP 10.15 P2</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                g/kPDw==
                </data>
                <key>InfoPlistPatch</key>
                <false/>
                <key>Name</key>
                <string>com.apple.driver.usb.AppleUSBXHCI</string>
                <key>Replace</key>
                <data>
                g/k/Dw==
                </data>
            </dict>
        </array>
    </dict>
    <key>RtVariables</key>
    <dict>
        <key>BooterConfig</key>
        <string>0x28</string>
        <key>CsrActiveConfig</key>
        <string>3</string>
        <key>ROM</key>
        <data>
        XwKsVNKP
        </data>
    </dict>
    <key>SMBIOS</key>
    <dict>
        <key>BiosReleaseDate</key>
        <string>11/08/2019</string>
        <key>BiosVendor</key>
        <string>Apple Inc.</string>
        <key>BiosVersion</key>
        <string>IMP11.88Z.F000.B00.1911080422</string>
        <key>Board-ID</key>
        <string>Mac-7BA5B2D9E42DDD94</string>
        <key>BoardManufacturer</key>
        <string>Apple Inc.</string>
        <key>BoardSerialNumber</key>
        <string>C02916310CDJG36A8</string>
        <key>BoardType</key>
        <integer>10</integer>
        <key>BoardVersion</key>
        <string>1.0</string>
        <key>ChassisAssetTag</key>
        <string>iMacPro-Aluminum</string>
        <key>ChassisManufacturer</key>
        <string>Apple Inc.</string>
        <key>ChassisType</key>
        <string>0x09</string>
        <key>EfiVersion</key>
        <string>1037.60.55.0.0</string>
        <key>Family</key>
        <string>iMac Pro</string>
        <key>FirmwareFeatures</key>
        <string>0xFD8FF53F</string>
        <key>FirmwareFeaturesMask</key>
        <string>0xFF9FFF3F</string>
        <key>LocationInChassis</key>
        <string>Part Component</string>
        <key>Manufacturer</key>
        <string>Apple Inc.</string>
        <key>Mobile</key>
        <false/>
        <key>PlatformFeature</key>
        <string>0x00</string>
        <key>ProductName</key>
        <string>iMacPro1,1</string>
        <key>SerialNumber</key>
        <string>C02YLGYCHX87</string>
        <key>SmUUID</key>
        <string>E464CDE4-522F-4D62-94C7-7FCAC271C304</string>
        <key>Version</key>
        <string>1.1</string>
    </dict>
    <key>SystemParameters</key>
    <dict>
        <key>CustomUUID</key>
        <string>C45F5E30-51CD-414F-9B28-80777E4E3CEA</string>
        <key>InjectKexts</key>
        <string>Detect</string>
        <key>InjectSystemID</key>
        <true/>
    </dict>
</dict>
</plist>

My CLOVER Folder:

Bildschirmfoto 2019-12-08 um 15.52.05.png


Kind regards,
 
Last edited:

Leesureone

Moderator
Joined
Feb 21, 2010
Messages
3,505
Motherboard
Asus Z690 Rog Strix G Gaming
CPU
i9-12900K
Graphics
RX 6900 XT
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. iOS
Hey guys, finally im writing from the Nucintosh :)
Now I try to fix some more problems with it, on me the sleep/wake with PowerNap / wo power nap doesn't work.

Can someone give me a hint?

Kind regards,
Please update your profile to show your specific hardware. Also what did you load, Catalina or Mojave and what method did you use (the Rehabman guide or did you replace the EFI folder with one of the other users)?
Sleep wake problems are usually related to the USB port limit patch, you may need to try and create your own if the one that should be in your EFI/Clover/ACPI/patched folder isn't working.
 
Joined
Sep 25, 2019
Messages
27
Motherboard
Intel
CPU
i5-7300 U
Graphics
HD 620
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Please update your profile to show your specific hardware. Also what did you load, Catalina or Mojave and what method did you use (the Rehabman guide or did you replace the EFI folder with one of the other users)?
Sleep wake problems are usually related to the USB port limit patch, you may need to try and create your own if the one that should be in your EFI/Clover/ACPI/patched folder isn't working.
I just update my post with the Information, please have a look again.
 

Leesureone

Moderator
Joined
Feb 21, 2010
Messages
3,505
Motherboard
Asus Z690 Rog Strix G Gaming
CPU
i9-12900K
Graphics
RX 6900 XT
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. iOS
I just update my post with the Information, please have a look again.
You still need to update your profile, what is in your EFI/Clover/ACPI/Patched folder?
 
Joined
Sep 25, 2019
Messages
27
Motherboard
Intel
CPU
i5-7300 U
Graphics
HD 620
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
You still need to update your profile, what is in your EFI/Clover/ACPI/Patched folder?
I Put the ACPI patches from Rehabman for USB and the one which get installed after "make install_nuc7dc"

Bildschirmfoto 2019-12-08 um 16.05.58.png


EDIT:
Attached you can find my EFI with SMBios (I Use iMac Pro 1,1).

Regards,
 

Attachments

  • EFI.zip
    17.2 MB · Views: 50

Leesureone

Moderator
Joined
Feb 21, 2010
Messages
3,505
Motherboard
Asus Z690 Rog Strix G Gaming
CPU
i9-12900K
Graphics
RX 6900 XT
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. iOS
Okay, your profile doesn't list the kind of NUC you have but I know from before it’s an NUC7, probably should make that change at some point.

Meanwhile the SSDT-USB-NUC-7.dsl extension is wrong and will not be used to patch your usb ports. The extension should be .aml so open it with MACiASL again and compile it and then save it as a machine language extension. That should give you the file you need to replace the .dsl file and hopefully that will solve your Sleep Wake issues.

If that doesn’t finish the job then please do as @Feartech requests for more help.
 
Joined
Apr 26, 2014
Messages
19
Motherboard
Gigabyte GA-Z87N-WIFI
CPU
i7-4770K
Graphics
HD 4600
Mac
  1. Mac mini
  2. Mac Pro
Mobile Phone
  1. iOS
Loading kexts via Library/ Extensions can cause the behavior you described, sound doesn't work at first and then after a couple reboots it does. I think that's related to the kextcache not being rebuilt properly. As to sleep issues are you using Shimo VPN? Lots of messages relating to Shimo...Shimo[277]: System is waking from sleep.

Try disconnecting and then checking sleep. If needed try reinstalling it.

Yes, I'm using Shimo. I'm using it actually on all my Macs and Hackintoshes. Never had problems with it preventing sleep before. I also never have any VPN connection still alive while I'm trying to get my NUC to sleep. Hmmm.

I have it closed and removed from my login items for now for further testing. My first test sleep worked, but that doesn't say too much, because I already rebooted shortly before and in my experience sleep usually works properly for a while after a fresh reboot.
 
Top