How I doubled the battery life on my Mac by literally closing one tab in a browser

Primož Cigler
We’ve moved to freeCodeCamp.org/news
4 min readFeb 17, 2016

Today I want to share a quick and easy hack that doubled the time-on-battery on my laptop.

It is so easy to do once you know where to look.

I spend most of the time on my laptop in the browser. This is mostly because I read stuff, stick on social media or develop websites. I use Chrome for this, I rarely open any other browser — most of the time for testing only.

Chrome is generally known not being energy efficient app, so it is a trade-off, but I find it much better (especially for dev) than anything else.

For quite some time now I started to notice that the battery is not lasting as long as it used to when I bought this laptop a year and a half ago. It is normal that it is losing its power over time. But then one day about 2 weeks ago, when I was lying ill in my bed, I decided to check what is draining my battery so fast and if I can fix it.

Fortunately the OS X comes with the Activity Monitor, which also gives you the overview which apps put most impact on your battery life.

Activity Monitor

If you sort the list by column Avg Energy Impact, you will find the most troublesome apps. In my case Google Chrome. You can solve the problem easily by quitting the app, but as I mentioned, this was not viable in my case, as I want to use Chrome.

The screenshot above was taken at the time I am writing this and it showing the “fixed” Chrome. By the time I went to analyze it for the first time, the Avg Energy Impact value for Chrome was well over 100, around 140.

So, how did I manage to cut it down to about one third?

It was quite simple. I literally had to close one single tab in Chrome, which was using lots of CPU.

My toolbar in Chrome looks like this:

I have couple of pinned tabs which I want always open and then come the tabs that “come and go”.

There is one not-so-well known tool in Chrome, that allows you to analyse how much resources the individual tabs consume. It is called Task Manager and you can find it in Menu > More Tools > Task Manager.

Where to find Task Manager in Chrome

When opened, it will reveal more fine-grained details about CPU and RAM spent within Chrome.

Chrome Task Meneger

What you’re interested in is the CPU — this is what is draining your battery.

Find the tabs that are constantly greedy for your CPU and kill them with fire!

To my case. I had the currency exchange rates (USD to EUR) opened all the time. It was this page. And look at this, when I have this page opened and pinned:

Tab XE.com is sooooooo CPU intensive (the tab was inactive when I created the screenshot)

It was obvious choice. I can live without pinned tab about exchange rates, if that makes my laptop alive for twice the time.

If you feel that your laptop battery is struggling because of the Chrome, check out the Chrome Task Manager. Kill the most greedy websites with fire and notify their developers. They are probably doing some dirty stuff in JavaScript which is draining your battery like hell.

You might follow me on Twitter, but we both know Twitter is very noisy. So you can leave me your email and I will occasionally send you stuff I find useful.

--

--

Primož Cigler
We’ve moved to freeCodeCamp.org/news

Web developer and dev/CEO at ProteusThemes. Sometimes windsurf-ish digital nomad. Ex. astrophotographer and student of astrophysics.