Try putting this in /etc/acpi/events/unplugged
- Code: Select all
The first line matches on an ACPI event sent when the AC adaptor is unplugged, the action should be set to whatever command your system needs to initiate hibernation.
This is only a very temporary fix though, soon your battery will last even less time, or none at all, as mine recently started doing.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)