public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Len Brown <lenb@kernel.org>,
	ibm-acpi-devel@lists.sourceforge.net, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 09/13] ACPI: thinkpad-acpi: handle HKEY thermal and battery alarms
Date: Fri, 16 Jan 2009 01:06:52 -0200	[thread overview]
Message-ID: <20090116030652.GA16322@khazad-dum.debian.net> (raw)
In-Reply-To: <20090115195110.GA4200@srcf.ucam.org>

On Thu, 15 Jan 2009, Matthew Garrett wrote:
> On Thu, Jan 15, 2009 at 01:45:19PM -0500, Len Brown wrote:
> > While useful to a techie, it is hard to imagine that these will
> > become useful to a generic Linux GUI some day that is used by
> > regular people.
> 
> I think it makes sense to tie them to uevents on the appropriate generic 
> devices. Even if most hardware doesn't generate them, the ability to pop 
> up a notification telling the user that the firmware thinks their system 
> is too hot is useful.

Well, it should actually be useful even without the uevents... as long as
the desktop environments are actually smart enough to notice the kernel
really wants to tell the user something when it outputs CRITICAL, ALERT and
EMERGENCY level messages...

Anyway, I actually asked Lenovo what we should do when we get such alarms.

For the non-critical alarms, they suggest warning the user that he needs to
take IMMEDIATE action (save work and suspend, hibernate or power down).

For the critical alarms, the operating system is to initate an immediate,
forced S3 or S4 suspend.  There is real risk of hardware damage if the
machine is not powered down to S3 or S4 levels within a few seconds (thermal
alarm), or of data loss (power failure imminent).

Since those are two very generic and proper responses to two very generic
and proper alarms, I am all for exporting them over uevents... in a generic
way.  That's why I didn't add thinkpad-acpi-specific uevents for them.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

      reply	other threads:[~2009-01-16  3:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11  5:01 [PATCH 09/13] ACPI: thinkpad-acpi: handle HKEY thermal and battery alarms Henrique de Moraes Holschuh
2009-01-15 18:45 ` Len Brown
2009-01-15 19:51   ` Matthew Garrett
2009-01-16  3:06     ` Henrique de Moraes Holschuh [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=20090116030652.GA16322@khazad-dum.debian.net \
    --to=hmh@hmh.eng.br \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.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