Comment 28 for bug 77370

Revision history for this message
vasek125 (vasek) wrote :

I fixed this problem in my hp 6730b by creating /etc/pm/sleep.d/99funguj.

#!/bin/sh
#
# 99funguj: sprav co se da

case "$1" in
        hibernate|suspend)
                # Stopping is not required.
                ;;
        thaw|resume)
                # sprav to
                for x in /proc/acpi/fan/*; do
                    if [ -f "$x/state" ] && [ "`grep on $x/state`" ]; then
                        echo -n 3 > $x/state;
                        echo -n 0 > $x/state;
                    fi
                done
                for x in /proc/acpi/fan/*; do
                    if [ -f "$x/state" ] && [ "`grep off $x/state`" ]; then
                        echo -n 0 > $x/state;
                        echo -n 3 > $x/state;
                    fi
                done
                ;;
        *) exit $NA
                ;;
esac

I found that rewriting values in state files fix this problem. But ubuntu uses pm-utils so /etc/acpi/resume.d/72-acpi-pain.sh does not run.