Hibernation Tool for Mac OS
von Sveenie | um 18:07 Uhr | in Software, Was den Geek bewegt | 20 Kommentare
Since quite some time Mac OS also has a hibernation mode, also known as suspend-to-disk. But as usual for Mac, you cannot select it by hand. In fact, a suspend-to-ram always does a suspend-to-disk as well, so that in a case of power loss (like empty battery) you can start the computer from the image on the hard disk without losing anything. Apple calls this suspend combination “Safe-Sleep“.
So far so nice. But sometimes you might want to go directly into hibernation mode. Therefore I wrote a little applescript, which in respect to similar scripts doesn’t need any administrator rights to work. In fact the icon was the most difficult part.
Download it right here.
For an easy access to the hibernation mode, you either move it to /Applications/ or somewhere else and drag it into your dock, or you put it in ~/Library/Scripts and activate the script menu with the Applescript Utility.
PS.: If your Mac does not support the hibernation mode, there is a chance that you can enable it. Look here.
PPS.: As a Mac OS X user you might also be interested in another tool by me: UpdateCheck (Software Update Notifications for Non-Admin-Users)
Troubleshooting: if you experience that your computer still goes into normal sleep mode, open Hibernate.app/Contents/Resources/Scripts/main.scpt and increase the delay to 30 at the end of the script.
20 Kommentare »
RSS-Feed für Kommentare zu diesem Artikel. TrackBack URI
Einen Kommentar hinterlassen
Powered by WordPress. Theme based on Pool.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^


Hibernation on the Mac…
As a Windoze user I was used to put my notebook into hibernation. This has the following advantages over shutting the machine down or putting it into sleep:
Shutting the machine down means a long boot when I need it again, plus I have to open all apps…
Trackback von Ralf's Blog · 6. Juli 2008 · 14:50 Uhr #
Exactly what i needed, great work
As i’m used to have the Dashboard turned off for performance improvements i needed the “Deep Sleep”-Widget as App-Solution – got it
Kommentar von baggyman · 14. August 2008 · 19:51 Uhr #
Thank you – this is exactly what I have been looking for. There are a couple of apps out there that are far too clever, all I’ve wanted was something that would let me hibernate the computer at the end of the day without interfering with the MacBook’s usual sleep mode which is really quick and effective. This is perfect. Many thanks.
Kommentar von Lee Collier · 8. Oktober 2008 · 3:10 Uhr #
this is great–please continue to update it. i think hibernation is more energy efficient, and thus much better for the environment, than normal sleep. (perhaps apple likes selling batteries more than saving the world?) i would love the option to turn off the confirmation dialog, however, to make it quicker. it’s just an extra step i don’t need, since the worst result of a mistaken double-click is 30 lost seconds. danke!
Kommentar von matt · 4. Dezember 2008 · 9:52 Uhr #
@matt: you can easily change that on your own. Just open Hibernate.app with the “Script Editor.app” and add a
--to the beginning of the linedisplay dialog ("Do you want to hibernate?" &...Kommentar von Sveenie · 6. Dezember 2008 · 17:09 Uhr #
Hello,
thank you for sharing this very useful app. I think though, that it doesn’t save the ram where the safe sleep saves it, but on a different location instead. Since I got 4 gigs of ram, safe sleep takes 4 gigs, and I think now that I ran hibernate.app it takes another 4 gigs.
If I’m right, may I ask where it saves them so I can delete them manually?
Thanks
Kommentar von Orestis · 30. Dezember 2008 · 1:06 Uhr #
@Orestis: The tool doesn’t decide were to save the memory. It just tells the system to go into hibernation. Everything else is done by Mac OS, so I have no idea why there should be a difference. And to be honest, I don’t believe it, you are probably seeing something else.
Kommentar von Sveenie · 10. Januar 2009 · 13:26 Uhr #
Is it possible to write a script for the hibernatemode 5 instead of 1? Thanks.
Kommentar von Tom · 15. Januar 2009 · 10:32 Uhr #
@Tom: The man page of pmset doesn’t say anything about hibernatemode 5, so I have no idea what that mode is. But if you know, what you do, you can just drag the Hibernation.app on the Script Editor and change the value in line
do shell script "/usr/bin/pmset force -a hibernatemode 1"Kommentar von Sveenie · 15. Januar 2009 · 13:04 Uhr #
Thanks, that worked great. Mode 5 is the same as 1 except for use with secure memory setting on newer macs.
From a macworld article:
Kommentar von Tom · 17. Januar 2009 · 23:51 Uhr #
@Tom: I think this information is not accurate. I remember modes 5 and 7 were mentioned in older man pages of pmset, but Apple removed it with a reason I assume. Just read section “A Question of Encryption” in this article: http://db.tidbits.com/article/9115
I quote: “Don’t ever use 5 or 7.”
Kommentar von Sveenie · 18. Januar 2009 · 1:53 Uhr #
[...] Then there were all the Mac “quirks” that I can’t stand: the irrepressible start-up sound, for example, and the way hibernation is supported, but impossible to apply manually. Luckily, my Google-fu proved strong enough, and I have muted the startup sound and found a way to manually select hibernation. [...]
Pingback von the switch, extended » scribbling damselfly » deborahkalin.com · 26. Januar 2009 · 3:51 Uhr #
This works great! Thank you for this
Kommentar von Chris Brinker · 16. Februar 2009 · 22:05 Uhr #
[...] Hibernation Tool for Mac OS (not the catchiest name, admittedly) is less elegant, but it’s simple. It’s just an AppleScript that, when activated, puts the MacBook directly into hibernate mode. [...]
Pingback von How to enable hibernate mode on a Mac | Geek Guides · 21. Februar 2009 · 20:17 Uhr #
[...] As a Mac OS X user you might also be interested in another tool by me: Hibernate (Hibernation Tool for Mac [...]
Pingback von kaputtendorf » UpdateCheck · 22. Februar 2009 · 3:43 Uhr #
Sometimes when resuming from Hibernation, the mouse cursor is still set to the wait wheel (black / white)?
Kommentar von James · 1. Mai 2009 · 18:39 Uhr #
Thanks very much for this app; it works very well. However, I was wondering: I’d like to use this as a way to more quickly switch between Windows and Mac OS X. When I turned the machine back on, I held down the Option key but was not presented with a choice of OSes to load — it just went straight back into OS X.
Do you know of any way to work around this so that I can chose to run Windows instead? I’m aware of Virtual Machines and the like but I am using Windows for gaming primarily and the games run far better natively.
Thanks again for this great utility.
Kommentar von matatk · 3. Mai 2009 · 19:16 Uhr #
Thank you very much for this script, I believe it will be very useful to me.
Indeed, I have the same question as matalk: can’t I boot to an other OS while OSX is suspended-to-disk?
I use rEFIt to load my Linux, but it is never loaded: the RAM is restored directly.
That would be so nice to be able to switch from one OS to an other without the booting process…
Kommentar von madprog · 6. August 2009 · 9:40 Uhr #
Great tool!
It work fine on my MacBook Pro with Snow Leopard (10.6.1)
Tnx
Kommentar von Baphometh · 19. September 2009 · 20:41 Uhr #
[...] found a useful tool Hibernation Tool for Mac OS (applescript) that allows me to perform hibernation without changing any settings. It is just doing [...]
Pingback von How to hibernate Mac OS X | Code Mox · 1. Dezember 2009 · 22:44 Uhr #