public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI and power failure
@ 2007-02-16 17:09 Jon Dufresne
  2007-02-16 17:59 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Dufresne @ 2007-02-16 17:09 UTC (permalink / raw)
  To: linux-acpi

Hi,

Is there anything ACPI related that deals with a AC power fail in the 
system?

I am developing an embedded system that has very limited writes to a 
flash device, other than that all file systems are read only. I want to 
turn this device on and off with one main switch that will cut the AC 
power. Turning it on this way is not a problem. When I turn it off I am 
a bit worried that if in the middle of a write the r/w file system may 
be corrupted. I am curious if there is anything ACPI related that can 
detect an AC power fail and in the 1-5 ms before DC power is lost 
quickly do the bare essentials of house keeping to prevent fs corruption.

Any input on this would be helpful.

Thanks,
Jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ACPI and power failure
  2007-02-16 17:09 ACPI and power failure Jon Dufresne
@ 2007-02-16 17:59 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2007-02-16 17:59 UTC (permalink / raw)
  To: Jon Dufresne; +Cc: linux-acpi

On Friday 16 February 2007 12:09, Jon Dufresne wrote:
> Hi,
> 
> Is there anything ACPI related that deals with a AC power fail in the 
> system?

nope, not that i'm aware of.

Often the system firmware can detect a powerfail vs graceful poweroff
and give you the option (eg. via BIOS SETUP) when the power is restored
to either stay off, power on, or return to the whatever the state
was before the power fail.

This, however, is a platform feature that is not visible to ACPI
or the OS.

-Len

> I am developing an embedded system that has very limited writes to a 
> flash device, other than that all file systems are read only. I want to 
> turn this device on and off with one main switch that will cut the AC 
> power. Turning it on this way is not a problem. When I turn it off I am 
> a bit worried that if in the middle of a write the r/w file system may 
> be corrupted. I am curious if there is anything ACPI related that can 
> detect an AC power fail and in the 1-5 ms before DC power is lost 
> quickly do the bare essentials of house keeping to prevent fs corruption.
> 
> Any input on this would be helpful.
> 
> Thanks,
> Jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-16 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-16 17:09 ACPI and power failure Jon Dufresne
2007-02-16 17:59 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox