Found that this works even better, now the fan acts as before suspend:
Create the file ”/etc/pm/sleep.d/99fancontrol.sh”, insert the code below and chmod 755 it.
Script:
#!/bin/sh # #
case "$1" in hibernate|suspend) # Stopping is not required. ;; thaw|resume) # In background. echo -n 0 > /sys/devices/virtual/thermal/cooling_device0/cur_state; sleep 2 echo -n 0 > /sys/devices/virtual/thermal/cooling_device1/cur_state; sleep 2 echo -n 0 > /sys/devices/virtual/thermal/cooling_device2/cur_state;
;; *) exit $NA ;; esac
Found that this works even better, now the fan acts as before suspend:
Create the file ”/etc/pm/ sleep.d/ 99fancontrol. sh”, insert the code below and chmod 755 it.
Script:
#!/bin/sh
#
#
case "$1" in virtual/ thermal/ cooling_ device0/ cur_state; virtual/ thermal/ cooling_ device1/ cur_state; virtual/ thermal/ cooling_ device2/ cur_state;
hibernate|suspend)
# Stopping is not required.
;;
thaw|resume)
# In background.
echo -n 0 > /sys/devices/
sleep 2
echo -n 0 > /sys/devices/
sleep 2
echo -n 0 > /sys/devices/
;;
*) exit $NA
;;
esac