How to make Mac sleep at low battery?

Joined
Nov 12, 2015
Messages
36
Reaction score
0
Points
6
I'd like to know if there's a way to make my computer automatically sleep at low battery, maybe 5%. I know about the option to make a mac sleep after a certain period of inactivity. This is not what I'm looking for. My power connection sometimes becomes unplugged pretty much randomly, so I'd like my computer to turn off rather than run down the battery completely. Thanks.

I'm running macOS Sierra 10.12.6 on a MacBook Pro (Retina, 13-inch, Early 2015).
 
Joined
Oct 16, 2010
Messages
18,171
Reaction score
1,918
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,246
Reaction score
1,834
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
My power connection sometimes becomes unplugged pretty much randomly, so I'd like my computer to turn off rather than run down the battery completely.

Have you thought about buying an UPS? Not normally needed for a notebook computer that already has a battery, but in your situation it might actually be a better solution than relying on software.
 
Joined
May 21, 2012
Messages
11,313
Reaction score
1,600
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
Have you thought about buying an UPS? Not normally needed for a notebook computer that already has a battery, but in your situation it might actually be a better solution than relying on software.
How would the UPS know the device has been disconnected, and be able to put the disconnected device to sleep?

@CharType, what settings do you have enabled in System Preferences > Power Settings?
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,246
Reaction score
1,834
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
An UPS would keep his power steady which would result in not having to put his MacBook Pro to sleep at all. Besides all that, he stated that when the battery goes down to 5% he would like the machine to sleep. That's a very low discharge percentage and not good for the battery which will cause unnecessary wear.
 
Joined
May 21, 2012
Messages
11,313
Reaction score
1,600
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
I understand that, but once the device is disconnected, is when it has no control over the battery or charging. The OP needs to pay closer attention to the power adapter.
 
Joined
Oct 16, 2010
Messages
18,171
Reaction score
1,918
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
The OP needs to pay closer attention to the power adapter.


Or maybe tape the power connector to the MacBook so it doesn't become unplugged in the first place!!! :Smirk:




- Patrick
======
 
OP
C
Joined
Nov 12, 2015
Messages
36
Reaction score
0
Points
6
@CharType, what settings do you have enabled in System Preferences > Power Settings?

There's no "Power Settings", but if you mean "Energy Saver" then here's what I have.

Turn display off after: Never
Battery:
[] Put hard disks to sleep when possible
[v/] Slightly dim the display on battery power
[v/] Enable Power Nap while on battery power
Power Adapter:
[v/] Prevent computer from sleeping automatically when the display is off
[v/] Put hard disks to sleep when possible
[v/] Wake for network access
[v/] Enable Power Nap while plugged into a power adapter

You need this person's problem if you could duplicate it:
MacBook turns off when charger is disconnected
SOLVED: MacBook turns off when charger is disconnected - MacBook Pro 13" Unibody Mid 2012 - iFixit

But the first thing that comes to my mind is wondering if Automator and/or if an AppleScript would work???



- Patrick
======

I can't find a way to make either Automator or an AppleScript run automatically when the power gets low.



Also I don't think I can tape down the connection effectively. Otherwise that might work.
 
Joined
May 21, 2012
Messages
11,313
Reaction score
1,600
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
Yes, I meant Energy Saver. You will have to pay attention for when the display dims, as this will tell you when the power adapter becomes disconnected from the laptop.

Edit: The screen will also dim if the power adapter becomes disconnected from the wall outlet.
 
Last edited:
Joined
Oct 16, 2010
Messages
18,171
Reaction score
1,918
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top