new temp zone

This commit is contained in:
committer@tuxwarrior
2026-05-08 12:13:49 -05:00
parent c5a20c2e1a
commit 32f2a66dd9
+2 -1
View File
@@ -7,6 +7,7 @@
# `for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done`
# list all temperatures:
# `find /sys/devices -name "temp*_input"`
# `find /sys/devices -name "temp*_input" -exec sh -c 'echo "{}"; cat "{}"' \;`
# pch_cometlake @ tuxwarrior (i found out by doing more on all tmp input files, and comparing with psensor values):
# `/sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input` = `/sys/class/hwmon/hwmon6/temp1_input`
@@ -16,7 +17,7 @@ temp_file=$3
threshold_1=${threshold_1:=59}
threshold_2=${threshold_2:=65}
temp_file=${temp_file:=/sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input}
temp_file=${temp_file:=/sys/devices/virtual/thermal/thermal_zone1/hwmon6/temp1_input}
# the value is reported in milli-degrees celsius. we divide by 1000 to convert to degrees celsius
# icon: https://fontawesome.com/icons/temperature-full?f=classic&s=solid