A lightweight system power manger