DISABLE HDD TEMP CHECK - HDD SPINDOWN RE-ENABLED
1 - Comment lines on /etc/argon/argonsysinfo.py defs "argonsysinfo_gethddtemp" and "argonsysinfo_getdevhddtemp" to look like this:
def argonsysinfo_gethddtemp():
# May 2022: Used smartctl, hddtemp is not available on some platforms
hddtempcmd = "/usr/sbin/smartctl"
if os.path.exists(hddtempcmd) == False:
# Fallback for now
hddtempcmd = "/usr/sbin/hddtemp"
outputobj = {}
# if os.path.exists(hddtempcmd):
# try:
# tmp = os.popen("lsblk | grep -e '0 disk' | awk '{print $1}'").read()
# alllines = tmp.split("\n")
# for curdev in alllines:
# if curdev[0:2] == "sd" or curdev[0:2] == "hd":
# tempval = argonsysinfo_getdevhddtemp(hddtempcmd,curdev)
# if tempval > 0:
# outputobj[curdev] = tempval
# return outputobj
# except:
# return outputobj
return outputobj
def argonsysinfo_getdevhddtemp(hddtempcmd, curdev):
cmdstr = ""
# if hddtempcmd == "/usr/sbin/hddtemp":
# cmdstr = "/usr/sbin/hddtemp -n sata:/dev/"+curdev
# elif hddtempcmd == "/usr/sbin/smartctl":
# cmdstr = "/usr/sbin/smartctl -d sat -A /dev/"+curdev+" | grep Temperature_Celsius | awk '{print $10}'"
#
tempval = 0
# if len(cmdstr) > 0:
# try:
# temperaturestr = os.popen(cmdstr+" 2>&1").read()
# tempval = float(temperaturestr)
# except:
# tempval = -1
#
return tempval
2 - Save & exit
3 - Reboot
1 Like