Seems that Apple has removed some limitations for optical drives in 10.9 Mavericks,
so these scripts are a little deprecated :-)
This is only useful if sleep by menu command works flawlessly ...
KWSleep for 10.7 - 10.9.x:
KWSleepLion.zip 272.25KB 3 downloads
Basically consisting of 2 shellscripts: sleep.sh is running by launchd every 30 s, los.sh monitors changes in com.apple.PowerManagement.plist (add changed sleeptime in syspref to sleep.sh). This 8kb-shellscript run as root and works if no user is logged in ...
KWSleep Manual.pdf 172.48KB 1 downloads