To be fair, I am not convinced that DPMS is place where we want to keep this logic, as there is few more actions where we might need this info for instance, if we wokeup from certain source, we want to go back to suspend quick enough and not wait forever for timeout to run again.
That logic needs to go int suspend action. But that also means I need to move onAboutToSuspend and onAboutToWakeup logic from here to somewhere. Maybe PowerDevilCore?