Initial patches to support a real idle mode