Does Ubuntu reduce battery life?

4

9

This questions is loosely related to Does dual boot harm a laptop battery or reduce its life?. In that question I have asked if Dual boot decreases battery life. Here I have asked, does Ubuntu decreases battery life.

Does Ubuntu decrease the life of the battery?

I dual-booted my laptop with Ubuntu 17.10 and Windows 10 one year back. After one year, my laptop battery backup has reduced to 40 minutes. The answer provided in the above link says dual boot does not harm the battery. Hence I suspect that it might be possible that Ubuntu decreases the life of the battery. I don't know, but I have experienced that Ubuntu drains the battery faster than Windows.

user1068838

Posted 2019-07-30T16:25:51.140

Reputation:

4

I think a more reasonable cause of batery degradation would be related to the fourth topic (Don’t leave your laptop on permanent charge) in this article: link.

– Ronaldo – 2019-07-30T17:55:01.367

17I downvoted because you are ignoring what people write and repeat your question all over the place. – Nobody – 2019-07-30T18:29:32.277

8@nobody And I upvoted because the actual answer is a nuanced, and its valuable to the community! (I also disagree with both you and GabrielaGarcia - and Ive done a significant amount of testing and research here.) – davidgo – 2019-07-30T20:15:57.467

3@Nobody I am not repeating my question .That question was related to dual boot , here i am just asking about ubuntu .If on that place would have edited my question after i accepted the answer then it would have been unfair .Also i am not asking this question just for self benefit since my battery is already dead.It will help others too .Also you can see the answer provided by davidgo is different from the answers provided on the link .Hence my question is bit different . – None – 2019-07-31T04:22:28.933

26Using the battery decreases the battery life. – n0rd – 2019-07-31T09:46:44.117

What is the normal life of a battery? 2-4 years? 40 minutes seems reasonable (you did not mention the total length of time). – Salman A – 2019-07-31T13:40:16.060

1@PeterMortensen 17.10 – None – 2019-07-31T14:34:22.110

2if you are so worried about battery wear then run your laptop on power save mode, unplug it at 80% and plug it at 30% for its entire life. – user14001 – 2019-07-31T15:16:35.397

Are you using the laptop differently when booted into Ubuntu then when booted into Windows? If so, the things you think you observed is not happening. – Jan Doggen – 2019-08-01T13:06:43.317

What does I dual-booted my laptop with Ubuntu 17.10 and Windows 10 one year back mean? You either use Win or Ubuntu.... What are you comparing to what? – Jan Doggen – 2019-08-01T13:08:09.410

Also temperature reduces battery life, if you really want to preserve battery and extend its shelf life you should store it charged (how much charge depends on type) in cold place but not freezer... – Sampo Sarrala - codidact.org – 2019-08-01T17:20:28.757

Answers

27

Without extra care, yes, although this can be mitigated/avoided, and the main cause is just wear and tear. The problem is not Linux per se, but the vendors' focus on Windows optimizations for battery life, and heavier power draw kills a battery faster.

The main things which degrade a rechargeable lithium-based battery are:

  • Heavy discharge
  • Full charge, particularly keeping full charge
  • Number of charge/discharge cycles
  • Heat
  • Storing battery fully charged/Discharge
  • Age - maximum capacity of a perfectly maintained battery still decreases with age.

Because Linux is heavier on the battery than Windows, the amount of heat is higher, causing faster wear. Similarly you likely have more charge/discharge cycles, because the battery is used more.

Some mitigations/trade-offs to improve battery -

  1. If your BIOS supports it, set maximum charge to less the 80% (or even 70%) - shorter work time, much longer battery life in net terms.
  2. Use powertop to reduce power draw.
  3. If you are a road warrior, try charging when you are not using laptop to reduce heat. Likewise a slower charger will do less damage.
    3a. It seems discharging from 80-40% once is less stressful than discharging 80-60% twice.
  4. Don't let your battery level fall below 20%
  5. Try keep the laptop comfortably cool. Leaving it on in a backpack causes heat buildup.
  6. Slow charging and/or using a larger battery causes less wear for a similar amount of usage, because it helps with the above.

(Where numbers are used above, they are indicative only.)

