59

In previous versions of OS X the battery indicator in the menubar included options to show the remaining battery life as percentage or time (or nothing).

In Mountain Lion, there's only an option to show the percentage?!?!

How can I get the missing option back?

enter image description here

gentmatt
  • 49,722
  • 1
    The plist still shows the option set to NO... but setting it to YES does not re-enable the time measurement :( – jtbandes Jul 27 '12 at 06:45
  • 9
    http://www.apple.com/feedback/macosx.html, please. We can get it back! – Arjan Jul 29 '12 at 11:00
  • 3
    I left feedback! That's ridiculous that it was removed. – da4 Jul 30 '12 at 22:24
  • i've tried the terminal commands: defaults write com.apple.menuextra.battery ShowPercent -string "NO" defaults write com.apple.menuextra.battery ShowTime -string "YES" no joy on the menu bar, but actually… SOMETHING IS OBTAINED. if you go in system preferences>energy saving, with mountain lion you have ONLY THE PERCENTAGE. after using these terminal command it appeared the time indication right after. would it be impossible to modify some apple file to get this indication in the menu bar? –  Jul 30 '12 at 22:18
  • 1
    I wonder if someone can comment on why it was removed? Perhaps they found the time estimates to be unreliable? – asmeurer Jul 31 '12 at 18:54
  • 2
    feedback left - I really hope this actually does something... This 'sucks' and is steps backward in terms of usability. – AndrewPK Aug 01 '12 at 03:55
  • 7k views, if only 10% reported back to Apple... ;-) – Arjan Aug 05 '12 at 10:30
  • 1
    @asmeurer, "Perhaps they found the time estimates to be unreliable?" I guess not, as the estimates are still there, when clicking the icon (unless on AC power and fully charged). So Apple just didn't want us to Think Different to want it in the menu bar all the time. – Arjan Aug 05 '12 at 10:31
  • 1
    @gentmatt, re your bounty, unless there's a defaults write that no one has caught yet, the only way you're going to modify the built-in monitor is to hack the code somehow, which is a bad idea (it would break code signing, is liable to crash the system, etc.) – asmeurer Aug 05 '12 at 23:49
  • Same problem here. The answer is probably that you can't. Until somebody makes a third party app. Then we have to have two icons up there. – antriver Jul 25 '12 at 21:02
  • You'd still be able to remove the OS X battery icon by CMD-dragging it off the menubar. – gentmatt Jul 25 '12 at 21:04
  • WRT 3rd party app: I use iStat Menus to monitor my battery life (among other things), which still supports displaying time values in ML. At $16, it's probably a wee bit expensive for just a battery monitor, but it also includes a multitude of other readouts such as CPU load, memory, fan/temp sensors, etc. which might be useful depending on your needs. –  Jul 25 '12 at 21:20
  • Here is a free battery monitor: https://github.com/mac-cain13/Battery-Time-Remaining – Mac_Cain13 Aug 04 '12 at 23:36

8 Answers8

18

According to the following blog entry Apple removed the option deliberately and it won't come back:

http://www.macpoint.be/mountain-lion-is-coming/

I also missed the option, so I wrote an App. It's in beta now:

http://batterytimeapp.com/

meeee
  • 281
  • 1
  • 4
  • 2
    Welcome to AskDifferent and thank you for you answer! It's great to hear that you develop an app to give us choice back. How does your app determine the time? Do you use your own algorithm? – gentmatt Jul 26 '12 at 10:12
  • 2
    I use information from the system configuration framework, which provides an estimation, so no own algorithm. The same time is shown when you click on the battery indicator on Mountain Lion. Besides using an API, you can access the data using the command line utility scutil. – meeee Jul 26 '12 at 10:23
  • 3
    The current and maximum capacity are also shown by ioreg -l | grep -i Capacity. – Lri Jul 29 '12 at 13:48
11

SlimBatteryMonitor

Not only does it save much more space in your menu bar, it lets you choose what information to show in specific states.

I have mine set to show the time when running on battery, the percentage when charging, and just the icon when fully charged.

enter image description here

enter image description here

