Hello, I have Catalina installed in a Gigabyte Z370 Aorus Ultra Gaming, and on some days the computer suddenly wakes up in the middle of the night. Here is a log of what happened last time:
pmset -g log | grep -e "Sleep.*due to" -e "Wake.*due to"
2021-02-15 01:01:58 -0300 Wake Wake from Normal Sleep [CDNVA] : due to RTC XDCI/UserActivity Assertion Using AC (Charge:0%) 1876 secs
2021-02-15 01:33:14 -0300 Sleep Entering Sleep state due to 'Software Sleep pid=141': Using AC (Charge:0%) 112 secs
2021-02-15 01:35:06 -0300 Wake Wake from Normal Sleep [CDNVA] : due to RTC XDCI/UserActivity Assertion Using AC (Charge:0%) 27 secs
2021-02-15 01:35:33 -0300 Sleep Entering DarkWake state due to 'Software Sleep pid=141': Using AC (Charge:0%)
2021-02-15 01:35:51 -0300 Sleep Entering Sleep state due to 'Software Sleep pid=141': Using AC (Charge:0%) 500 secs
2021-02-15 01:44:11 -0300 Wake Wake from Normal Sleep [CDNVA] : due to RTC XDCI/UserActivity Assertion Using AC (Charge:0%) 14 secs
2021-02-15 01:44:25 -0300 Sleep Entering DarkWake state due to 'Software Sleep pid=141': Using AC (Charge:0%)
2021-02-15 01:44:56 -0300 Sleep Entering Sleep state due to 'Software Sleep pid=141': Using AC (Charge:0%) 2384 secs
2021-02-15 02:24:40 -0300 Wake Wake from Normal Sleep [CDNVA] : due to RTC XDCI/UserActivity Assertion Using AC (Charge:0%) 71 secs
2021-02-15 02:25:51 -0300 Sleep Entering Sleep state due to 'Software Sleep pid=141': Using AC (Charge:0%) 5368 secs
2021-02-15 03:55:19 -0300 Wake Wake from Normal Sleep [CDNVA] : due to RTC XDCI/UserActivity Assertion Using AC (Charge:0%)
I would guess that XDCI/UserActivity Assertion Using AC is related to USB.
Here's a link (image) to my mapped USB's in Hackintool:
https://ibb.co/Q9g2K7v
I have tried, on noticing the issue, to unplug all USB's, and I even turned off Bluetooth on the Mac, since it is connected from a FENVI Wi-fi card to the internal frontal USB connector on the mobo, though it kept happening. One day, I removed a USB webcam that I had connected, and the problem stopped, but this time even after removing everything it kept waking up.
My Z370 BIOS settings:
1. M.I.T. → Advanced Memory Settings Extreme Memory Profile(X.M.P.) : Profile1
2. BIOS → Fast Boot : Disabled
3. BIOS → LAN PXE Boot Option ROM : Disabled
4. BIOS → Storage Boot Option Control : UEFI
5. Peripherals → Trusted Computing → Security Device Support : Disable
6. Peripherals → Network Stack Configuration → Network Stack : Disabled
7. Peripherals → USB Configuration → Legacy USB Support : Auto
8. Peripherals → USB Configuration → XHCI Hand-off : Enabled
9. Chipset → Vt-d : Enabled
10. Chipset → Wake on LAN Enable : Disabled
11. Chipset → IOAPIC 24-119 Entries : Enabled
In my Mac, the following are disabled:
Energy Saver -> Put hard disks to sleep when possible
Energy Saver -> Wake for network access
My EFI (Clover) folder can be found here:
https://ufile.io/hwbzmxvj
Any ideas on what is happening, and how to fix it?
EDIT:
I just noticed that in Bluetooth -> Advanced -> Allow Bluetooth devices to wake this computer is activated. I will deactivate it and update here if it keeps happening.