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.
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)
thaw|resume)
if [ -f "$x/state" ] && [ "`grep on $x/state`" ]; then
echo -n 3 > $x/state;
echo -n 0 > $x/state;
fi
done
if [ -f "$x/state" ] && [ "`grep off $x/state`" ]; then
echo -n 0 > $x/state;
echo -n 3 > $x/state;
fi
done
# Stopping is not required.
;;
# sprav to
for x in /proc/acpi/fan/*; do
for x in /proc/acpi/fan/*; do
;;
*) 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.