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 - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html