saltwater.be

playground of Bruno Windels

17/09

Sleep to disk on MacOSX

At little tech post to interrupt the silence. Just wrote a little applescript that people with an apple notebook also might find useful. It allows you to choose to hibernate (write the contents of the ram to disk and shutdown) or normal sleep (in fact safe sleep, it first writes the contents of the ram to disk but does not shutdown so you can wake fast at any moment).

I used to use a dashboard widget called deep sleep but it doesn't allow you to go back to normal sleep, after using it it always shuts down. So I read their docs and made a little applescript that allows you to do both. Feel free to do wathever you like with it. You can find more information on hibernation modes in MacOSX in the documention of deep sleep, especially chapter 7.

I bundled it into a little application (made a cute little icon for it too :) for you to download.

Keep in mind that when you close the lid, or choose sleep in the apple menu, the sleep mode you selected the last time you used Sleep Tight will be used. Oh, and no warranty whatsoever, but you already knew that.

UPDATE: Just saw that when you go to the preferences of the deep sleep widget, you can change the sleep mode, rendering this basically useless :)


Dit bericht werd gepost op Donderdag 17 September 2009 om 17:58 onder de categorie Andere, Programmeren, Apple. Je kan de reacties volgen via RSS. Als je wil kan je hieronder een reactie achterlaten.

Reacties
katrien zei

op Vrijdag 18 September 2009 om 15:18:

Om het even samen te vatten: waste of time. En dat terwijl je ondertussen een klein persoonlijk berichtje voor je blog had kunnen schrijven … :p

Plaats een reactie