Presumably HID tickle triggers a 'user is active' assertion like this one i obtained from the output of 'pmset -g assertions':
3300 seconds = 55 minutes which is the same number i have in Energy Saver Preferences for 'Turn display off after...'
So with darkwake=1 or darkwake=2 the machine probably stays awake for a minimum length of time related to that setting, rather than a minimum length of time from somewhere else (or going back to sleep ASAP after maintenance activities). The default in that source code is no tickle, but Apple firmware may be providing (possibly various) arguments at boot deterministically.
Default powernap features should work with the default flags (no boot argument) waking for a short time once an hour. Without the tickle setting - if the machine isn't waking by USB properly it might be ACPI/DSDT related. 'pmset -g log' should give some wake information from the PWRB vs XHC events.
Alright so I've been doing some testing and with the flag 'darkwake' the system doesn't seem to be doing Time Machine backups during the day, I cannot verify that the system has been waking up for Power Naps either. So from what I understand, the ideal darkwake flag is simply 'darkwake' or?
I still have to press the keyboard once to wakeup system, then another time to wakeup monitor.
Do you have any ideas what I could look into?
Interesting I examined the logs and found this after the initial key press to wakeup computer:
"2018-04-27 23:48:43 +1000 DarkWake DarkWake from Normal Sleep [CDNPB] due to XHCI GBE1/Network: Using AC (Charge:0%) 11 secs"
Then this after second keypress to wake monitor:
"2018-04-27 23:48:54 +1000 Wake DarkWake to FullWake from Normal Sleep [CDNVA] due to HID Activity: Using AC (Charge:0%)"
If I press the Power button the system wakes up normally.
2018-04-28 00:05:40 +1000 Wake Wake from Normal Sleep [CDNVA] due to PWRB/User: Using AC (Charge:0%)
How do you wakeup your computer from sleep
@pastrychef , with the power button or by pressing a key on the keyboard/mouse? Also, I noticed you use the same AQC107 card as me, only mine being the Asus branded "ROG AREION 10G", do you have both the i219 and AQC107 or just the AQC107 enabled?
Also I noticed you don't use any SSDT for USBX and USB power management for XHCI?
Things I'm going to try:
-Implement only 15 USB ports and use uia_exclude to exclude the unused ports to avoid using the port limit patch to see if system will complete TM backups during Power Nap, will also check dark wake count via 'pmset -g stats' to see if darkwake is happening.
-Disable 'Wake for ethernet access' to see if the system will complete TM backups during Power Nap