• Become a Premium Member for $25/year with no ads to improve your community experience. Upgrade to Pro Account for faster response and no wait times!

Z590i Instant dark wake due to RP21 (PCI bridge?)

buzuddha

New member
Joined
Dec 28, 2021
Messages
6
Motherboard
Z590i Vision D
CPU
i7-11700K
Graphics
AMD RX580
OS X/macOS
12.x
Bootloader
  1. OpenCore (UEFI)
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Hi All,

Nearly complete hack here. Just need to fix sleep. EFI is a fork of SchmockLord's - all credit due for USB port map and general set up. Re-dumped DSDT and generated my own EC/PLUG/HPET/USBX/RTCAWAC just in case and applied relevant patches.

Initially had instant wake:

Code:
Wake from Normal Sleep [CDNVA] : due to XDCI CNVW USBW RP21/UserActivity Assertion Using AC (Charge:0%)

Ran the prep for fixing sleep from Dortania.
Code:
sudo pmset autopoweroff 0
sudo pmset powernap 0
sudo pmset standby 0
sudo pmset proximitywake 0
sudo pmset tcpkeepalive 0

I applied the GPWR.aml and patch. This all fixed 3 items waking things up, but still have dark wake (screen off but fans on).

Code:
DarkWake from Normal Sleep [CDN] : due to RP21/ Using AC (Charge:0%) 30 secs

Added the bootarg "darkwake=0" but that just gives full wake with screen and all:

Code:
Wake from Normal Sleep [CDNVA] : due to RP21/UserActivity Assertion Using AC (Charge:0%)

So not that.

RP21 is some kind of PCI bridge for the motherboard 500 chip I guess
IOService:/AppleACPIPlatformExpert/PC00@0/AppleACPIPCI/RP21@1B,4
PciRoot(0x0)/Pci(0x1B,0x4)
8086:43C4
Code:
PCI bridge [0604]: Intel Corporation Device [8086:43c4] (rev 11)
    Kernel driver in use: pcieport

OS: 12.7.2 (21G1974)
SMBIOS: MacPro7,1
MoBo: Z590i Vision D
CPU: 11700K
GPU: RX580
WiFi/BT: BCM943602CDP (native)

Dunno how to fix this. Would be very grateful for any help here. Attached EFI.zip and screenshots of RP21. Also yes I am aware there are some Sonoma specific fixes for networking stuff in my EFI, but don't use these and they don't seem to hurt anything in Monterey.

Thanks!!
 

Attachments

  • Screen Shot 2024-01-12 at 5.26.44 PM.png
    Screen Shot 2024-01-12 at 5.26.44 PM.png
    1.3 MB · Views: 6
  • Screen Shot 2024-01-12 at 5.28.50 PM.png
    Screen Shot 2024-01-12 at 5.28.50 PM.png
    869.3 KB · Views: 6
  • EFI.zip
    EFI.zip
    12.8 MB · Views: 2
Last edited:
Ok according to chatGPT, I would add the following to device properties:

Code:
<key>DeviceProperties</key>
<dict>
    <key>Add</key>
    <dict>
        <key>PciRoot(0x0)/Pci(0x1B,0x4)</key>
        <dict>
            <key>wake</key>
            <data>
                <!-- Set to Data value indicating false -->
            </data>
        </dict>
    </dict>
</dict>

Anyone know where I could find what value to use to set wake to false here?
 
Hi All,

Nearly complete hack here. Just need to fix sleep. EFI is a fork of SchmockLord's - all credit due for USB port map and general set up. Re-dumped DSDT and generated my own EC/PLUG/HPET/USBX/RTCAWAC just in case and applied relevant patches.

Initially had instant wake:

Code:
Wake from Normal Sleep [CDNVA] : due to XDCI CNVW USBW RP21/UserActivity Assertion Using AC (Charge:0%)

Ran the prep for fixing sleep from Dortania.
Code:
sudo pmset autopoweroff 0
sudo pmset powernap 0
sudo pmset standby 0
sudo pmset proximitywake 0
sudo pmset tcpkeepalive 0

I applied the GPWR.aml and patch. This all fixed 3 items waking things up, but still have dark wake (screen off but fans on).

Code:
DarkWake from Normal Sleep [CDN] : due to RP21/ Using AC (Charge:0%) 30 secs

Added the bootarg "darkwake=0" but that just gives full wake with screen and all:

Code:
Wake from Normal Sleep [CDNVA] : due to RP21/UserActivity Assertion Using AC (Charge:0%)

So not that.

RP21 is some kind of PCI bridge for the motherboard 500 chip I guess
IOService:/AppleACPIPlatformExpert/PC00@0/AppleACPIPCI/RP21@1B,4
PciRoot(0x0)/Pci(0x1B,0x4)
8086:43C4
Code:
PCI bridge [0604]: Intel Corporation Device [8086:43c4] (rev 11)
    Kernel driver in use: pcieport

OS: 12.7.2 (21G1974)
SMBIOS: MacPro7,1
MoBo: Z590i Vision D
CPU: 11700K
GPU: RX580
WiFi/BT: BCM943602CDP (native)

Dunno how to fix this. Would be very grateful for any help here. Attached EFI.zip and screenshots of RP21. Also yes I am aware there are some Sonoma specific fixes for networking stuff in my EFI, but don't use these and they don't seem to hurt anything in Monterey.

Thanks!!
Your EFI is not as per the guide. Attach BIOS Settings+IOReg.
 

Forum statistics

Threads
1,936
Messages
18,095
Members
27,840
Latest member
natsukiro