use powersuspend when needed v2

This patch is a corrected version of this
https://github.com/BrateloSlava/SaveEnergy-3/commit/2913bf877b5a0fbeb68ba4fbfc26c671fc7c73f6

Many thanks to https://github.com/rmbq for correcting the logic of the
patch