Got a new battery for my laptop, and the laptop with the new battery shuts down a few seconds after unplugging the charger. This is not the ubuntu shut down, but a hard one, like what would have happened to a desktop if it was unplugged from power.
Additional facts:
The bios recognizes the new battery, and can run its calibrate on it, to drain it. Draining takes about 2 hours, with fan and screen running, so the battery is not outright disfunctional.
It seems that shut down happens on SSD access. I can boot, only on the battery, a clean Ubuntu 16.04 from usb in "live" mode, and it would run until I'd click on the SSD folder to see what's inside. Then it would shut down.
The battery supplier replaced the battery two times, all three batteries have the same problem. No problem with the original battery.
The question is - can this be an Ubuntu problem, perhaps the OS somehow not getting along with the new battery's controller?
Ubuntu: 14.04, Laptop: Samsung np900x.
Update: There is a BIOS testing utility, as described here. It reports many ACPI related errors - log. Not yet sure what to do about them.
cat /var/log/syslog
at paste.ubuntu.com ? – You'reAGitForNotUsingGit Apr 1 '17 at 10:47