Various events can be generated during suspend-then-hibernate when thesystem periodically wakes up to check the current power status, some ofwhich can trigger a system suspend. This may cause powerdevil toerronously trigger a re-suspend after a full system wakeup.
This is especially likely if user process freezing during sleep isenabled, since powerdevil will only process these events after a fullsystem wakeup.
Fix this by ignoring suspension triggers if the system is not currentlyfully awake.
(cherry picked from commit 1935d5e4)
Co-authored-by: Myrrh Periwinkle myrrhperiwinkle@qtmlabs.xyz