case "$1" in
hibernate|suspend)
# Stopping is not required.
;;
thaw|resume)
# In background.
( sleep 10 ; echo -n "0" > /sys/devices/virtual/thermal/cooling_device1/cur_state ) &
;;
*) exit $NA
;;
esac
--------------------------------------
I'm using a laptop HP6735S, with ubuntu maverick:
uname -a
Linux gaviota-maverick 2.6.35-30-generic #61-Ubuntu SMP Tue Oct 11 15:29:15 UTC 2011 i686 GNU/Linux
Combining all previous posts, i made this file /etc/pm/ sleep.d/ 99fancontrol. sh that worked perfectly for me:
------- ------- ------- ------- ------- --- /bugs.launchpad .net/ubuntu/ +source/ linux-source- 2.6.17/ +bug/77370
#!/bin/sh
#
# Blocca le ventole.
# ripreso da: https:/
case "$1" in virtual/ thermal/ cooling_ device1/ cur_state ) &
hibernate|suspend)
# Stopping is not required.
;;
thaw|resume)
# In background.
( sleep 10 ; echo -n "0" > /sys/devices/
;;
*) exit $NA
;;
esac
------- ------- ------- ------- ------- ---
I'm using a laptop HP6735S, with ubuntu maverick:
uname -a
Linux gaviota-maverick 2.6.35-30-generic #61-Ubuntu SMP Tue Oct 11 15:29:15 UTC 2011 i686 GNU/Linux
PS: remember to chmod 755 the newly created file