On Tue, 2019-08-06 at 19:59 +0930, Tim via users wrote:
On Mon, 2019-08-05 at 14:53 -0400, Robert Moskowitz wrote:
> I have to think if I want to facilitate hibernate when battery runs
> out, like on a long flight with no working AC. Or when I am just not
> paying attention to my power situation.
I would have thought the ideal way for it to operate is when you
suspend, it *also* dumps to swap. That way, when you unsuspend it
springs to life really quickly. But, if your power had failed while
suspended, it could unhibernate from swap.
I don't know if it actually works that way, though.
That would mean having enough available swap, which is often not the
case. When I experimented with hibernate a while back I had to increase
my swap space (I have 16GB of RAM) to get it to work. Of course it
could fall back to not dumping to swap when in 'suspend' mode, but that
might violate the Principle Of Least Astonishment.
poc