You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to send macbook pro to sleep mode at 5% battery?

I would like to my macbook pro to be turned of at 5% Battery power, as it doesn't turn of correctly at 0%. I'm having this issue for some years now, and want to get rid of it.

Which plist needs to be changed for this?

Or is there a Terminal-Command that's providing this?


I don't want to buy a new battery yet, caus the one I have is quite fine still.

I already reset the SMC and the Parameters, if anyone wants to suggest this.

Is the batterys status relevant, when resetting the SMC?


Here's what has been going on so far: https://discussions.apple.com/thread/3803316?answerId=17967545022#17967545022

MacBook Pro, Mac OS X (10.6.8), 2,5GHz 8GB Ram

Posted on Mar 28, 2012 9:53 AM

Reply
11 replies

Mar 28, 2012 12:55 PM in response to Maffibaer

In the other thread you've linked, you asked whether the machine not sleeping properly (after you ignore the low-battery warning that prompts you to connect AC power) is a sign of a degraded battery. The answer is yes. Shutting down instead of sleeping when the battery is nearly depleted tells you that the battery no longer reports its condition accurately enough for the OS to put the computer to sleep while there's still enough power left to do so. This is one of the common warning signs that it's time to replace the battery.


As wjosten says, frequently running your battery all the way down is a shortcut to killing it. It will be happiest and last longest if you make a habit of recharging it before its charge level falls below 30-40%. One can't always do that, of course, but the less often you run the battery flat, the better.


What does System Profiler report about the Cycle Count, Full Charge Capacity and Condition of your battery? What size and how old is your MBP, and how old is the battery?

Mar 28, 2012 1:50 PM in response to Maffibaer

Well, I'm just asking for a way to alter my machine to go to sleep earlier - which is a very easy task on a windows machine.

I know, I will be killing my battery if I keep on trying to find out if my machine goes to sleep or not when I'm far down. I'm sorry that I just use my laptop and SOMETIMES I just forget, I was on battery and had itunes still running.


And I'm not very happy, that I lose my time settings which forces me to reboot twice to go back to normal. (On a mac it's a bit of a nightmare).

I'm sorry, that I didn't inclue my Model Version - thought that would be included in my Profile. It's a mid 2010 Model 6,2. The one with the "unreplacable" battery. And so far, I'm very happy with it. Pleaso don't tell me OS X is incapable of living with a degrading battery. :-( They said it would last 500 cycles – I would even count a battery health at 50% as a promise kept and so far it is looking very good from my experience with laptop batteries.)


Anyways: There must be a routine in OS X that tells the machine, as a last line of defence, to shut down now and go to sleep. There is the 10% warning - there come the 0% and then it used to go to sleep.


System Profiler reports this: (sorry it's german, but you will know the numbers - in short istat saying now 77% health on 340 cycles.)

The interesting thing is that it says to check the battery...


Seriennummer: W0015PLZSBWZA

Hersteller: SMP

Gerätename: bq20z451

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware-Version: 0201

Hardware-Version: 000a

Zellen-Version: 0158

Informationen zum Ladezustand:

Verbleibende Ladung (in mAh): 5302

Vollständig geladen: Ja

Batterie wird geladen: Nein

Volle Ladekapazität (in mAh): 5345

Informationen zum Batteriezustand:

Anzahl der Zyklen: 340

Zustand: Batterie prüfen

Mar 28, 2012 2:45 PM in response to wjosten

I know what the geniuses will tell me: buy a new battery.

Failing battery or not: I'm still looking for the software switch to overcome the problem: Shutdown mac earlier, than thought by the Apple engineers.


I take responsibilty for nature and the things around me. Maybe the system profiler already told me to check the battery a year ago, I don't know. From my experience a battery fail is a quite fast process. When I got my first laptop in about 2001 or something, it's battery would run the machine for 1,5 hours, when factory new. Some current machines are shipped with a runing time of about 2-3 hours. I don't want to replace a battery that's runing my machine longer than most of my friends ones.


On the first look, it might be a clever idea to only put only one battery in the macbooks, but your answer makes a bad design of it.


I would gladly write a script for this and put it online, as I know, I'm not the only one having this kind of issue.


Besides: I'm quite sure there are a lot of iPhones runing down to almost 0% every day, I'm sure of that.

Mar 28, 2012 3:43 PM in response to wjosten

wjosten: That will work nicely with a battery that is in good condition and properly calibrated, and it may even address Maffibaer's question temporarily. But as I wrote above, the reason Maffibaer's machine is shutting down instead of sleeping is that the battery isn't reporting its charge level accurately — i.e., it doesn't know what its charge level really is. When it thinks it's at 5%, it may actually be at 0.5%, which won't power the machine long enough for it to save the contents of RAM to the hard drive and go to sleep. It's typical of end-of-life batteries for that problem to get steadily worse. Eventually the machine shuts down for lack of power when the battery is still [erroneously] reporting a 40%, 50%, or even 75% charge.


Maffibaer: Whether you like it or not, the facts are that a) you need a new battery if you want it to report its charge level accurately and behave as it's designed to behave, and b) one of the reasons your battery hasn't lasted as long as you hoped it would is your habit of running it down to zero before connecting the AC adapter. That will shorten the life of any lithium-based battery and cause it to fail prematurely. 77% health, for a lithium battery, is near the top of a short, steep slide toward complete failure. At 50-60% health, a lithium battery is virtually unusable.