davidgo

Posted 2019-07-30T16:25:51.140

Reputation: 49 152

63Because Linux is heavier on battery then Windows. Do you have any reference which proves this? I think there are tons of factors that get involved here, apart from the OS kernel itself.. – Xtreme Biker – 2019-07-31T05:59:09.270

2

@XtremeBiker there are indeed a ton of factors, and I am confident a well tuned Linux system can be tuned to perform similarly to a Windows system. Have a look at https://www.reddit.com/r/linux/comments/3mnnso/will_linux_ever_have_great_battery_life_on_laptops/ (I was at the LinuxConf event where this took place, and I run Linux on my laptops and desktop). Importantly, no one tells you to run Powertop or TLP when you get a Linux laptop. Windows comes preinstalled and tweeked so you don't need to.

– davidgo – 2019-07-31T06:24:00.843

34Why would Linux be heavier on a battery then Windows ? In my personal experience, Laptop batteries have performed better - lasting longer - with Linux running, compared to Windows. – Robert Riedl – 2019-07-31T07:31:32.043

my laptop BIOS is set to stop charging at 90%, and start charging at <=80%, that battery has been holding up great since mid-2017 now :) (2019-07-31 as of writing) – hanshenrik – 2019-07-31T10:17:35.597

@Robert Riedl: Linux keeps the CPU busy much more than Windows → higher internal temperature → higher battery temperature → lower battery lifetime (?). Also, if running primarily on battery (not the charger), the higher power consumption also increases the number of charge cycles, also lowering battery lifetime. – Peter Mortensen – 2019-07-31T14:19:03.933

17@PeterMortensen, but why would Linux keep the CPU busy ? Or rather: Why would it keep the CPU more busy than any other OS (BSD, Windows,..) ? I, as a Linux User, have made the opposite experience. But that's probably because I tinker with the OS a lot to try and get the best out of it. I bet someone else would have the same experience with their favourite OS... this $other_OS is heavier on battery then $my_favorite_OS is probably highly biased... – Robert Riedl – 2019-07-31T14:25:22.847

@Robert Riedl: Not biased, this is just what I (and others - but they did not provide a solution) have observed (on a small nettop with dual boot). The exterior of the nettop is much warmer running Linux than when running Windows 7. I would be very interested in what you have done. E.g., do you have some specific references you can point to to solve this problem? – Peter Mortensen – 2019-07-31T14:28:59.263

This was using stock versions of Ubuntu and Windows. The answer on Ask Ubuntu (I can't find the references right now, but I have them somewhere) was essentially that nothing could be done about it.

– Peter Mortensen – 2019-07-31T14:42:34.257

1@PeterMortensen - oh god I did so much to my nettop... one special thing that comes to mind, is that I use the webcam as light sensor (since the nettop does not have one) to automatically adjust the background light. Also, regarding temperatures: Maybe under Linux the fans were not spinning as much ? – Robert Riedl – 2019-07-31T14:46:41.933

1

@PeterMortensen, there is a great amount of practical information on how to get better battery performance on Linux on ArchWiki

– Robert Riedl – 2019-07-31T15:01:51.823

14Usually the problem is not because Linux keeps the CPU working more than Windows -- it's pretty much everything else. Storage devices are kept online longer, wifi isn't optimized and so on. The CPU is the least sinful of all your devices. – Clearer – 2019-07-31T16:53:57.163

or in other words, people care more about Windows battery life than Linux battery life, so Windows gets all the fixes and tweaks to make it use less power. – user253751 – 2019-08-01T00:53:28.773

15

Good answer by davidgo, and that should be your starting point for understanding and minimizing the issue. But the wording of the question implies that you're thinking about this in a slightly wrong way, and I'll focus on that aspect.

You keep referring to Ubuntu "decreasing" battery life, and that's not really an appropriate way to look at it. Say one OS is better than another at optimizing battery life. If you use the better one as a baseline, the other OS won't be as good in that respect, so it kinda looks like battery life is "decreased" in relative terms.

But really, "batteries decrease battery life". When batteries are a source of power, any battery is a disposable item. Everything you do or don't do affects battery life a little. davidgo's answer lists the major factors.

If one OS uses a little more power than another, that might lead to recharging more often. So some factors can affect other factors. But if you get the daily run time you need even with the OS that uses more power, you might recharge at the same frequency and from a discharge level that, for practical purposes, is in the same range. So your usage pattern may be a bigger factor than the OS.

The point is that batteries have a finite life. There are things you can do to optimize and extend the life a little. To the extent it's practical to do those things, they can't hurt. But finite battery life is a characteristic of operating from batteries. In the scheme of things, a few months difference in battery life doesn't represent a big cost. It doesn't make sense to let it drive important decisions.

Let's assume one OS is not as good as the other at optimizing battery life so it costs you a little more over time for battery replacement. You own the computer because it is a tool to help you accomplish things important to you. People spend extra money to get a keyboard or mouse that they can use more efficiently, or a high-resolution monitor so they can see more of their work at once. The same applies to the OS.

You pick an OS because of what it allows you to do, and things like the user interface that make it easier for you to get your work done. You don't pick it because one will save you a few dollars every couple of years on battery replacement. For that matter, if you are comparing Windows and Ubuntu, Windows costs money and Ubuntu is free. So if Windows saves you a few dollars on battery replacement, you haven't saved money, you paid for that in advance.

Ubuntu doesn't "reduce" battery life. It might yield a slightly different life. But as they say, "that's life".

fixer1234

Posted 2019-07-30T16:25:51.140

Reputation: 24 254

You are right .My most of work is on Ubuntu and i like it .I will not remove it for saving few dollars :) – None – 2019-07-31T04:32:36.330

1

No.

How fast the capacity of a battery drops over usage cycles is largely independent of the software running on the laptop. It mostly depends on amount of charge cycles, average relative charge amount, temperature, battery controller (which is not part of the operating system) and a bunch of other factors.

Nobody

Posted 2019-07-30T16:25:51.140

Reputation: 239

9This is wrong because Typicsl Linux (but not Android) is way heavier on battery then Windows because vendors optimise for Windows and ignore Linux. This is well documented, and unsurprisingly the experience of the OP as stated. – davidgo – 2019-07-30T20:11:15.797

7No it's not wrong; 1) Linux isn't way heavier on battery than Windows. If you have some piece of hardware where power savings aren't supported yet then yes; otherwise no. 2) draining the battery faster or slower before you charge it back up should not affect the lifetime of the battery. Unfortunately, the main culprit for batteries that wear out that fast is fast charging, which the end user typically has no control over. (I.e. if it took 8 hours to charge the battery instead of 1-2, the battery would last through many more charge cycles.) – user153822 – 2019-07-31T06:52:51.387

5@user153822 You should research before you make statements. 1. Power saving is nor a binary state of supported or not - its nuanced tradeoffs and design parameters. 2. The faster you drain the battery the more heat and faster it dies, also the more charge/discharge and/or greater discharge depth. 3. At last something on which we do not totally disagree, although speed of charge is only 1 part of the picture, and partly mitigated by slowing down as battery gets fuller. – davidgo – 2019-07-31T09:15:56.697

3@davidgo Power saving might not be binary, but the important part has like two or three bits which are suspend, hibernate and backlight and if those all work then Linux can easily be better than Windows. If those don't work, I don't know why you would willingly buy that laptop. – Nobody – 2019-07-31T09:19:36.957

5

@nobody that is a gross (to the point of being incorrect) oversimplification. Skim through https://m.youtube.com/watch?v=SMKTgXIPCLA to hear a Linux expert on the nuances. (Also, hibernate/suspend dont define hiw long you can actually do work in a laptop)

– davidgo – 2019-07-31T09:25:58.320

3@davidgo, power management, as illustrated by the link you shared, is basically just switching devices off and reducing performance/frequency as much as possible, with as little impact for the user as possible - which works great under Linux AFAIK. – Robert Riedl – 2019-07-31T14:43:04.523

4"... Linux ... is way heavier on battery then Windows ... This is well documented, ..." - If it's well-documented, can you provide sources? (I watched the video you linked in a later comment; it does provide some nice insights in the nuances and complications of power management, but there's nothing in there comparing OSses.) – marcelm – 2019-07-31T20:16:16.677

