What OS do you have? And is it an Intel or PPC Mac? The "About This Mac" in the Apple Menu might help.
What helped me, was to create another user account, set it to sleep very soon, left it alone until it went to sleep, wake it, log out and log back in as your real user (the one you're using right now), and wait if it sleeps again.