You may be quite right that lots of iPhone batteries are running down to 0% on a daily basis. If they are, they won't last long, and their owners will probably blame it on Apple instead of on their own habits.

Mar 29, 2012 12:15 AM in response to eww

Well, I was just asking for the switch, and I got this nice 2$ Software-Piece, that does what I want.


Thanks a lot wojsten! 😎


Yes, I know my battery is going to die like myself. The reason why I stoped all the calibrating stuff is: It never brought a dying battery back. But I want my computer to go to sleep at 5% at all times. I give a **** about some minutes. "My habbit" is not running it down to 0%, but my habbit is to not think about what my machine does, when something interrupts my life. Coming back to your Mac and losing your status is a nightmare. I'm not closing the lid for obvious reasons...

And as wojsten says: Depleting the battery completely is going to speed up killing the battery.


Well: my first iPhone lasted very very long and I didn't see it's death. The thing with batteries is: You can't tell when they will die.


And so far I'm very happy with the battery life of this macbook pro. 2 years and losing 1/5th of capacity is fine for me. The reason, why I don't want to see some genius is, that I lose half a day for something that takes me 15Min at my office. (ok the battery replacement will take that long...)


Anyways: Thank you guys for helping me and keep up the good work!

Jun 18, 2013 8:25 AM in response to Maffibaer

For those with 32bit intel machines where the low-battery-saver application doesn't work, i have put together a simple applescript which achieves the same. I copied most of it from http://macscripter.net/viewtopic.php?id=23448.


Just paste it into Applescript editor, save it as an application with "run always" checked, and add it to your login items. The number in the first line is the % battery below which you want the computer to sleep.



property lowBattery : 6


on idle

set battStatus to do shell script "pmset -g ps"

if battStatus contains "Battery Power" then

set {TID, text item delimiters} to {text item delimiters, ";"}

set battStatus to text items of battStatus

set text item delimiters to tab

set battStatus to text 1 thru -2 of last text item of item 1 of battStatus as integer

set text item delimiters to TID

if battStatus < lowBattery then do shell script "pmset sleepnow"

end if

return 60

end idle


If you want to make it run in the background without a dock icon then download and install Applet Bundle Tools from here http://www.macosxautomation.com/applescript/bundletools/index.html

Unzip the archive and copy it to /Library/Scripts


Then open your applescript and have it in the foreground in Applescript Editor.

from the applescript menu, run "Applet Bundle Tools > Set Background Only"

and "Applet Bundle Tools > Set Icon in Dock Display"


Save the script again as an application "run always" and you are done.


This works for me on a 2006 Macbook Pro runing OSX 10.6.8


Hope this helps others as it was driving me crazy.

How to send macbook pro to sleep mode at 5% battery?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.