Contribute
Register

[Solved] Z490 Auros Ultra Wake from Sleep

Joined
Dec 21, 2013
Messages
151
Motherboard
Gigabyte Z490 Auros Ultra
CPU
i9-10850K
Graphics
RX 6900 XT
Mac
  1. iMac
  2. MacBook Air
  3. MacBook Pro
Mobile Phone
  1. iOS
Hi,
I have switched from a Z490M Gaming X to a Z490 Auros Ultra board.

For some reason my machine will no longer sleep and I get an immediate wake from sleep which I believe may be attributed to USB however my USB map seems to be fine?

Code:
% log show --last boot --style syslog | fgrep "Wake reason"
2024-01-07 10:55:15.765843+0000  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: XDCI PEG2 PEG3
2024-01-07 10:55:15.765847+0000  localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: XDCI PEG2 PEG3

Any help appreciated.

Below is my power settings

Code:
% pmset -g
System-wide power settings:
 SleepDisabled        0
Currently in use:
 standby              0
 Sleep On Power Button 1
 womp                 0
 hibernatefile        /var/vm/sleepimage
 proximitywake        0
 gpuswitch            2
 powernap             0
 networkoversleep     0
 disksleep            10
 standbydelayhigh     86400
 sleep                1 (sleep prevented by sharingd)
 hibernatemode        0
 ttyskeepawake        1
 displaysleep         10
 tcpkeepalive         0
 highstandbythreshold 50
 standbydelaylow      86400

Below is my USB and ports that were originally detected when using USBInjectAll.kext in Hackintool with the XHCIPortLimit quirk. For some reason the ports marked "?" did not show up / was not injected.

Screenshot 2024-01-07 at 11.10.20.png




Screenshot 2024-01-07 at 11.04.22.png


Screenshot 2024-01-07 at 11.04.10.png


I have trimmed these down below the 15 port limit as below and use the attached USBPorts.kext generated by Hackintool

Screenshot 2024-01-07 at 11.09.35.png



Attached is my config.plist (Serial, ROM, etc removed) and below are the other kexts I load

Code:
AirportItlwm.kext
AppleALC.kext
AppleIGC.kext
BlueToolFixup.kext
FeatureUnlock.kext
IntelBTPatcher.kext
IntelBluetoothFirmware.kext
Lilu.kext
NVMeFix.kext
RadeonSensor.kext
RestrictEvents.kext
SMCProcessor.kext
SMCRadeonGPU.kext
SMCSuperIO.kext
USBPorts.kext
VirtualSMC.kext
WhateverGreen.kext

..and these are the associated ACPI patches

Code:
SSDT-AWAC.aml
SSDT-EC-USBX-DESKTOP.aml
SSDT-PLUG-DRTNIA.aml
 

Attachments

  • USBPorts.kext.zip
    1.3 KB · Views: 2
  • config.plist
    37.4 KB · Views: 9
Last edited:
Attached is a revised kext after reviewing the output of USBToolBox in Windows as well as the included Info.plist inside the kext. Unfortunately I still get the instant wake from sleep...

