After resuming from suspend fan is working full speed. Running this as sudo fixes it: for x in /sys/class/thermal/cooling_device*/cur_state; do echo 0 > $x;.
Where should I put the hook script in order to run on resume? I tried /lib/systemd/system-sleep and /etc/pm/sleep.d to no avail.