Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Another slight Conky problem


  • Please log in to reply
16 replies to this topic

#1 Al1000

Al1000

  • Global Moderator
  • 7,163 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:45 AM

Posted 22 September 2016 - 01:59 AM

EDIT: This topic has been created by splitting posts from this thread:

http://www.bleepingcomputer.com/forums/t/627449/slight-conky-problem/

...in order to keep member's issues separate.

 

 

I've just installed conky following Al's directions from http://www.bleepingcomputer.com/forums/t/567477/how-to-install-and-configure-conky-system-monitor/  and I get the following from using <conky &>


What are the contents of your /sys/class/hwmon directory, and how many cores does your CPU have?


Edited by Al1000, 22 September 2016 - 02:59 AM.


BC AdBot (Login to Remove)

 


#2 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 22 September 2016 - 02:24 AM

Hi Al, knew you would have some answers, or at least, incisive questions.

 

 


What are the contents of your /sys/class/hwmon directory, and how many cores does your CPU have?

 

...however that first part is a bit like "How long is a piece of string?". Lol.

 

I have two (2) subfolders

  • hwmon0 (zero) and
  • hwmon1 (one)

and appear to be symlinked to elsewhere.

 

Each contains 3 subfolders (2 linked elsewhere) and 13 (hwmon0) to 27 (hwmon1) files.

 

Let me know how you would like the output, if you need it, ie screenshots or terminal output, and I will oblige.

 

2nd part is easy, CPU is quad core, dual thread, so 8.

 

:wizardball: Wiz



#3 Al1000

Al1000
  • Topic Starter

  • Global Moderator
  • 7,163 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:45 AM

Posted 22 September 2016 - 02:37 AM

Might be worth trying changing instances of "hwmon 1" and "hwmon 2" in the .conkyrc file, to "hwmon 0" and "hwmon 1" to see how that looks.

With my dual core CPU however, hwmon1 and hwmon2 measure the temperature of the two cores, and hwmon0 uses a different sensor to measure the temperature of the entire CPU - I think - so I couldn't guess how your computer works in this respect given that it has eight cores but your /sys/class/hwmon directory only has two sub-directories.

If you want bars for all the cores in your CPU, just add more lines increasing the numerals in each consecutive line by one, like so:
 
${color}CPU 1: ${cpu cpu1}% ${cpubar cpu1}
CPU 2: ${cpu cpu2}% ${cpubar cpu2}
CPU 3: ${cpu cpu3}% ${cpubar cpu3}
.
.
etc

Edited by Al1000, 22 September 2016 - 02:37 AM.


#4 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 22 September 2016 - 03:30 AM

 

If you want bars for all the cores in your CPU, just add more lines increasing the numerals in each consecutive line by one, like so:

 

Yes, thanks, I read that in your Post here http://www.bleepingcomputer.com/forums/t/567477/how-to-install-and-configure-conky-system-monitor   and was going to do next/soon.

 

I'll have a tweak or two and report back the outcome ... that is, if that is not flagging that I'll post soon ... should be next 24. :whistle:

 

I have been meaning to get into Conky for yonks, have a couple of my 37 Distros that ship with it as standard, and now I am looking forward to some serious play with them. :P

 

Heads up that I may be picking your brains a lot. :wink:

 

:wizardball: Wiz



#5 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 23 September 2016 - 04:15 AM

You'll find this interesting Al, I know I did.

I did a Save As on your Conky from the installing conky Topic, then used the original to tweak as per your suggestions.

The video following shows the outcome

It's more of focus than in, regrets - Kazam and Youtube usually work well, but you'll get the picture.




Terminal goes into a loop, which can't be broken by the use of Ctrl-C. The video actually shows the shorter version of what really happened the first time, because in between times I ran a <sudo apt-get purge conky-all> then reinstalled to check I wasn't making a mistake.

In the first instance, I couldn't even open a second instance of Terminal without it doing the same thing (hence also couldn't use Nano), so invoked Pluma, changed the settings back exited saving, and all was OK again.

Workaround (temporary) was to eliminate the 2nd instance involving hw2 temp 1, and then no errors.

Cheers

 

:wizardball: Wiz



#6 Al1000

Al1000
  • Topic Starter

  • Global Moderator
  • 7,163 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:45 AM

Posted 23 September 2016 - 05:10 AM

That is interesting. Thanks for the video. It's quite clear in HD and on full-screen.

What are the contents of your /sys/class/hwmon/hwmon1 directory?

Edited by Al1000, 23 September 2016 - 05:11 AM.


#7 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 23 September 2016 - 05:40 AM

In and out at the moment, but

 

chris@Adata ~ $ ls /sys/class/hwmon/hwmon1
device            temp1_max         temp3_input       temp5_crit
name              temp2_crit        temp3_label       temp5_crit_alarm
power             temp2_crit_alarm  temp3_max         temp5_input
subsystem         temp2_input       temp4_crit        temp5_label
temp1_crit        temp2_label       temp4_crit_alarm  temp5_max
temp1_crit_alarm  temp2_max         temp4_input       uevent
temp1_input       temp3_crit        temp4_label
temp1_label       temp3_crit_alarm  temp4_max
chris@Adata ~ $

 

...gotta say, I am getting really interested in this stuff :thumbup2:

 

:wizardball: Wiz



#8 Al1000

