Why does software upgrade need battery?

My laptop says it cannot do software updates without the battery (I removed the battery last year) - does it need some momentary electrical power that cable cannot provide? It’s always plugged into wall power.

To help guarantee uninterrupted power.

There are parts of the upgrade process which COULD be very difficult to recover from, should the process be interrupted.

It’s done to ensure that the process can complete without a risk of interruption through the battery going dead. They figure since it’s a laptop, there must be a battery and it must have sufficient charge. They don’t bother with the same code on a desktop.

I chalk it up to lazy coding or they figure if your battery is missing or bad and won’t hold a charge it must be out of warranty anyway and not their problem.

I have a phone that literally will not download updates unless connected to wifi even if it’s under 100MB despite the fact my current provider has unlimited data. Very annoying when I’m at work and am constantly getting pester updates urging me to connect to wifi every 5 minutes. Similarly it refuses to install patches unless I’m connected to a power source even if it’s at 100% power. Chalk it up to manufacturers afraid of the 1% of idiots who attempt the updates at 10% power and then brick their phones/go over their data limits.

The laptop should be able to do true software updates (ie operating system updates) without a battery. Those are transactional updates from which rollback should be possible in the event of an interruption. But as mentioned maybe whoever coded this for your laptop used a lazy method and hard-coded the battery requirement.

By contrast a firmware update involves much lower level changes to specialized hardware storage, e.g, microcode store. Those changes are not transactional since that would require 2x the microcode store to hold the old and new versions. That storage is expensive and would only be useful for updates. Thus many devices (including laptops) try to mitigate this by requiring constant power during the update.

In theory a failed firmware update could revert to a small, primitive boot loader which could re-try the update. In some devices this is available but not always.

What kind of laptop do you have? What kind of updates are these–Windows, or the laptop manufacturer’s, or third-party software? I have devices that recommend that you plug it into wall power to do OS upgrades but none of them require it. It seems like running down the battery is much higher risk than the wall current stopping. I have never run a laptop with no battery so I don’t know if what you are seeing is normal.

Some laptops nowadays don’t even work without a battery. At peak performance they need both the battery and AC adapter plugged in to provide full power to the CPU. Thus, running it at full tilt for a long period of time (such as transcoding video files) can actually drain the battery even if it’s plugged in. Your laptop appears not to be one like this, but the software updater probably has no way to know for sure so it just checks if it’s a laptop, and if it is, then it must have battery installed with a sufficient charge to reduce the risk of interruption.

Most laptops are like this, in fact. Removing the battery causes the processor to clock down even under low to moderate load. You can see this with a tool like CPU-Z or HWiNFO. Why is the battery removed at all? Even if it’s worn out and doesn’t hold a significant charge, there’s no reason to remove it.

Nowadays? Years ago I started buying junker “laptops” at garage sales and such just to see what’s involved in repairing them. (Ones with like 8086 processors and such.) A lot of the times a working battery was a must. Lots of fun faking the thing into thinking there was a real battery attached.

On the other end of the scale, years back I remember seeing a laptop that had a single bay for both the battery and the floppy drive. If you wanted to copy anything to or from a floppy, you had to plug the machine in.