Try to detect suspend or resume.

Fixes 11

Inotify is used to detect if /sys/power/state is modified.

Since this is Linux-specific, this can be made optional is someone
actually needs it, but since there is only one user, why bother ?