LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-11-2019, 09:21 PM   #1
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 985

Rep: Reputation: 237Reputation: 237Reputation: 237
Best practice CPU temp monitoring: -current


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:

Code:
${color black}CPU Temp:${alignr}${execi 10 cat /sys/class/hwmon/hwmon0/temp1_input | cut -c 1-2}C
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:

Code:
andrew@ilium~$ sensors
k10temp-pci-00c3
Adapter: PCI adapter
Tdie:         +21.8C  (high = +70.0C)
Tctl:         +48.8C  

k10temp-pci-00cb
Adapter: PCI adapter
Tdie:         +21.5C  (high = +70.0C)
Tctl:         +48.5C  

andrew@ilium~$
Thanks...
 
Old 06-11-2019, 10:39 PM   #2
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64
Posts: 244

Rep: Reputation: 21
I use glances for monitoring my system in real time. If you're running KDE then ksysguard can be configured to monitor what you want.

Last edited by 3rensho; 06-11-2019 at 10:40 PM.
 
1 members found this post helpful.
Old 06-11-2019, 10:58 PM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 985

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by 3rensho View Post
I use glances for monitoring my system in real time. If you're running KDE then ksysguard can be configured to monitor what you want.
I confess that I had not heard of either of these and a quick inspection shows that they both make conky look a little 'old school'
 
Old 06-12-2019, 01:32 AM   #4
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64
Posts: 244

Rep: Reputation: 21
I just upgraded psutil to 5.6.3 and glances reports diskio now.
 
Old 06-12-2019, 07:35 AM   #5
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 748
Blog Entries: 3

Rep: Reputation: 233Reputation: 233Reputation: 233
Another way to get that info without having to use cat / shell commands is to use hwmon in your conky config. Should be more efficient than execi.


Something like:
Code:
${hwmon 0 temp 1}

http://conky.sourceforge.net/variables.html
Quote:
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).
 
Old 06-12-2019, 05:11 PM   #6
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 231

Rep: Reputation: 47
used gkrellm for years give it a try
 
1 members found this post helpful.
Old 06-15-2019, 05:55 AM   #7
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 328

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lm_sensors cpu temp v.slightly different to MOBO temp on Intel D865GLC sc_3007 Linux - Hardware 5 11-13-2009 12:17 PM
nForce 4 CPU temp monitoring Slagathor Linux - Software 5 02-19-2006 11:44 PM
Monitoring CPU temp.? NSKL Linux - General 28 06-21-2002 09:11 PM
monitoring cpu temp within linux jonfa Linux - General 7 02-24-2002 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration