I'm using conky to show a status of my CPU temperatures, and overall I'm satisfied, except for one thing: Every time I reboot, the temperature status breaks!
Looking at conky's stderr I see this:
conky: can't open '/sys/bus/platform/devices/coretemp.0/hwmon/hwmon3/temp1_input': No such file or directory
"That's odd," I think, "this worked fine before I rebooted."
So then I go look in /sys/bus/platform/devices/coretemp.0/hwmon, and I discover that the folder that used to be called hwmon3 is now called hwmon4. "Okay," so I tweak my .conkyrc to refer to hwmon4 instead.
But then I reboot again and it's broken again!
Is there a way I can force that coretemp.0/hwmon device to always have the same folder hierarchy underneath it?
/sys/class/hwmon/, and in particular eachnamefile will tell you what the device is. Perhaps they are discovered in a parallel way and so get assigned numbers depending on the speed at which they respond. – meuh Jan 27 '19 at 17:09