[ltp] Resume from S3 if battery runs out

Tino Keitel linux-thinkpad@linux-thinkpad.org
Fri, 28 Jul 2006 07:38:26 +0200


On Thu, Jul 27, 2006 at 23:35:09 +0200, Daniel Maier wrote:
> Hi,
> 
> after playing with /proc/acpi/alarm I am setting the wakeup time at
> suspend to now + 60min and on resume I check wether the current time
> is now + 60min + some tolerance. This is done to avoid running out
> of battery while in suspend to ram.
> 
> Actually, this is a bad hack, because I would also have to check
> on suspend wether the battery can give power for s3 for 60min and a
> resume and a suspend to disk. There is also a problem with resuming
> manually after 60min.
> 
> So the question is, if it is possible to resume if the battery runs
> out?

Not really. But you could use suspend to disk and power down with S3.
That way, you can always resume from disk when the battery ran out
during S3.

Regards,
Tino