ACPI and power failure

Jon Dufresne
2007-02-16T17:29:11Z

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