HP 6730B Fan Issue Resuming from suspend

https://www.michelebologna.net/2015/hp-6730b-and-fan-at-full-speed-after-suspend-fedora-ubuntu-opensuse/ Does not work for Centos 7, use the following instead
[root@ ~]# cat /usr/lib/systemd/system-sleep/99fancontrol.sh 
#!/bin/bash
echo $1 > /tmp/x
case "$1" in
hibernate|suspend|hybrid-sleep)
# Stopping is not required.
;;
post)
# In background.
ls /sys/devices/virtual/thermal/cooling_device*/cur_state | while read A; do echo 1 > $A; echo 0 > $A; done
;;
*) exit $NA
;;
esac
systemctl status systemd-suspend.service and man systemd-suspend.service

No comments: