edddeduck / QNAP_Fan_Control

Basic Fan Control Script for QNAP Devices. This replaces the SMART fan control with a script that monitors your CPU temperature and alters the fan speed based on your CPU temperature.
GNU Lesser General Public License v3.0
12 stars 7 forks source link

TVS-873e #3

Open berlincount opened 5 years ago

berlincount commented 5 years ago

Hello,

and thanks for the script! :)

[~] # bash FanControl.sh
=====================================================
No Warranty given or implied. Use at your own risk.
=====================================================
You are running FanControl which will change your
system fan speeds based on cpu temperature. Currently
only supports QNAP TS-870 and TS-853A models.
===================================================
Checking if your model is supported...
===================================================
========================================================
Your model is not supported, please file an issue
at https://github.com/edddeduck/QNAP_Fan_Control/issues
include all the information above in the issue
========================================================

not much information above, though :-D

[~] # getsysinfo
cputmp : get CPU temperature
systmp : get system temperature
sysfan [fan no] : get system fan speed
sysfannum : get total system fan number
hdnum : get total system SATA disk number
hdtmp [disk no] : get SATA disk temperature
hdstatus [disk no] : get SATA disk status
hdmodel [disk no] : get SATA disk model
hdcapacity [disk no] : get SATA disk capacity
hdsmart [disk no] : get SATA disk SMART summary
model : get system model name
sysvolnum : get system volume number
vol_desc [volume no] : get volume description
vol_fs [volume no] : get volume file system
vol_totalsize [volume no] : get volume total size
vol_freesize [volume no] : get volume free size
vol_status [volume no] : get volume status[~] # getsysinfo model ; echo
TVS-873
[~] # getsysinfo cputmp ; echo
57 C/134 F
[~] # getsysinfo systmp ; echo
47 C/117 F
[~] # for I in `seq 0 11` ; do getsysinfo hdtmp $I ; echo ; done
-- C/-- F
62 C/143 F
59 C/138 F
47 C/116 F
48 C/118 F
48 C/118 F
46 C/114 F
46 C/114 F
46 C/114 F
43 C/109 F
30 C/86 F
-- C/-- F
[~] # getsysinfo sysfannum
2
[~] # for I in `seq 0 3` ; do getsysinfo sysfan $I ; echo ; done

1140 RPM
1125 RPM

HD 1+2 are M.2 SSD, HD 9 is a Hot Spare, HD 10 is an idle SSD

The two huge fans in the back seem listed, but it seems to have an additional small CPU fan for which I can't get the speed directly I guess?

Screenshot 2019-09-04 at 15 55 29
[~] # hal_app --se_sys_getinfo enc_sys_id=root
ENCLOSURE_INFO *********************************
enc_id = -1
enc_parent_sys_id = root
enc_parent_port_id = 0
enc_sys_id = root
wwn = 00 00 00 00 00 00 00 00
vendor = QNAP
model = TVS-873
SN = Q191I01882
revision =
status = 0
capability = 0x9614db1c
extended capability = 0x0
protocol = 0
max_disk_num = 10
max_fan_num = 2
max_cpu_fan_num = 1
default_cpu_fan_count = 1
factory_cpu_fan_count = 1
max_temp_num = 2
link_speed = 0
ENCLOSURE_INFO END*******************************
[~] # hal_app --se_sys_get_fan enc_sys_id=root,obj_index=0
enc_sys_get_fan(3744):fan index = 0,ret = 0,fan = 1134 rpm,fan_fail = 0
[~] # hal_app --se_sys_get_fan enc_sys_id=root,obj_index=1
enc_sys_get_fan(3744):fan index = 1,ret = 0,fan = 1113 rpm,fan_fail = 0
[~] # hal_app --se_sys_get_fan enc_sys_id=root,obj_index=2
enc_sys_get_fan(3744):fan index = 2,ret = -1,fan = 0 rpm,fan_fail = 0

Maybe you got more ideas :)

ProNow1 commented 2 months ago

Hi, how can i calculate the following values for a particular Qnap nas?

EXAMPLE... cpuStepTemp=( 43 45 47 49 51 54 58 ) # TS-870 temps at which to change fan speed cpuStepFan1=( 1 2 2 3 4 4 7 ) # Fan modes for Fan1 to match cpu temp step changes cpuStepFan2=( 2 2 3 4 5 6 7 ) # Fan modes for Fan2 to match cpu temp step changes

Thank you