public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Len Brown <lenb@kernel.org>
Cc: ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Alexey Starikovskiy <astarikovskiy@suse.de>
Subject: Fan resume not working on nx6325 without userland assistance
Date: Tue, 22 Jan 2008 02:41:42 +0100	[thread overview]
Message-ID: <200801220241.43230.rjw@sisk.pl> (raw)

Hi,

It turns out that the following script (from openSUSE 10.3):

#############################################################
# triggers the ACPI fan(s) after resume. Since ACPI drivers
# have no suspend support, this is sometimes necessary.
# see http://article.gmane.org/gmane.linux.acpi.devel/16643
kick-fan()
{
        local FAN DUMMY STATE
        for FAN in /proc/acpi/fan/*/state; do
                [ ! -e $FAN ] && continue
                read DUMMY STATE < $FAN
                if [ "$STATE" = "on" ]; then
                        echo "kicking $FAN"
                        echo -n 3 > $FAN
                        echo -n 0 > $FAN
                fi
        done
}

case $1 in
        thaw|resume)
                kick-fan
                ;;
esac

is necessary to make the fan behave appropriately after a resume from RAM
(I haven't checked resume from hibernation, but I guess the same thing happens)
on HP nx6325 with 2.6.24-rc8 (and with previous kernels probably too).

It wasn't needed at one point, so something has regressed.  Sigh.

Greetings,
Rafael

             reply	other threads:[~2008-01-22  1:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22  1:41 Rafael J. Wysocki [this message]
2008-01-22 17:14 ` Fan resume not working on nx6325 without userland assistance Rafael J. Wysocki
2008-01-22 17:40   ` Alexey Starikovskiy
2008-01-22 20:56     ` Rafael J. Wysocki
2008-01-23 15:02       ` Rafael J. Wysocki

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=200801220241.43230.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=astarikovskiy@suse.de \
    --cc=lenb@kernel.org \
    --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