Skip to content

Instantly share code, notes, and snippets.

@diffficult
Created April 16, 2017 07:42
Show Gist options
  • Save diffficult/730dc2b018f4b1b6da46c3645758c235 to your computer and use it in GitHub Desktop.
Save diffficult/730dc2b018f4b1b6da46c3645758c235 to your computer and use it in GitHub Desktop.
Fan control notes for WD My Cloud EX2 Ultra
~ # fan_control -?
*** Fan Cobtrol Help Message ***
fan_control b c: for NAS booting
fan_control 0 d : [auto: low/medium/high/max] open debug msg
fan_control 0 c : [auto: low/medium/high/max] close debug msg
fan_control -L [value] : set Lower (THYST)
fan_control -H [value] : set Upper(TOS)
fan_control -g 0 : get current temperature
fan_control -g 1 : get Lower temperature
fan_control -g 2 : get Upper temperature
fan_control -g 3 : get fan state
fan_control -g 4 : get fan rpm
fan_control -f 0 : set fan stop
fan_control -f 1 : set fan rpm4000
fan_control -f 2 : set fan rpm5000
fan_control -f 3 : set fan rpm6000
fan_control -f 4 : set fan rpm7000
fan_control -f 5 : set fan rpm8000
fan_control -f 6 : set fan rpm9000
The command "fan_control -f 3" can manually turn it on. Its noise and air flow can be easily detected. The larger the number, the faster is the fan speed. The command "fan_control -f 0" can manually turn it off. The fan is working !!!
The commands "fan_control -g 0" would give the hard drive temperature. "fan_control -g 4" give the fan RPM. The figures are the same as in the dashboard.
Using these commands, I have managed to bring down the temperature from 55 back to 45 manually.
So the problem is not in the fan but in the automatic temperature control. Perhaps some DIY people can write a background monitor program to check the temperature and change the fan speed periodically.
Another finding is a file called /etc/fan_temperature.txt Its contents is here:
~ # cat /etc/fan_temperature.txt
TEMPERATURE_STOP = "39"
TEMPERATURE_LOW = "45"
TEMPERATURE_HIGH = "49
@migpprmp
Copy link

I've seen many users recommend changing the fan_temperature.txt file. I'm not an experienced person and I don't know how to do it. Is there a video where you can learn to change the file or even another solution? I have the WD open and I guarantee that with the CPU temperature at 85C and HDD at 52C the FAN is off. Sometimes she calls. If you test the system, the FAN starts and says it is ok. Even restarting the FAN it starts as much as normal. Thanks

@ejaquay
Copy link

ejaquay commented Sep 27, 2021

Here is a short script that prints drive temps
------------------------------- cut --------------------------
#!/bin/sh

print_drive_temp() {
echo -n "$1 Temperature: "
smartctl -d ata -A $1 |
awk '{if ($2 == "Temperature_Celsius") print $10}'
}
print_drive_temp /dev/sda
print_drive_temp /dev/sdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment