Hi all,
I have been having an issue and was wondering if you guys would be able to help... I know it's effectively unpaid work so any/all help is greatly appreciated :)
I had been using Glorious1's script for fan control on my FreeNAS box quite happily, but after some time a few factors put me in a position where I had to leave FreeBSD and thus leave FreeNAS.
I'm currently running Proxmox, which runs on Debian with some custom Ubuntu sourced coding for the zfs stuff. I had originally tried re-tooling Glorious1's script for Debian/Ubuntu, but my coding skills are extremely rusty & the command in FreeBSD to get the list of available drives doesn't exist in Debian/Ubuntu. I had been trying to get an alternative method to work, but I found your perl script which was modified with a pretty simply way of getting the dev IDs of the hard disks: you enter them in the file... (I was considering doing this for Glorious1's code & if I can't get this working I might have to try that)
https://jp-powers.com/2017/07/08/fa...permicro-motherboards-on-ubuntu-server-16-04/
(the file you download from the site doesn't have a semicolon after the log level which I corrected so that's not it, FYI)
my case fans aren't all the same type & I didn't want to use a bunch of splitters so I have my fan zones flipped around (FANA = cpu, FAN1-4 = case/hdd) & have made the appropriate changes in the script to reflect that.
The fans are responding to HDD temps properly, however the CPU fan is not being controlled at all (I have the script set to "1" so that it controls the CPU and HDD temps). I've been trying to debug it and figure out what's wrong, but I can't seem to figure it out.
Which leads me here... I'm including a screen shot of the log created by the script (I have it set to level 4 logging) & a screen grab of the service status.
The script is clearly pulling the temp of the processor correctly, both the individual cores & as a single 'max temp core' value, so I don't think that is the problem.
Again, any help would be greatly appreciated. I would really like to get this sorted out so I can throttle my cpu above 20%....
(I noticed that there have been updates to the script, dunno exactly what they have been, but the one on the site seems to be from about a year ago)
Thank you very much
edit:
so I've been going through the script & I have made a couple changes that I hoped would work, but to no avail:
line 283: change "while()" to "while($cpu_temp_control = 1)"
line 293-ish: added "set_fan_zone_level( $cpu_fan_zone, $cpu_fan_level );" before "$last_fan_level_change_time = time;"
(since that "if" command basically just re-set the fan change time and didn't actually change the fan speed as far as I could tell)
The issues is the CPU temp is being checked when the script is started and never again after that. I'm not sure where the loop goes bad, but at some point the script just sticks to the HDs