I have a laptop where the battery has reached a state of being pretty much useless. Neither Windows 7 nor Ubuntu 14.04 is able to correctly estimate the actual power percentages or lifetime of the battery, which results in sudden power loss somewhere around 10 minutes after the charger is unplugged.
I have tried to recalibrate the battery, but with no luck. That however is besides the point.
What I'd like to know, is the following:
Is it possible to make it so that my laptop hibernates either instantly or shortly after the charger is unplugged, and if so, how? I've tried messing around with the power settings, but so far, I've only succeeded in making it go into standby, and not hibernate, after a minute.
I'd firstly like to know how this is done on Windows 7, but explanations for doing the same on Ubuntu 14.04 are welcome as well.