add suspend config and detection

Fixed #173

Signed-off-by: Hiroshi Miura <miurahr@linux.com>