Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Yeah, I know my battery is probably hosed, but every time I reach 5%, my MacBook shuts down, as it expects the battery to be able to run down to 1% before hibernating.

However I would like it to hibernate and not shutdown, when I run out of power, so is it possible to make my MacBook hibernate at like 5-10%?

My MacBook is over 2 years old and I'm not going to buy a new battery. The battery only lasts 1-2 hours.

I have tried calibrating the battery, resetting the SMC etc., without any noticeable effect.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

http://www.jinx.de/SmartSleep.html will let you control it via GUI. The app is $6 on his website or $4 on the Mac App Store.

(Note: I have no idea how this app ever got approved for the Mac App Store, but it appears that Apple is stone-walling the developer on approving a Lion-compatible update. This seems to be Apple's passive-aggressive way of getting apps out of the Mac App Store after they were approved: they don't want to upset people by yanking the app, so they just won't approve an update and eventually it either breaks and the developer pulls the app because they are getting so many support requests, or people just stop buying it. When the sandboxing rules hit in November, we may see apps start disappearing from the Mac App Store. All of which is to say that if I was going to buy this app, I'd buy it through his website even though it's $2 more. There's a demo available, although the "request a trial" button didn't work for me, I assume it's a temporary glitch that the developer can fix. It also appears that Mac App Store customers can download the version from his website and use that, so if those $2 are really important to you, I guess you could try that.)

If you'd rather spend time than money, http://tidbits.com/article/9115 has a script that might help.

share|improve this answer

If you purchase or try the demo version of TinkerTool System (and make sure that it is "system", TinkerTool alone won't do it), there is a setting to enable or disable "Safe Sleep," which automatically hibernates the laptop every time it enters sleep. To access this setting, go to TinkerTool System > Mobile Settings > Safe Sleep.

share|improve this answer

It's not ideal, but using no 3rd party tool you could use pmset to halt your computer at 10% left...

pmset -u haltlevel 10

This will trigger an emergency shutdown at 10% battery left... Which is arguably better than a power loss when you have an aging battery (It's my case).

share|improve this answer
    
Doesn't work: $ pmset -u haltlevel 10 Usage: pmset <options> See pmset(1) for details: 'man pmset' –  Tyilo Oct 3 '11 at 22:59
1  
dooooh... Confusion... It works on my Mac Mini but... of course it won't on a MacBook. This setting -u applies only to systems with an UPS attached to them. Sorry about the off topic answer. –  Coyote Oct 3 '11 at 23:16
1  
man pmset, it'll provide the necessary flags. Use sudo pmset -b hibernatemode 10 (the "b" is for battery and haltlevel is now obsolete). If you want to use it for both the battery and a UPS, you would choose -a, which applies to "all"). –  cksum Feb 14 '12 at 23:30
    
@cksum -1 This changes the mode of hibernation, not the time before the computer hibernates. See: macs.about.com/od/usingyourmac/qt/… –  Tyilo Aug 6 '12 at 1:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.