[Pm-utils] sometimes on resume, fan very loud until power off

Stefan Seyfried seife at suse.de
Tue Nov 21 11:24:13 PST 2006


On Tue, Nov 21, 2006 at 10:18:20AM -0500, John H. wrote:
> Sometimes on resume from suspend to ram on my dell e1505, the fan is
> VERY loud until I power off computer.

what kernel version?

does this hook maybe help?
-------/etc/pm/hooks/80acpi-fan-------
#!/bin/bash
# mostly taken from the powersave project
#
# 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

exit 0
-------------------------------------------

but looking at the kernel code, this does not seem to be necessary
in 2.6.18 and later (that's why i did not send this hook upstream).
-- 
Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg  | "Well, surrounding them's out." 


More information about the Pm-utils mailing list