Repairing disk permissions (with the Disk Utility) fixes sleep problems for me. It's usually necessary after a forced reboot, booting into OS 9, or installing any software.