@marcelm Lots of places https://help.ubuntu.com/stable/ubuntu-help/power-batterywindows.html.en - also see https://www.youtube.com/watch?v=ByVdH92YrCU (4:17 vs 2:44 for same conditions). It is interesting though that as time has progressed, the situation has improved drastically - If you look at https://unix.stackexchange.com/questions/119606/why-does-linux-have-poor-battery-life-by-default-compared-to-windows this was accepted as fact - but I can now find plenty of anecdotes with Linux being faster then Windows, so times they are achanging!

– davidgo – 2019-08-01T00:23:33.490

1@RobertRiedl My new laptop's battery life doubled (4 hours -> 8 hours) when I installed bumblebee. That's because now, the GPU is switched off when it's not needed. Previously, it was unused, but still powered up. Who knows how many other bits of hardware my laptop has that are like that? Windows knows, because HP tested their laptop with Windows. Linux didn't until I happened to install the right bit of software. – user253751 – 2019-08-01T00:55:52.130

@user20574, that is kind of my point. For every OS you have to install the right software tools, spend some time in the settings... compare it with your GPU: If you install a plain Windows, you GPU might perform decent - maybe better than in a plain Ubuntu. But once you install the right software and drivers in Windows and Linux, performance should be on par on both. – Robert Riedl – 2019-08-01T05:30:11.557

1@RobertRiedl Your laptop comes with those tools on Windows. On Linux, you might not even know you have the piece of hardware in question. Or that it has the power-saving modes in question. – user253751 – 2019-08-01T05:33:26.313

@user20574 - no it doesn't. A plain Windows install is functional, mostly, but needs additional drivers. Especially with notebooks you need to install the software/drivers from the manufacturer. – Robert Riedl – 2019-08-01T05:43:41.437

1@RobertRiedl When was the last time you used Windows? nVidia definitely installs its own drivers as part of Windows Update, for example. In notebooks, drivers are usually preinstalled (part of the vendors partition). Manually installing any drivers is quite rare nowadays. – Luaan – 2019-08-01T08:26:18.193

1@Luaan, I have to use Windows as my office device. You expect every Laptop to be pre-installed ?? That is not standard. I think its better to assume a basic install. Currently and for the past years, we have been using HP Elitebooks. Every driver, from chipset to docking station, has to be installed from the HP homepage or via the HP software package installer. Almost nothing comes from windows update. Sure you have basic functionality initally, but that's it. – Robert Riedl – 2019-08-01T08:44:34.363

1@RobertRiedel and yet the HP Elitebooks my place of work insisted on had all the drivers and a LOT of extra HP crap to boot straight out the box. Im with Luaan on this one.If it.comes.with Windows 10 it most likely ships with drivers - its a lot easier to package drivers.with the install then provide helpdesk to acquire them. – davidgo – 2019-08-01T11:02:59.750

@davidgo, I guess we are then comparing apples and oranges ? I guess you could have a look at Dell's line of laptops, that come preinstalled with Linux. They probably perform better than an initial install as well. Also, I just read the links ... the Wiki entry seems very old ( [..]If your computer has a variable speed processor[...]) as is the question on unix.stackexchange. There have been leaps and bounds on Linux driver integration, because the AAA manufacturers have (currently) warmed to Linux and open-source. There is no documented problem with energy management in the last years. – Robert Riedl – 2019-08-01T15:58:05.740

0

@davidgo , well the machines i've had got much better battery life in ubuntu than windows (especially with 4.18 kernel or newer.). I just didn't want to sound like some fanboi . Linux currently has a design that allows for more time in low power mode, and typical linux distro has fewer background scans and junk than windows allowing for lower power usage. But then if some driver (especially video driver) doesn't support going into low power mode then power use is nice and high. It pretty much is a binary state in these cases, like a gpu that starts up at 700mhz but supports 150mhz (but the driver doesn't) or (in the distant past) when a sata or usb controller wouldn't support the low power states on the ports (like almost turned off but can still detect when something is plugged in to power it back up.)

user153822

Posted 2019-07-30T16:25:51.140

Reputation: 61