Question: imac is not going to sleep?
Answer: If your Mac doesn't go to sleep when you expect it to, or if it wakes up unexpectedly, you may need to change your sleep preferences. ... Check your system's sleep settings: Make sure the sleep settings are set the way you want. To view sleep settings, choose Apple menu > System Preferences, then click Energy Saver.