check power state