Score:4

Temperature monitoring failure

cn flag

I have been building a program that records the CPU temperature. I have used the command 'cat /sys/class/thermal/thermal_zone*/temp' to check the temperatures and initially it worked fine. Suddenly I noticed that the command does not work anymore and realized that /sys/class/thermal/ does NOT contain any 'thermal_zone' folders anymore. Only cooling_device* folders are present.

Can anybody tell me what has happened to the folders and how to restore them? Should I be worried about me CPU cooling now?

codlord avatar
ru flag
I can't answer specifically, only to say I have noticed these sys folders can sometimes change even between boots so I don't think you can assume they will stay the same. For example I used to use Conky to monitor `/sys/class/hwmon` which for me contain folders `hwmon0` to `hwmon3` some boots `hwmon3` would contain CPU core temps but on another boot a different day `hwmon3` would contain some other temperature sensor. The only way to be sure was to look at the `name` file within each folder. Now with Conky you can reference temp sensors by name so it's not a problem.
Doug Smythies avatar
gn flag
What is your processor make and model? Did you your kernel version change? If you boot the old kernel does it work?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.