Screenshot 2024-01-07 152940.png


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>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleGetInfoString</key>
    <string>1.0 Copyright © 2018-2020 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>iMac20,2-XHC</key>
        <dict>
            <key>CFBundleIdentifier</key>
            <string>com.apple.driver.AppleUSBMergeNub</string>
            <key>IOClass</key>
            <string>AppleUSBMergeNub</string>
            <key>IONameMatch</key>
            <string>XHC</string>
            <key>IOPCIPrimaryMatch</key>
            <string>0x06ed8086</string>
            <key>IOProbeScore</key>
            <integer>5000</integer>
            <key>IOProviderClass</key>
            <string>AppleIntelCNLUSBXHCI</string>
            <key>IOProviderMergeProperties</key>
            <dict>
                <key>kUSBSleepPortCurrentLimit</key>
                <integer>2100</integer>
                <key>kUSBSleepPowerSupply</key>
                <integer>5100</integer>
                <key>kUSBWakePortCurrentLimit</key>
                <integer>2100</integer>
                <key>kUSBWakePowerSupply</key>
                <integer>5100</integer>
                <key>port-count</key>
                <data>
                GQAAAA==
                </data>
                <key>ports</key>
                <dict>
                    <key>HS01</key>
                    <dict>
                        <key>Comment</key>
                        <string>External USB2 Type C</string>
                        <key>UsbConnector</key>
                        <integer>10</integer>
                        <key>name</key>
                        <string>HS01</string>
                        <key>port</key>
                        <data>
                        AQAAAA==
                        </data>
                    </dict>
                    <key>HS02</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Right USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS02</string>
                        <key>port</key>
                        <data>
                        AgAAAA==
                        </data>
                    </dict>
                    <key>HS03</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Bottom USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS03</string>
                        <key>port</key>
                        <data>
                        AwAAAA==
                        </data>
                    </dict>
                    <key>HS04</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Top USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS04</string>
                        <key>port</key>
                        <data>
                        BAAAAA==
                        </data>
                    </dict>
                    <key>HS05</key>
                    <dict>
                        <key>Comment</key>
                        <string>Above USB-C - USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS05</string>
                        <key>port</key>
                        <data>
                        BQAAAA==
                        </data>
                    </dict>
                    <key>HS06</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Left USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS06</string>
                        <key>port</key>
                        <data>
                        CQAAAA==
                        </data>
                    </dict>
                    <key>HS07</key>
                    <dict>
                        <key>Comment</key>
                        <string>Intel ITE Device</string>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>name</key>
                        <string>HS07</string>
                        <key>port</key>
                        <data>
                        DAAAAA==
                        </data>
                    </dict>
                    <key>HS08</key>
                    <dict>
                        <key>Comment</key>
                        <string>Internal USB2 Right</string>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>name</key>
                        <string>HS08</string>
                        <key>port</key>
                        <data>
                        DQAAAA==
                        </data>
                    </dict>
                    <key>HS09</key>
                    <dict>
                        <key>Comment</key>
                        <string>Intel Bluetooth</string>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>name</key>
                        <string>HS09</string>
                        <key>port</key>
                        <data>
                        DgAAAA==
                        </data>
                    </dict>
                    <key>SS01</key>
                    <dict>
                        <key>Comment</key>
                        <string>External USB3 Type C</string>
                        <key>UsbConnector</key>
                        <integer>10</integer>
                        <key>name</key>
                        <string>SS01</string>
                        <key>port</key>
                        <data>
                        EQAAAA==
                        </data>
                    </dict>
                    <key>SS02</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Right USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS02</string>
                        <key>port</key>
                        <data>
                        EgAAAA==
                        </data>
                    </dict>
                    <key>SS03</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Bottom USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS03</string>
                        <key>port</key>
                        <data>
                        EwAAAA==
                        </data>
                    </dict>
                    <key>SS04</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Top USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS04</string>
                        <key>port</key>
                        <data>
                        FAAAAA==
                        </data>
                    </dict>
                    <key>SS05</key>
                    <dict>
                        <key>Comment</key>
                        <string>Above USB-C - USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS05</string>
                        <key>port</key>
                        <data>
                            FQAAAA==
                        </data>
                    </dict>
                    <key>SS06</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Left USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS06</string>
                        <key>port</key>
                        <data>
                        GQAAAA==
                        </data>
                    </dict>
                </dict>
            </dict>
            <key>model</key>
            <string>iMac20,2</string>
        </dict>
    </dict>
    <key>OSBundleRequired</key>
    <string>Root</string>
</dict>
</plist>
 

Attachments

  • USBPorts.kext.zip
    2.3 KB · Views: 2
I have managed to track this down to my Corsair H115i USB connected to HS08 - Internal USB2 Right in the plist in my previous post.

This is odd as having the internal USB header enabled with the H115i was not causing an issue on my GA-Z490M Gaming X.

It also seem that the new version of Hacktintool uses sets parameters for kUSBSleepPortCurrentLimit, [ICODE]kUSBSleepPowerSupply, kUSBWakePortCurrentLimit and kUSBWakePowerSupply. It also uses IONameMatch, IOPCIPrimaryMatch and IOProbeScore where the old version used IOPathMatch.