Al1000
  • Topic Starter

  • Global Moderator
  • 7,163 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:45 AM

Posted 23 September 2016 - 05:55 AM

Odd that you have 5 'inputs' for temperature. I thought there would be 4 or 8.

This is what I would try:
CPU 1 Temp: ${hwmon 1 temp 1}C    CPU 2 Temp: ${hwmon 1 temp 2}C
CPU 3 Temp: ${hwmon 1 temp 3}C    CPU 4 Temp: ${hwmon 1 temp 4}C
CPU 5 Temp: ${hwmon 1 temp 5}C
If one out of these five 'items' doesn't work, or reads significantly different from the others, delete that one, leaving four - one for each core. :)

You can then of course rename the remaining four, 1 - 4.

Edited by Al1000, 23 September 2016 - 05:57 AM.


#9 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 23 September 2016 - 06:36 AM

 

Odd that you have 5 'inputs' for temperature. I thought there would be 4 or 8.

 

Just call me the Wizard of Odd.

 

I'll give that stuff a shot over my weekend. Ta for the input, Al :thumbup2:

 

Out of here for the night

 

avagudweegend, all.

 

:wizardball: Wizard



#10 pcpunk

pcpunk

  • Members
  • 5,473 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:45 AM

Posted 23 September 2016 - 11:04 AM

Please Pardon me guys, but am very curious as to whether this is a Intel based or AMD based CPU?  As I understand, at least the older Dual Core AMD only report one temp for both cores, but not sure about newer Quad Core AMD?

 

And, maybe a stupid question because both you guys know far more than I, but has "lm_sensors" "sudo sensors-detect" been ran?

 

So far, because of time constraints, I have not got both AMD Sensors working in Conky.


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#11 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 23 September 2016 - 04:47 PM

Hi Punk, top of my morning to you :lol:

 

It is Intel-based, a little of my inxi output follows:

 

CPU:       Quad core Intel Core i7-4700MQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19156
           clock speeds: max: 3400 MHz 1: 2400 MHz 2: 2533 MHz 3: 2400 MHz
           4: 2490 MHz 5: 2400 MHz 6: 2549 MHz 7: 2451 MHz 8: 2661 MHz
 

 

... and you can see it includes 8 frequency measurements from the cores and threads.

 

I have run <sudo sensors-detect> as you suggested and the partial output is in the Spoiler

 

Spoiler

 

 

I have not gone further because I don't know enough about the program, and am hesitant to make changes to modules without knowing what I am doing nor what effect it might have.

 

I'll be in and out during my day. Although Al won't be on deck for another 8 - 9 hours, I will run his suggestions through to be ready for him to digest.

 

In this environment - LM 18.06 'Rosa' MATE, I am using conky v1.9.0.4, but I might try out on a couple of other Minties their 1.9's and maybe a 1.10 or two to compare.

 

Back later and

 

avagudweegend

 

:wizardball: Wiz



#12 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 24 September 2016 - 12:20 AM

@Al:

 

Done & dusted, looks good so far

 

ihIGA52.png

 

 

@Punk:

 

Mate I have a spare of each of at least 3 of my Minties on the Toshiba, and another in the garage. I might run that <sudo sensors-detect> through to completion on one of them, just to see what transpires.

 

@All:

 

I'll be in and out next couple of hours setting up file-sharing between 'buntus around the house, but I'll keep an eye on BC

 

Thanks all

 

:wizardball: Wizard



#13 Al1000

Al1000
  • Topic Starter

  • Global Moderator
  • 7,163 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:45 AM

Posted 24 September 2016 - 01:19 AM

the older Dual Core AMD only report one temp for both cores


That would be off-topic to discuss here, but please see my comments in the next post for more info.
 

And, maybe a stupid question because both you guys know far more than I, but has "lm_sensors" "sudo sensors-detect" been ran?


Many Conky scripts use lm-sensors, but hwmon is a more efficient way of getting CPU temperature readings.
 

So far, because of time constraints, I have not got both AMD Sensors working in Conky.


Please feel free to start another thread on this topic.

#14 Al1000

Al1000
  • Topic Starter

  • Global Moderator
  • 7,163 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:45 AM

Posted 24 September 2016 - 01:24 AM

@Al:
 
Done & dusted, looks good so far


Cool. Now it's just a matter of figuring out which reading represents what. Since you have run sudo sensors-detect, I suggest now running sensors to see what it reports regarding CPU temperature readings. If your CPU has the same protocol in this respect as my (older dual-core AMD) CPU, you will have one reading for "CPU temperature," in addition to separate readings for each core.

#15 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:45 PM

Posted 24 September 2016 - 04:02 AM

I just have to leave Xenial Xerus and get back into LM 17.3 'Rosa' which is the testbed for this stuff.

 

Just a couple of things:

  1. If you check the Spoiler content &c I did not complete the lm-sensor operation, but will complete on a different Distro on this Toshiba. That being so "Since you have run sudo sensors-detect," is not quite fully true
  2. Punk and I can no doubt collaborate in another Topic on the other material, but re "...but hwmon is a more efficient way of getting CPU temperature readings." above, ... Why or how so? Can you cite me some reading material? I am becoming very interested in this stuff.

Will look into the <sensors> side Sunday my time.

 

Thanks Al

 

:wizardball: Wizard






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users