How to exec hook before SUSPEND state?

Makes sense, but this would involve a major architecture change in the hook subsystem, not easy at all to implement.

@kvaps, do open a feature request if you want, and reference this thread in the description. I think it’is a good idea that should be revised more carefully, although I’m a bit skeptical as to whether it’s going to be way too much effort.