Below is the old Info.plist from my GA-Z490M-Gaming X USB map.

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>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleGetInfoString</key>
    <string>v1.0</string>
    <key>CFBundleIdentifier</key>
    <string>com.corpnewt.USBMap</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>USBMap</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>iMac20,2-XHC</key>
        <dict>
            <key>CFBundleIdentifier</key>
            <string>com.apple.driver.AppleUSBMergeNub</string>
            <key>IOClass</key>
            <string>AppleUSBMergeNub</string>
            <key>IOPathMatch</key>
            <string>IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC@14/XHC@14000000</string>
            <key>IOProviderClass</key>
            <string>AppleUSBXHCIPCI</string>
            <key>IOProviderMergeProperties</key>
            <dict>
                <key>kUSBMuxEnabled</key>
                <true/>
                <key>port-count</key>
                <data>
                GAAAAA==
                </data>
                <key>ports</key>
                <dict>
                    <key>HS01</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Top Middle USB2.x</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        AQAAAA==
                        </data>
                    </dict>
                    <key>HS02</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Middle Bottom (USB-C)</string>
                        <key>UsbConnector</key>
                        <integer>10</integer>
                        <key>port</key>
                        <data>
                        AgAAAA==
                        </data>
                    </dict>
                    <key>HS05</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Bottom Right USB2.x</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        BQAAAA==
                        </data>
                    </dict>
                    <key>HS06</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Top Right USB2.x</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        BgAAAA==
                        </data>
                    </dict>
                    <key>HS07</key>
                    <dict>
                        <key>Comment</key>
                        <string>Front Right USB2.x</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        BwAAAA==
                        </data>
                    </dict>
                    <key>HS08</key>
                    <dict>
                        <key>Comment</key>
                        <string>Front Left USB2.x</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        CAAAAA==
                        </data>
                    </dict>
                    <key>HS09</key>
                    <dict>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>port</key>
                        <data>
                        CQAAAA==
                        </data>
                    </dict>
                    <key>HS10</key>
                    <dict>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>port</key>
                        <data>
                        CgAAAA==
                        </data>
                    </dict>
                    <key>HS11</key>
                    <dict>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>port</key>
                        <data>
                        CwAAAA==
                        </data>
                    </dict>
                    <key>HS13</key>
                    <dict>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>port</key>
                        <data>
                        DQAAAA==
                        </data>
                    </dict>
                    <key>SS01</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Middle Top</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        EQAAAA==
                        </data>
                    </dict>
                    <key>SS05</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Bottom Right</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        FQAAAA==
                        </data>
                    </dict>
                    <key>SS06</key>
                    <dict>
                        <key>Comment</key>
                        <string>Back Top Right</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        FgAAAA==
                        </data>
                    </dict>
                    <key>SS07</key>
                    <dict>
                        <key>Comment</key>
                        <string>Front USB Right</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        FwAAAA==
                        </data>
                    </dict>
                    <key>SS08</key>
                    <dict>
                        <key>Comment</key>
                        <string>Front USB Port Left</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>port</key>
                        <data>
                        GAAAAA==
                        </data>
                    </dict>
                </dict>
            </dict>
            <key>model</key>
            <string>iMac20,2</string>
        </dict>
    </dict>
    <key>OSBundleRequired</key>
    <string>Root</string>
</dict>
</plist>
 
Managed fix this buy updating my Info.plist inside the new kext for my Z490 Auros Ultra to follow the format of my old kext for my GA-Z490MX-Gaming X with the new mappings for my Z490 Auros Ultra.

