Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Conky CPU temperature issue - SOLVED

User avatar
tascoast
Forum Regular
Forum Regular
Posts: 1166
Joined: Sat Aug 06, 2011 4:58 am

Re: Conky CPU temperature issue

#31

Post by tascoast » Sun Jan 28, 2018 4:54 am

I've tried looking at the MX-17 Conky. I can make occasional sense of color/formatting via html, while picking out the odd command to get info for conky to display.

Terminal output

Code: Select all

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +43.0°C  (high = +76.0°C, crit = +100.0°C)
Core 1:       +44.0°C  (high = +76.0°C, crit = +100.0°C)
Terminal output

Code: Select all

$ sensors | grep 'Core 0'
Core 0:       +42.0°C  (high = +76.0°C, crit = +100.0°C)
For the extract from the MX Conky text file below,
# CPU
${voffset -8}${font Open Sans:Bold:size=10}${color0}CPU ${color EC0100}${hr 3}
$color${font}Intel® Xeon® Processor E3-1241 ${freq_g cpu0}GHz $alignr $cpu%
${font}Core 0 ${color3}${execi 4 sensors | grep 'Core 0' | cut -c18-24} ${alignc 60}${color2}${cpubar cpu0}${color}
${font}Core 1 ${color3}${execi 4 sensors | grep 'Core 1' | cut -c18-24} ${alignc 60}${color2}${cpubar cpu1}${color}

I have deleted the surplus CPUs, being a twin core machine (inxi at bottom).
It appears that Terminal recognises grep but that Conky fails to obtain and/or display the output of the the commands in my case (blue highlight).
Perhaps I need to substitute a different command or alter some adjacent parameters but that's just guesswork after reading this thread.


Code: Select all

System:    Host: mx1 Kernel: 4.13.0-1-amd64 x86_64 bits: 64 Desktop: Xfce 4.12.3
           Distro: MX-17_x64 Horizon December 15, 2017
Machine:   Device: desktop System: LENOVO product: 7522RU3 v: ThinkCentre A58 serial: N/A
           Mobo: LENOVO model: N/A serial: N/A BIOS: LENOVO v: 5HKT52AUS date: 07/15/2010
CPU:       Dual core Intel Core2 Duo E7300 (-MCP-) cache: 3072 KB
           clock speeds: max: 2670 MHz 1: 1603 MHz 2: 2403 MHz
Graphics:  Card: Intel 4 Series Integrated Graphics Controller
           Display Server: x11 (X.Org 1.19.2 ) drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1680x1050@59.88hz
           OpenGL: renderer: Mesa DRI Intel G41 version: 2.1 Mesa 13.0.6
Audio:     Card Intel NM10/ICH7 Family High Def. Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.13.0-1-amd64
Network:   Card: Marvell 88E8057 PCI-E Gigabit Ethernet Controller driver: sky2
           IF: eth0 state: down mac: 00:01:6c:48:1a:77
Drives:    HDD Total Size: 1000.2GB (44.1% used)
           ID-1: /dev/sda model: WDC_WD10EZEX size: 1000.2GB
Partition: ID-1: / size: 34G used: 6.2G (20%) fs: ext4 dev: /dev/sda7
           ID-2: /home size: 31G used: 3.0G (11%) fs: ext4 dev: /dev/sda6
           ID-3: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
Sensors:   System Temperatures: cpu: 46.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 175 Uptime: 1:13 Memory: 864.8/3920.8MB Client: Shell (bash) inxi: 2.3.54 
Lenovo ThinkCentre A58 4GBRAM (64-bit), MX17/MX-16/antiX17/Mint 19

User avatar
asqwerth
Developer
Posts: 5174
Joined: Sun May 27, 2007 5:37 am

Re: Conky CPU temperature issue

#32

Post by asqwerth » Sun Jan 28, 2018 5:38 am

Conky seems to use things like sed and awk to extract the text from the exec-ed commands but I'm not into scripting.

This possibly might also work in conky: acpitemp
Or or might not.

https://ubuntuforums.org/showthread.php?t=1744012
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
tascoast
Forum Regular
Forum Regular
Posts: 1166
Joined: Sat Aug 06, 2011 4:58 am

Re: Conky CPU temperature issue

#33

Post by tascoast » Sun Jan 28, 2018 6:50 am

I googled and decided to just change numbers until I was seeing two different temperature readings of similar magnitude.

I don't really understand the numbers I changed or the logic of, simply trying various....using 3 to get the other cpu temp output was the winning guess.

I think I now have each CPU's temp sensors showing. It looks quite suitable to me at least, and a simplified coding of sorts, in keeping with the output style of the conky.
# CPU
${voffset -8}${font Open Sans:Bold:size=10}${color0}CPU ${color EC0100}${hr 3}
$color${font}Intel® Xeon® Processor E3-1241 ${freq_g cpu0}GHz $alignr $cpu%
${font}Core 0 ${color3}${hwmon 0 temp 2}C ${alignc 60}${color2}${cpubar cpu0}${color}
${font}Core 1 ${color3}${hwmon 0 temp 3}C ${alignc 60}${color2}${cpubar cpu1}${color}
*Note it is currently quite warm mid Summer here after temperatures of around 30C.
You do not have the required permissions to view the files attached to this post.
Lenovo ThinkCentre A58 4GBRAM (64-bit), MX17/MX-16/antiX17/Mint 19

User avatar
Eadwine Rose
Administrator
Posts: 9389
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky CPU temperature issue

#34

Post by Eadwine Rose » Sun Jan 28, 2018 8:10 am

Those are nice temps for an Intel processor!
MX-18.3_x64 May 26 2019 * 4.19.0-5-amd64 ext4 Xfce 4.12.3 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 390.116 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy5030

User avatar
tascoast
Forum Regular
Forum Regular
Posts: 1166
Joined: Sat Aug 06, 2011 4:58 am

Re: Conky CPU temperature issue

#35

Post by tascoast » Mon Jan 29, 2018 8:12 am

Eadwine Rose wrote:Those are nice temps for an Intel processor!
I'm getting 38C and 34C on a much cooler evening with light rain lingering after heavier falls during the day.
I don't know if one CPU is shouldering more load or if it's simply thermodynamics and slight cooling differences, or even if the sensors are calibrated and reliable.
Could I be running it hotter perhaps, if inclined :car: ?
FWIW my other machine did not respond to the preceding code change, so presumably other CPU design again.
Lenovo ThinkCentre A58 4GBRAM (64-bit), MX17/MX-16/antiX17/Mint 19

rickc
Forum Novice
Forum  Novice
Posts: 46
Joined: Tue Jan 23, 2018 5:01 pm

Re: Conky CPU temperature issue - SOLVED

#36

Post by rickc » Mon Jan 29, 2018 2:29 pm

Thanks all for the help

I've marked this as solved - basically the answer is lots of scripting patience, ie trying different stuff with the conkyrc until you get it right.

Post Reply

Return to “Software / Configuration”