Backported power manager from CAF's ics_chocolate.

probably fixed issue #19