Kirk Mcelhearn:
Have you ever been annoyed to find that your Mac won’t go to sleep when you tell it to? Reader wjv found that, in Mac OS X 10.6 and later, there’s a simple way of finding out what’s keeping your Mac awake. To do so, run the following command in your Terminal.