vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
552 stars 62 forks source link

Find-by-name policy for thermal zones #110

Open phrxmd opened 4 years ago

phrxmd commented 4 years ago

Name-based sensor search currently works for a hwmon-type tree where in the sensor tree under /sys/class/hwmon/hwmonN there is a file name with the name, and a file tempX_input with the temperature.

There's also a separate thermal zone hierarchy, e.g. under /sys/class/thermal that works differently, here there is a file type with the name, and the temperature readout is in a file called temp.

It would be nice if the name-based sensor detection would work not only on name files, but also on type files, then it could be used also with the thermal_zone hierarchy.