Be interesting to understand from someone else why this works.

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>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleGetInfoString</key>
    <string>v1.0</string>
    <key>CFBundleIdentifier</key>
    <string>com.corpnewt.USBMap</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>iMac20,2-XHC</key>
        <dict>
            <key>CFBundleIdentifier</key>
            <string>com.apple.driver.AppleUSBMergeNub</string>
            <key>IOClass</key>
            <string>AppleUSBMergeNub</string>
            <key>IOPathMatch</key>
            <string>IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC@14/XHC@14000000</string>
            <key>IOProviderClass</key>
            <string>AppleUSBXHCIPCI</string>
            <key>IOProviderMergeProperties</key>
            <dict>
                <key>kUSBMuxEnabled</key>
                <true/>
                <key>port-count</key>
                <data>
                GQAAAA==
                </data>
                <key>ports</key>
                <dict>
                    <key>HS01</key>
                    <dict>
                        <key>Comment</key>
                        <string>External USB2 Type C</string>
                        <key>UsbConnector</key>
                        <integer>10</integer>
                        <key>name</key>
                        <string>HS01</string>
                        <key>port</key>
                        <data>
                        AQAAAA==
                        </data>
                    </dict>
                    <key>HS02</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Right USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS02</string>
                        <key>port</key>
                        <data>
                        AgAAAA==
                        </data>
                    </dict>
                    <key>HS03</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Bottom USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS03</string>
                        <key>port</key>
                        <data>
                        AwAAAA==
                        </data>
                    </dict>
                    <key>HS04</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Top USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS04</string>
                        <key>port</key>
                        <data>
                        BAAAAA==
                        </data>
                    </dict>
                    <key>HS05</key>
                    <dict>
                        <key>Comment</key>
                        <string>Above USB-C - USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS05</string>
                        <key>port</key>
                        <data>
                        BQAAAA==
                        </data>
                    </dict>
                    <key>HS06</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Left USB2 Type A</string>
                        <key>UsbConnector</key>
                        <integer>0</integer>
                        <key>name</key>
                        <string>HS06</string>
                        <key>port</key>
                        <data>
                        CQAAAA==
                        </data>
                    </dict>
                    <key>HS07</key>
                    <dict>
                        <key>Comment</key>
                        <string>Intel ITE Device</string>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>name</key>
                        <string>HS07</string>
                        <key>port</key>
                        <data>
                        DAAAAA==
                        </data>
                    </dict>
                    <key>HS08</key>
                    <dict>
                        <key>Comment</key>
                        <string>Internal USB2 Right</string>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>name</key>
                        <string>HS08</string>
                        <key>port</key>
                        <data>
                        DQAAAA==
                        </data>
                    </dict>
                    <key>HS09</key>
                    <dict>
                        <key>Comment</key>
                        <string>Intel Bluetooth</string>
                        <key>UsbConnector</key>
                        <integer>255</integer>
                        <key>name</key>
                        <string>HS09</string>
                        <key>port</key>
                        <data>
                        DgAAAA==
                        </data>
                    </dict>
                    <key>SS01</key>
                    <dict>
                        <key>Comment</key>
                        <string>External USB3 Type C</string>
                        <key>UsbConnector</key>
                        <integer>10</integer>
                        <key>name</key>
                        <string>SS01</string>
                        <key>port</key>
                        <data>
                        EQAAAA==
                        </data>
                    </dict>
                    <key>SS02</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Right USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS02</string>
                        <key>port</key>
                        <data>
                        EgAAAA==
                        </data>
                    </dict>
                    <key>SS03</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Bottom USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS03</string>
                        <key>port</key>
                        <data>
                        EwAAAA==
                        </data>
                    </dict>
                    <key>SS04</key>
                    <dict>
                        <key>Comment</key>
                        <string>Below Ethernet - Top USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS04</string>
                        <key>port</key>
                        <data>
                        FAAAAA==
                        </data>
                    </dict>
                    <key>SS05</key>
                    <dict>
                        <key>Comment</key>
                        <string>Above USB-C - USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS05</string>
                        <key>port</key>
                        <data>
                            FQAAAA==
                        </data>
                    </dict>
                    <key>SS06</key>
                    <dict>
                        <key>Comment</key>
                        <string>External Left USB3 Type A</string>
                        <key>UsbConnector</key>
                        <integer>3</integer>
                        <key>name</key>
                        <string>SS06</string>
                        <key>port</key>
                        <data>
                        GQAAAA==
                        </data>
                    </dict>
                </dict>
            </dict>
            <key>model</key>
            <string>iMac20,2</string>
        </dict>
    </dict>
    <key>OSBundleRequired</key>
    <string>Root</string>
</dict>
</plist>
 
OK, if it was just an usb config thing.

In my case was the unique fix i found with SSDT-GPRW.aml, just wake from power button.

Yes, may someone can explain better to you.
 
Back
Top