After I got my TO router in November 2016 and started to play little bit with it, I noticed peculiar line in crontab:
*/5 * * * * /sbin/fan_ctrl.sh
I wondered for what there is a script for fan in fanless router, but after some time I forget about it… (maybe it was some relict from Turris 1x?)
Recently, following some discussion on the Turris forum, I remembered this peculiarity and started investigate it.
As far as I understand it, this script is checking some temperature sensors, and, if such temperature exceeds given limit, starts fan to cool protected device.
Sensors in question are hwmon[12]
CPU_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon2/temp1_input`
DDR_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input`
WIFI_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp2_input`
Unfortunately, looking in /sys/class/hwmon/ one sees hwmon0 only, no hwmon[12].
Following above mentioned logic using hwmon0, ie. asking value of
TEMP_CPU=`cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input`
it passes value which corresponds to value of /etc/thermometer, thus I wonder whether there are another two thermal sensors hwmon[12]
Could anybody enlighten me? TIA.