public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Jon Dufresne <jdufresne@vision-gaming.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: ACPI and power failure
Date: Fri, 16 Feb 2007 12:59:54 -0500	[thread overview]
Message-ID: <200702161259.54485.lenb@kernel.org> (raw)
In-Reply-To: <45D5E55D.4000802@vision-gaming.com>

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

      reply	other threads:[~2007-02-16 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 17:09 ACPI and power failure Jon Dufresne
2007-02-16 17:59 ` Len Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200702161259.54485.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=jdufresne@vision-gaming.com \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox