public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Fan resume not working on nx6325 without userland assistance
@ 2008-01-22  1:41 Rafael J. Wysocki
  2008-01-22 17:14 ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2008-01-22  1:41 UTC (permalink / raw)
  To: Len Brown; +Cc: ACPI Devel Maling List, Alexey Starikovskiy

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-23 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-22  1:41 Fan resume not working on nx6325 without userland assistance Rafael J. Wysocki
2008-01-22 17:14 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox