SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a new computer build and I am keen to watch the CPU temp while I am getting used to it and the AIO cooler I have installed. At the moment I am using conky with:
Does this seem reasonable to more experienced users? This certainly tracks rise and fall pretty accurately. I had a look at sensors but I do not understand the output:
Hwmon sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one hwmon device. Parameter type is either 'in' or 'vol' meaning voltage; 'fan' meaning fan; 'temp' meaning temperature. Parameter n is number of the sensor. See /sys/class/hwmon/ on your local computer. The optional arguments 'factor' and 'offset' allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'. Note that they have to be given as decimal values (i.e. contain at least one decimal place).
conky/gkrellm will show temperatures in real time as mentioned above. But I don't think you are happy with the idea of wasting your life staring at the monitor to watch that :-)
Additionally, run something that tracks temperature and saves it over time, so you could fire up a web browser and have a look at a graph for a long period of time whenever you need. You'll have to investigate because there's plenty of options. It can be an enterprise-scale behemoth like nagios/zabbix, collectd with sensors plugin enabled, or something more lightweight to run on a desktop. My personal favorite is monitorix. SBo has a buildscript for it. I can get daily/weekly/monthly/yearly graphs there for a lot of things, including CPU temperatures.
Like a dog with a bone I cannot let go of this thread . Spurred along by some undoubtedly spurious temps generated with kernel 5.7.x and 5.8 I have had a closer look at lm-sensors and hopefully sorted out a more definitive CPU temperature monitoring. With lm-sensors configured properly and the appropriate modules loaded I have the following:
But I guess the issue is that there can never really be a definitive method of monitoring CPU temp as there will be too much variability with available sensors, mobo types, Linux kernel and even installed version of lm-sensors. Fascinating though
On a rainy weekend I will work on that syntax a little as a 'serial' cut command is never the most efficient way of doing things...
coralfang is right, this is the correct way to monitor CPU temps with conky. This way will give you real time monitoring.
I really don't see any justification for calling one method correct over another especially when the kernel dev team specifically recommends lm-sensors to interpret hwmon. They act essentially the same with the same API but "sensors" is specific to the chipset kernel modules and labels it's reports.
I've used bare lm-sensors, gkrellm (which is a rather old and clunky interface) and conky. Conky requires knowing some code instead of just selecting someone else's work as a kind of module with very minor specifics in how much is reported in what fields. GKrellm works and is a perfectly fine choice but it does show it's age and limitations in display. Conky is definitely more flexible and individual, even if it is sometimes a pita but that's actually because of the many variations in WM/DEs.
Presently and for a few years now I've been using this format for CPU temps in real time
I really don't see any justification for calling one method correct over another especially when the kernel dev team specifically recommends lm-sensors to interpret hwmon. They act essentially the same with the same API but "sensors" is specific to the chipset kernel modules and labels it's reports.
I've used bare lm-sensors, gkrellm (which is a rather old and clunky interface) and conky. Conky requires knowing some code instead of just selecting someone else's work as a kind of module with very minor specifics in how much is reported in what fields. GKrellm works and is a perfectly fine choice but it does show it's age and limitations in display. Conky is definitely more flexible and individual, even if it is sometimes a pita but that's actually because of the many variations in WM/DEs.
Presently and for a few years now I've been using this format for CPU temps in real time
I didn't mean to insinuate one way is wrong over another. What I mean is that conky devs and users generally accept ${hwmon 0 temp 1} is the most universally excepted way to get real time monitoring of CPU temps. But conky is not picky, if it works it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.