asmeurer
  • 1,995
  • This works in Mountain Lion! Awesome. – gentmatt Jul 27 '12 at 06:26
  • This is exactly what I was going to recommend. You can even make the icon "disappear" when the battery is fully charged (it doesn't really disappear, but there's just a very tiny sliver of it left and it's the same color as the menu bar so it isn't distracting. – TJ Luoma Jul 31 '12 at 18:32
  • Impressively, this app continues to work even with Yosemite, even though the developer hasn't updated it since 2009. You'll need to adjust the default warning panel percentage with newer laptops, as 15% charge lasts a lot longer than it used to. You can even adjust the colors so that it works in Yosemite dark mode. – asmeurer Nov 14 '14 at 16:53
11

You just can't show the remaining battery time in the menubar since Mountain Lion.

The following free app uses almost the same icon design and adds a bit more features which makes it a valid replacement:

Battery Time Remaining

by Han Lin Yap

enter image description here enter image description here

You can read my blog post for some more detail on what I did, it also won't hurt to report a bug to Apple. So this issue will get to their attention.

  • Yay! This is the best solution so far. It's even more functional than the original battery menu indicator. However, I'd really wish that it were possible to move this icon further to the right in the menubar (between the other OSX menu items). But for now this is my solution. Thanks! :) – gentmatt Sep 20 '12 at 13:34
  • This is the right answer. Far higher quality software than the others listed here. – Chris Calo Nov 05 '12 at 23:38
  • 1
    @gentmatt, check out my fork of Battery Time Remaining. It is implemented as a menu extra, so you can move it around however you want. https://github.com/AriX/Battery-Time-Remaining – AriX Nov 17 '12 at 20:40
  • Battery Time Remaining is a good app. Nonetheless, in case you don't know how to compile the GitHub source using Xcode, you'll need to purchase it. Some free alternatives, such as TLOB, are available on the App Store. @gentmatt in MacOS Sierra you can move the icons order in the menubar by selecting one icon and move it right or left while holding "command" button :) – Albz Aug 16 '17 at 06:03
5

A cheaper and simpler option than the still-awesome iStat Menus is Watts for USD $6.95. Very configurable and lets you schedule reminders including re-calibration.

Watts 1.3.3 menubar options

I've been using it on 10.6.8 on my last three portables and am very happy with it.

da4
  • 5,675
4

I made a very simple app to specifically show time remaining: Battery Time Remaining

enter image description here

nohillside
  • 100,768
Codler
  • 359
3

iStat Menus can also solve the problem (as well as show tonnes of other useful information) http://bjango.com/mac/istatmenus/

Trent
  • 31
  • There is a free iStats widget that shows the time remaining, but you would need to swipe to get to the widget. Probably quicker to click on the battery icon. –  Jul 26 '12 at 23:53
1

I thought this was already present in Lion. In Lion you could change it with

# Menu bar: show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"

found on

https://github.com/mathiasbynens/dotfiles/blob/master/.osx

  • Thanks for the link. Unfortunately only the first defaults write command takes affect in Mountain Lion. – gentmatt Jul 25 '12 at 21:12
  • I dont't even get it to work with Lion. It might be outdated – miceterminator Jul 25 '12 at 21:17
  • You need to kill SystemUIServer in order for changes to take affect. – gentmatt Jul 25 '12 at 21:19
  • 1
    I tried setting these and killing SystemUIServer. The UI flashed, but no time displayed. :-( – chrish Jul 25 '12 at 22:35
  • 2
    After upgrading defaults read com.apple.menuextra.battery already gives me { ShowPercent = NO; ShowTime = YES; } without running the above commands, maybe a leftover from Lion. I am not seeing the time though. Do you actualy see the time, @gentmatt? – Arjan Jul 26 '12 at 10:19
  • 1
    @Arjan No, I said that only the defaults write command for the percentage works. Sorry for the misunderstanding. – gentmatt Jul 26 '12 at 10:20
  • 1
    I’m the author of ~/.osx which is mentioned in this post. These commands were based on OS X Lion and earlier versions. The ShowTime option is now a dummy setting — you can feed it any value you want, but OS X 10.8 will ignore it. Sadly. As mentioned, the command to show the percentage should still work. – Mathias Bynens Jul 27 '12 at 07:49
0

If you have an older Mac and the older version of the Battery.menu app backed up (or downloaded from a trustful source), you can replace the new crippled Battery.menu with the former one that shows the Remaining time.

Inspired by this article, but in my case, I had to do everything in the Recovery mode in order to make it work. They also link the old menu version if you trust them. I fortunately had my own backup.

Approach in general:

  1. Get the previous version of Battery.menu
  2. Reboot into Recovery mode
  3. disable System Integrity Protection
  4. swap Battery.menu apps
  5. enable System Integrity Protection and reboot

Detailed steps:

  1. open this guide in your phone to keep it on eyes
  2. get the old Battery.menu e. g. to ~
  3. Reboot to Recovery mode (Command-R while start-up)
  4. Run Menu: Utilities > Terminal:
# csrutil disable
# reboot
  1. Trigger Recovery mode again (Command-R while start-up)
  2. backup replace Battery.menu again in Menu: Utilities > Terminal:
# cd /System/Library/CoreServices/Menu\ Extras/
# cp -R Battery.menu Battery.menu.backup
# cp -R ~/Battery.menu .
# csrutil enable
# reboot
  1. Double-check the System Integrity Protection is really enabled after rebooting in Terminal:
# csrutil status

This last step is really worth double-checking, because forgetting it would mean a serious vulnerability of your Mac.