Just try what is sufficient. I have sleep 1. Sleep interval is in seconds. To speed up the resume write something like:
for x in /proc/acpi/fan/*; do if [ -f "$x/state" ] && [ "`grep off $x/state`" ]; then echo "echo -n 0 > $x/state;" >> /tmp/fanstate0 echo "echo -n 3 > $x/state;" >> /tmp/fanstate3 fi done
sh /tmp/fanstate0
sleep 1
sh /tmp/fanstate3
Just try what is sufficient. I have sleep 1. Sleep interval is in seconds. To speed up the resume write something like:
for x in /proc/acpi/fan/*; do
if [ -f "$x/state" ] && [ "`grep off $x/state`" ]; then
echo "echo -n 0 > $x/state;" >> /tmp/fanstate0
echo "echo -n 3 > $x/state;" >> /tmp/fanstate3
fi
done
sh /tmp/fanstate0
sleep 1
sh /tmp/fanstate3
rm /tmp/fanstate0
rm /tmp/fanstate3