trq-2576 break out the power state function to their own file.