This is partial changeset to support so called dark resume which allows us to resume userspace but not turn display on where desirable. See commit descriptions for more detail.
Right now this does not do anything actually other than printing debug messages, but local logic I have blacklists certain devices from waking up device fully. I need some comments on approach before I go ahead with further changes.
More reading:
https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/power_manager/docs/dark_resume.md