Posts Tagged ‘hibernation’
Windows Vista prompts for you password every time it comes out of sleep / hibernation. If you’d rather it didn’t then here’s how to disable that behaviour.
If you have a Windows Vista machine in a secure (enough 🙂 ) environment then you may not want it to prompt for a password every time it comes out of standby. With previous versions of Windows it was pretty obvious how to choose this behaviour (in XP it’s under the Advanced tab of the current power scheme in Power options for example — in fact, it’s still there in Vista but it’s buried deep).
Under Vista it’s far less obvious, but the setting is there if you know where to look for it.
First, go to Power options in the control panel. I find it easiest to do this kind of thing by bringing up the Start menu and then typing (in this case) power, and then selecting Power Options:
Next, in the Power Options window, don’t click on change plan settings as it’s somewhat buried in there nowadays. Instead, select the Require a password on wakeup link that’s lurking in the top-left of the window:
You will then be presented with a window which looks useful, but in fact the Don’t require a password option you’ve been looking for is greyed out — you can’t select it! This is because you first need to click on Change settings that are currently unavailable:
And finally you’re in a position to select the option:
It’s worth repeating that you should only set this option if you’re happy that someone with no knowledge of your login details can walk up to your suspended Vista session, wake it up, and start doing stuff as you.
The quick, physical way to hibernate your MacBook.
When you close your MacBook’s lid, the machine sleeps. But you’ve probably noticed that it still uses power in its sleep — about 20% of the battery per day, so after about five days it’s flat.
What you may not know is that you can put the MacBook into a much deeper state, where the machine uses almost no power at all. A full battery will then last for months rather than days — useful if you know you’re not going to use your MacBook for a while.
Now, you could install freeware to put your MacBook into this deep-sleep state (often call hibernation) and indeed I have, and it’s good: Deep Sleep. But for the hell of it, here’s a physical way of doing the same, with no additional software required.
Hibernating your MacBook
Check it’s safe to do so
First, close your MacBook’s lid. The illuminated Apple logo on the lid will extinguish almost immediately, but we’re not looking at that.
Look at the light on the front:
It will eventually start pulsing (breathing 🙂 in its sleep). If that happens almost immediately then sorry, but your MacBook is probably too old for this to work (it hasn’t copied its state to disk), so please don’t carry out the rest of these instructions — you may cause damage.
If, on the other hand, it takes tens of seconds before the light goes from solid-on to pulsing (typically twenty seconds or so) then your MacBook is recent enough for this to work, and you’re ready for the next step.
Let the fun commence
If the power light is now happily pulsing and it took a while to get to that state (whilst the MacBook copied its state to disk) then its time to interrupt the power.
Flip your MacBook over and press the battery-bay latch:
Then remove the cover:
and remove the battery, just for a couple of seconds:
Then put it all back together and hey-presto, the power light is off and its consuming almost no power at all.
When you next wish to use your MacBook, just open it up and press the power button. (Because it’s off off — really off — you do need to press the power button; opening the lid or pressing a key isn’t enough.) Mac OS X will begin to boot and then show a progress marker while the system’s state is restored from disk:
After a short while (about 35 seconds on my late-2008 MacBook Pro with 4GB of RAM), your MacBook will spring back to life in the same state as it was when you closed the lid, and with the same battery life!
How’s this work?
Modern Macs do what Windows Vista (for example) calls a Hybrid Sleep whereby it saves its state to disk as well as maintaining the same state using battery power. When you close the lid, the illuminated Apple logo goes off immediately so that you know it’s going to sleep, but actually the MacBook spends the next 20 seconds or so copying its state (mostly the contents of its RAM) on to disk. This is so that, should the battery go flat (and it will do within days, even if it’s full to start with), you won’t lose any data — you just have to wait longer for the machine to wake up once power is restored.
The MacBook then enters a light sleep (usually called standby) whereby the MacBook’s state is preserved by maintaining power to the machine’s RAM, and it’s that power feed that drains the battery.
When you pull the power for a moment, the machine no longer has any live state to preserve and so is essentially off and pulling no power. When you eventually switch it on again, Mac OS X restores its state from the hard drive and everything’s back as it was. It just takes a little longer, that’s all.
Here are some things you need to consider before indulging in any of above:
- You can’t do this on older MacBooks (the clue is in how long the power light takes to reach the sleeping state (pulsing on and off) — if it’s near instant then hybrid sleep isn’t happening and this isn’t going to work).
- You must wait until the power light is pulsing before pulling the battery;
- I suggest you don’t do this over-frequently (for example, every day is probably a bad idea) as the battery contacts may not be designed for such a high level of wear-and-tear. (Are there people who remove their MacBook’s battery every day for years on end? I wouldn’t be at all surprised.)
- Don’t plug in fresh USB devices whilst the Mac is asleep and then wake it from hibernation, as you may find your Mac is less than happy about it.
The software approach
If you don’t like the thought of removing your battery then not to worry — there are several software solutions that will also do the job, and there’s a good guide to them over at Geek Guides.