Fix deep sleeping.
Not sure why oppo removed this in the first place.