These shell scripts provide access to the power management functions of MacOSX.
You can set the sleep state of your Mac either to "Suspend to RAM", "Suspend to Disk" or
"Safe Sleep", the MacOSX default.
The currently active state can be viewed using "/usr/bin/pmset -g | grep hibernatemode".
sleep2disk.sh - activate "Suspend to Disk" (Hibernate Mode 1)
sleep2ram.sh - activate "Suspend to RAM" (Hibernate Mode 0)
sleep2save.sh - activate "Save Sleep" (Hibernate Mode 3)
The "sleep2ram.sh" script also deletes the hibernate file freeing up hard-disk space of the
size of your RAM.
To execute the scripts you have to be Administrator and need to enter your password.
WARNING: THESE SCRIPTS CAN CAUSE DATA LOSS AND/OR DEMAGE YOUR HARDWARE. DO NOT USE THEM IF YOU
DO NOT KNOW WHAT THEY DO.
THE AUTHOR CAN NOT BE HELD RESPONSIBLE FOR ANY DATA LOSS OR DEMAGE.
The scripts shown on this site are outdated.
Please use SmartSleep found under http://www.jinx.de/SmartSleep.html for
recent versions and a nice user interface.