Conky Showoff thread

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

It is an i7 4770k. This has 4 cores and 4 hyperthreads, but shows up as an 8 core CPU on Desktop Gadgets' CPU Monitor in Windows 10.

That's all I can tell you, other than this was a very expensive (almost $400 retail) CPU to purchase!!! :shock:

I also have a couple of other 8 core Conkeys but none of them have the temps in them, thus I much prefer this one.

If you could post the complete Conkey code that you think will work correctly, I'll form a Conkyrc out of it and give it a try.

That's the best I can do because I am a complete neophyte when it comes to coding anything!
Last edited by Todd Sauve on Sat Jul 23, 2016 9:46 pm, edited 2 times in total.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

From the screenshot I'm posting here, I don't think you are correct about the same core showing up multiple times in the conky. As you can see, the frequencies are all different for every core so you must not be correct in your assumption, though the other screenshot could lead you to conclude that. (That screenshot was captured while running one of the standard but simple Linux CPU benchmarks. I think it was CPU Queens, or something like that, and it seemed to stress all of the cores equally for the short time that it ran.)

However, if you see a flaw in my reasoning, please correct me and show me from the code why you are right because I just don't understand it.

AS I said, I am a complete newcomer to this coding and conky business. :?

[img]
Screenshot%20from%202016-07-20%2002-16-42.jpg
[/img]
Sector11

Re: Conky Showoff thread

Post by Sector11 »

1. Let's talk temperatures:

You did not post the results of "sensors" in a terminal that I asked for, that would have shown "me" what I wanted to see.

Take a real good look at the conky in the "image" you posted in the previous post. You have 5 cores with the same temperature - CPUs 4 to 8 show: 38° You did not show the code in that post BUT in your original code you posted here there are problems with the temperatures. You are showing "Core 3" five times.

As I have said: AMD only shows the temperature of the "chip" be it single or multiple core CPU, but Intel chips show temperatures of individual cores. As you have said, you have a Quad core chip hyperthreaded to 8 cores. However you only have temps for the first "physical" 4 cores. Personally I would only show the temps on every second core: "Core 0 - 3"

Here's your code .... italics and italics-bold are mine for emphasis
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD${font Snap.se:size=8} ${color1}${hr}${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}A${font} CPU 1: ${cpu cpu 0}%${goto 120} ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 0}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 2: ${cpu cpu 1}%${goto 120} ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 3: ${cpu cpu 2}%${goto 120} ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 4: ${cpu cpu 3}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 5: ${cpu cpu 4}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 5} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 6: ${cpu cpu 5}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 6} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 7: ${cpu cpu 6}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 7} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 8: ${cpu cpu 7}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 8} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
${voffset -5}
2. Now lets look at the same code regarding CPU usage in percents:

http://conky.sourceforge.net/variables.html

Code: Select all

cpu 	(cpuN)
 	CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
From that it's plain to see that ${cpu} or ${cpu cpu0} represent the "average"
Do not confuse ${cpu cpu0} with "Core 0" for temperatures here. "Core 0" is an 'Intel' thing - AMD calls them CPU's and starts the counting at CPU1. Now conky does "individual" usage % for each core (Intel) or cpu (AMD) in the same manner:
Dual 'chip' = ${cpu cpu1} ${cpu cpu2}
Triple 'chip' = ${cpu cpu1} ${cpu cpu2} ${cpu cpu3}
Quad 'chip' = ${cpu cpu1} ${cpu cpu2} ${cpu cpu3} ${cpu cpu4}
Octuple 'chip' = ${cpu cpu1} ${cpu cpu2} ${cpu cpu3} ${cpu cpu4} ${cpu cpu5} ${cpu cpu6} ${cpu cpu7} ${cpu cpu8}
etc

... and then "conky" add's a ${cpu} or ${cpu cpu0} command to get the average usage of all cores regardless of whether or not they are an Intel or AMD chip.

3. Frequencies
- again you didn't show "sensors" output that I asked for.

again from: conky.sourceforge.net/variables.html

Code: Select all

freq 	(n)
 	Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.

freq_g 	(n)
 	Returns CPU #n's frequency in GHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.
So OK, it shows all 8 of your "cores" both the 4 physical cores and the hyper-threaded cores.

But it's a strange command and in my opinion should read:
If omitted or you use to many, the parameter defaults to 1.
Remember my chip: a triple core AMD: Look at this code:

Code: Select all

${alignc}${color9}${swapbar 0,25}${color} ↓ test code ↓ ${color9}${swapbar 0,25}${color}
${color9}${swapbar 0}${color}

CPU  1 ${freq 0} MHz    ${freq_g 0} GHz
CPU  1 ${freq 1} MHz    ${freq_g 1} GHz
CPU  2 ${freq 2} MHz    ${freq_g 2} GHz
CPU  3 ${freq 3} MHz    ${freq_g 3} GHz
CPU  4 ${freq 4} MHz    ${freq_g 4} GHz
CPU  5 ${freq 5} MHz    ${freq_g 5} GHz
CPU  6 ${freq 6} MHz    ${freq_g 6} GHz
CPU  7 ${freq 7} MHz    ${freq_g 7} GHz
CPU  8 ${freq 8} MHz    ${freq_g 8} GHz
CPU  9 ${freq 9} MHz    ${freq_g 9} GHz
CPU 10 ${freq 10} MHz    ${freq_g 10} GHz
CPU 11 ${freq 11} MHz    ${freq_g 11} GHz
CPU 12 ${freq 12} MHz    ${freq_g 12} GHz
CPU 13 ${freq 13} MHz    ${freq_g 13} GHz
CPU 14 ${freq 14} MHz    ${freq_g 14} GHz

${color9}${swapbar 0}${color}
${alignc}${color9}${swapbar 0,25}${color} ↑ between lines ↑ ${color9}${swapbar 0,25}${color}
Notice the two CPU 1's up there - the first should be CPU 0, but the code shows ${freq 0} for the first one - my typo OOPS!
Image

My CPU is set to always use 3.21GHz as I have a desktop and set it up that way.

However when I had it set up to "fluctuate" the CPU frequencies I would get different reading for individual CPU's - for ${freq 1} ${freq 2} ${freq 3} the rest would all show what ${freq 1} shows.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Your understanding of conky is much better than mine!

However, I don't know how to show you the "sensors" info that you want ... :(

Even in Windows 10, the i7 fluctuates its frequencies from 800MHz to 4300MHz on an individual core basis. It is overclocked to 4.3GHz on 2 of its cores, while the other two max out at 4.2 GHz. The hyperthreaded cores follow suit on an individual basis. So the CPU seldom ever shows all cores at the same frequency unless a benchmark is being run at 100% speed or a program that uses all 8 cores is running. Even then it is very rare with programs for them to max out all the cpu cores. I think Handbrake will do it but not many others.
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Yea, I've been helping people with conky for nine years - I should retire, but I enjoy helping.
frequencies from 800MHz to 4300MHz That's a good thing.

In Linux open your terminal and type "sensors" and hit enter then copy and paste the results into code blocks here for me to see.
Image
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

OK, here's the sensors info.

Code: Select all

acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +45.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +45.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +43.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +43.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +40.0°C  (high = +80.0°C, crit = +100.0°C)

nct6791-isa-0290
Adapter: ISA adapter
Vcore:                  +0.90 V  (min =  +0.00 V, max =  +1.74 V)
in1:                    +1.00 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:                   +3.30 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:                  +3.30 V  (min =  +2.98 V, max =  +3.63 V)
in4:                    +1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:                    +1.96 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:                    +0.00 V  (min =  +0.00 V, max =  +0.00 V)
3VSB:                   +3.47 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:                   +3.36 V  (min =  +2.70 V, max =  +3.63 V)
in9:                    +1.11 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in10:                   +0.00 V  (min =  +0.00 V, max =  +0.00 V)
in11:                   +0.84 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in12:                   +0.00 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in13:                   +0.00 V  (min =  +0.00 V, max =  +0.00 V)
in14:                   +0.00 V  (min =  +0.00 V, max =  +0.00 V)
fan1:                   993 RPM  (min =    0 RPM)
fan2:                   979 RPM  (min =    0 RPM)
fan3:                   872 RPM  (min =    0 RPM)
fan4:                     0 RPM  (min =    0 RPM)
fan5:                   805 RPM  (min =    0 RPM)
fan6:                   743 RPM
SYSTIN:                 +38.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
CPUTIN:                 +39.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN0:               -128.0°C    sensor = thermistor
AUXTIN1:               -128.0°C    sensor = thermistor
AUXTIN2:                +35.0°C    sensor = thermistor
AUXTIN3:               +127.0°C    sensor = thermistor
PECI Agent 0:           +37.5°C  
PCH_CHIP_CPU_MAX_TEMP:   +0.0°C  
PCH_CHIP_TEMP:           +0.0°C  
PCH_CPU_TEMP:            +0.0°C  
intrusion0:            ALARM
intrusion1:            ALARM
beep_enable:           disabled

asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

Sector11

Re: Conky Showoff thread

Post by Sector11 »

^ That's awesome. It shows that sensors sees the temperatures for the 4 'physical' cores you have.

And look at those fans ... that's good stuff as well.

You have a Laptop? I see battery voltage there:

Code: Select all

Vbat:                   +3.36 V  (min =  +2.70 V, max =  +3.63 V)
Go through your conky code and do one of two things (opinion, but you should do one of the two IMHO)

Take those last 4 "Core 3" temperatures and either:

1. - Remove the code from the lines, OR
2. - Change them to repeat "Core 0", "Core 1", "Core 2", "Core 3",

Personally, I'd do #2 if this was mine.

Do you have "inxi" installed? It has a "sensors" option that when combined with "sensors" can/might show you what temperatures belong to other pieces of your equipment ... here's mine to give you an idea:

Code: Select all

 25 Jul 16 @ 15:00:17 ~
  $ sensen
f71862fg-isa-0a00
fan1:        2029 RPM
temp1:        +39.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +41.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +29.0°C  (high = +70.0°C)

=-=-= INXI =-=-=
Sensors:   System Temperatures: cpu: 41.0C mobo: 29.0C gpu: 43C
           Fan Speeds (in rpm): cpu: 2029 fan-2: 0 fan-3: 0
 
 25 Jul 16 @ 15:01:58 ~
  $ 
GPU I get from 'Nivida' :)
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Sector11 wrote:^ That's awesome. It shows that sensors sees the temperatures for the 4 'physical' cores you have.

And look at those fans ... that's good stuff as well.

You have a Laptop? I see battery voltage there:

Code: Select all

Vbat:                   +3.36 V  (min =  +2.70 V, max =  +3.63 V)
Go through your conky code and do one of two things (opinion, but you should do one of the two IMHO)

Take those last 4 "Core 3" temperatures and either:

1. - Remove the code from the lines, OR
2. - Change them to repeat "Core 0", "Core 1", "Core 2", "Core 3",

Personally, I'd do #2 if this was mine.

Do you have "inxi" installed? It has a "sensors" option that when combined with "sensors" can/might show you what temperatures belong to other pieces of your equipment ... here's mine to give you an idea:

Code: Select all

 25 Jul 16 @ 15:00:17 ~
  $ sensen
f71862fg-isa-0a00
fan1:        2029 RPM
temp1:        +39.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +41.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +29.0°C  (high = +70.0°C)

=-=-= INXI =-=-=
Sensors:   System Temperatures: cpu: 41.0C mobo: 29.0C gpu: 43C
           Fan Speeds (in rpm): cpu: 2029 fan-2: 0 fan-3: 0
 
 25 Jul 16 @ 15:01:58 ~
  $ 
GPU I get from 'Nivida' :)
Here's my inxi sensors output.

Code: Select all

CPU~Quad core Intel Core i7-4770K (-HT-MCP-) speed/max~3499/4300 MHz Kernel~4.4.0-31-generic x86_64 Up~1 min Mem~805.1/15916.6MB HDD~4731.0GB(0.2% used) Procs~248 Client~Shell inxi~2.2.35  
t
No, this isn't a laptop it's a desktop. For some reason it reads my mouse's battery as a laptop battery.

Here are the code changes I made to conkyrc, using your option 2 advice.

Code: Select all

${goto 10}${font StyleBats:size=12}A${font}  CPU 1: ${cpu cpu 0}%${goto 120}    ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 0}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 2: ${cpu cpu 1}%${goto 120}    ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 3: ${cpu cpu 2}%${goto 120}    ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 4: ${cpu cpu 3}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 5: ${cpu cpu 0}%${goto 120}    ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 6: ${cpu cpu 1}%${goto 120}    ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 7: ${cpu cpu 2}%${goto 120}    ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 8: ${cpu cpu 3}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
And here's a screenshot of the new conkyrc.

[img]
Conky%20clip.jpg
[/img]

Now the last four CPUs just seem to be exact copies of the first four, so something isn't right about your option 2. Unless I made a mistake somewhere in the code changes ...
Sector11

Re: Conky Showoff thread

Post by Sector11 »

^ Looks good. The last 4 temps are a repeat of the first fore temps because that is all you have. The "hyper-threaded cores", 5 to 8, do not have separate temperatures because they are not a physical device.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Sector11 wrote:^ Looks good. The last 4 temps are a repeat of the first fore temps because that is all you have. The "hyper-threaded cores", 5 to 8, do not have separate temperatures because they are not a physical device.
Hi again Sector11,

In Win 10, both the "All CPU Meter" and "CPU Monitor" gadgets from Desktop Gadgets assign the hyperthreaded cores a separate temp and frequency from the cores. That's why I disagree with you on this.

The way I had it set up originally did show separate temps and MHz, just like Desktop Gadgets.

Even the source you cite states this:

Architecturally, a processor with Hyper-Threading Technology consists of two logical processors per core, each of which has its own processor architectural state. Each logical processor can be individually halted, interrupted or directed to execute a specified thread, independently from the other logical processor sharing the same physical core.[7]

How could the PC just arbitrarily assign the hyperthreads different temps and MHz unless it is actually and genuinely reading two separate individual sensors per core--one for the core and the other for the hyperthread--in both Windows and Linux?

So I'm going to go with what logic tells me on this and retain my original setup. It must be correct.

Thanks for your help with this anyway. I genuinely appreciate your insights and the time you have taken to help me with this. You are a really community minded person, and I admire and applaud that!
Sector11

Re: Conky Showoff thread

Post by Sector11 »

OK - what ever you say.
But for temps - LINUX sees 4 Cores for temps.

Code: Select all

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +45.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +45.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +43.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +43.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +40.0°C  (high = +80.0°C, crit = +100.0°C)
I have not use ant Microsoft product sine W2K and have no idea about those.

Have a nice day.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

As you can see, even htop, when run from the Terminal in Linux, shows 8 cores!


1 [| 0.7%] 5 [ 0.0%]
2 [| 2.0%] 6 [ 0.0%]
3 [| 1.3%] 7 [| 1.3%]
4 [| 0.7%] 8 [|| 1.3%]
Mem[||||||| 914M/15.5G] Tasks: 76, 234 thr; 1 running
Swp[ 0K/0K] Load average: 0.19 0.16 0.16
Uptime: 00:20:50

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
1358 root 20 0 294M 84892 66252 S 1.3 0.5 1:16.49 /usr/lib/xorg/Xorg :0 -audit 0 -auth
2139 todd 20 0 1434M 222M 80476 S 0.7 1.4 0:46.23 cinnamon --replace
15476 todd 20 0 480M 36544 28348 S 0.7 0.2 0:00.15 /usr/lib/gnome-terminal/gnome-termina
2205 todd 20 0 625M 45464 29788 S 0.7 0.3 0:02.51 /usr/bin/python /usr/bin/solaar
2154 todd 20 0 625M 45464 29788 S 0.7 0.3 0:02.74 /usr/bin/python /usr/bin/solaar
2294 todd 20 0 854M 19640 14820 S 0.7 0.1 0:04.43 conky
2152 todd 20 0 380M 31692 25492 S 0.7 0.2 0:00.16 /usr/lib/policykit-1-gnome/polkit-gno
15530 todd 20 0 26144 3908 3148 R 0.0 0.0 0:00.05 htop
4478 todd 20 0 1209M 387M 105M S 0.0 2.4 1:26.64 /usr/lib/firefox/firefox
1634 todd 20 0 43392 3716 2768 S 0.0 0.0 0:00.85 /usr/bin/dbus-daemon --fork --print-p
1652 todd 20 0 43664 4676 3464 S 0.0 0.0 0:00.68 /usr/bin/dbus-daemon --config-file=/e
2297 todd 20 0 854M 19640 14820 S 0.0 0.1 0:00.34 conky
4518 todd 20 0 1209M 387M 105M S 0.0 2.4 0:00.09 /usr/lib/firefox/firefox
F1Help F2Setup F3SearchF4FilterF5Tree F6SortByF7Nice -F8Nice +F9Kill F10Quit
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Todd ...

I have never once said you do not have 8 cores, I know you have 8 cores:

The Linux application 'conky' shows:
CPU usage by percent: ${cpu cpu1} to ${cpu cpu8} and ${cpu} or ${cpu cpu0} shows the average percentile usage.

CPU frequencies: ${freq 1} to ${freq 8} shows the frequencies of the 8 cores

BUT "conky" only shows the temps of the 4 "physical" cores: "Core 0" to "Core 3"

If you check any conky code I posted you will see I support those 21 things: 8 %'s + 8 freq's + 4 temps = 20 + 1 average
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Hi again Sector11,

I'm afraid to debate all of this conky code business any more! You know a LOT more than me about it, and all I can say is what I said before. So anyway ... thanks again! :D

Here is a new screen shot of my latest compilation. It has enough info now to be really useful for anyone interested in showing the vitals of an Intel i7 with an Nvidia video card. I also managed to find code for bar graphs for the RAM and Hard Drive usage.

I think it looks awfully good now and it's a transparent Conky, though you can change the background colour to anything you like if you know how.

Getting proper code for Nvidia cards is NOT easy! Man! If anyone has the code to show the fan speed in RPMs for an Nvidia card please post it for me. All I can find is the percentage code.

Please note: You will have type in the proper name of your CPU, Nvidia video card and hard disk for them to show up correctly in your Conky.

Code: Select all

conky.config = {
	background = false,
	update_interval = 1,

	cpu_avg_samples = 2,
	net_avg_samples = 2,
	temperature_unit = 'celsius',

	double_buffer = true,
	no_buffers = true,
	text_buffer_size = 2048,

	gap_x = 30,
	gap_y = 90,
	minimum_width = 280, minimum_height = 460,
	maximum_width = 280,
	own_window = true,
	own_window_class = 'conky',
	own_window_argb_visual = true,
	own_window_argb_value = 120,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_transparent = true,
	background = false,
	border_inner_margin = 0,
	border_outer_margin = 0,
	alignment = 'bottom_right',

	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

	override_utf8_locale = true,
	use_xft = true,
	font = 'DejaVu Sans:size=10',
	xftalpha = 0.5,
	uppercase = false,

	default_color = 'white',
        color1 = 'cyan',
        color2 = 'white',


};

conky.text = [[
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM${font  Snap.se:size=8} ${color1}${hr}${color}

${goto 10}${font OpenLogos:size=12}J${font}   OS: ${execi 10800 cat /etc/issue.net}
${goto 10}${font StyleBats:size=12}q${font}   Kernel: ${kernel}
${goto 10}${font StyleBats:size=12}x${font}   CPU: Intel Core i7 4770k
${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD${font  Snap.se:size=8} ${color1}${hr}${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}A${font}  CPU 1: ${cpu cpu 0}%${goto 120}    ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 0}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 2: ${cpu cpu 1}%${goto 120}    ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 3: ${cpu cpu 2}%${goto 120}    ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 4: ${cpu cpu 3}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 5: ${cpu cpu 4}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 5} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 6: ${cpu cpu 5}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 6} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 7: ${cpu cpu 6}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 7} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font}  CPU 8: ${cpu cpu 7}%${goto 120}    ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 8} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}g${font}  RAM  $mem / $memmax ($memperc%)
${goto 32}${color1}${membar 5,230}${color}
${voffset -5}
${goto 10}${font conkycolors:size=12}i${font} ${voffset -5} Home:  ${fs_used /} / ${fs_size /}
${goto 32}${color1}${fs_bar 5,230}${color}
${voffset -5}
${goto 10}${font conkycolors:size=12}l${font}${voffset -6}${goto 32}Sandisk SSD:  I/O: ${diskio}
${voffset -5}
${goto 10}${font StyleBats:size=12}l${font}  Nvidia MSI GTX 770 OC:  ${exec nvidia-settings -t -q [gpu:0]/GPUCoreTemp} °C${goto 150}
${goto 32} Mem Used: ${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MB
${goto 32}${color2} GPU Fan: $color ${execi 10 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t}% 
]];
Screenshot from 2016-07-26 22-36-23a.jpg
Last edited by Todd Sauve on Wed Jul 27, 2016 12:56 am, edited 1 time in total.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip »

@Todd Sauve
Getting proper code for Nvidia cards is NOT easy! Man! If anyone has the code to show the fan speed in RPMs for an Nvidia card please post it for me. All I can find is the percentage code.

you are getting nvidia stats from nvidia-smi and nvidia-smi doesn't support RPM. this is a nvidia issue not conky.
Image
Sector11

Re: Conky Showoff thread

Post by Sector11 »

If you have 'inxi' installed you can get your Graphics card info from that:

Code: Select all

 
 31 Jul 16 @ 00:46:07 ~
  $ inxi -G
Graphics:  Card: NVIDIA GT218 [GeForce 210]
           Display Server: X.Org 1.16.4 driver: nvidia Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce 210/PCIe/SSE2 GLX Version: 3.3.0 NVIDIA 340.93
 
 31 Jul 16 @ 00:46:22 ~
  $ inxi -G | grep 'Card:' | cut -c 17-
 NVIDIA GT218 [GeForce 210]
and also harddrive info:

Code: Select all

 31 Jul 16 @ 01:05:13 ~
  $ inxi -D
Drives:    HDD Total Size: 500.1GB (21.3% used) ID-1: /dev/sda model: WDC_WD5000AAKX size: 500.1GB
... so you can grep/sed what you want.

Also conky has some built in 'nvidia' commands ... my old card doesn't get it all but it gets enough to keep me happy.

Also if you are going to use 'cat' to get the OS may as well use it to get the CPU you have as well:

Code: Select all

    OS: ${pre_exec cat /etc/issue.net}
Kernel: ${kernel}
   CPU: ${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c -10} \
${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 16-24}


--- GETS EVERY INSTANCE:
${pre_exec cat /proc/cpuinfo | grep 'model name' | cut -c 13-37}

--- TRIM IT BACK TO ONLY ONCE
   CPU: ${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}

--- 'CUT' THE INFO YOU WANT TO SHOW:
   CPU: ${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c -10} \
${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 16-24}


--- THIS IS NICE STUFF - Thank you Todd:
   GPU: ${pre_exec inxi -G | grep 'Card:' | cut -c 18-}: ${nvidia temp}°
 Mem Used: ${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} of \
${pre_exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MB

These are native conky commands:

    GPU Temperature: ${nvidia temp}°
       GPU slows at: ${nvidia threshold}°
Ambient Temperature: ${nvidia ambient}
      GPU Frequency: ${nvidia gpufreq}
   Memory Frequency: ${nvidia memfreq}
      Image Quality: ${nvidia imagequality}
Image

Actually INXI will give you a lot to play with ... even weather:

Code: Select all

 31 Jul 16 @ 01:05:20 ~
  $ s11
System:    Host: bunsen Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4) Desktop: Openbox 3.5.2 dm: lightdm
           Distro: BunsenLabs 8.5 bunsen-hydrogen
Machine:   Mobo: ECS model: MCP61M-M3 v: 7.0 Bios: American Megatrends v: 080015 date: 11/03/2010
CPU:       Triple core AMD Athlon II X3 450 (-MCP-) cache: 1536 KB
           flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 19286
           Clock Speeds: 1: 3200 MHz 2: 2000 MHz 3: 2000 MHz
Graphics:  Card: NVIDIA GT218 [GeForce 210] bus-ID: 02:00.0 chip-ID: 10de:0a65
           Display Server: X.Org 1.16.4 driver: nvidia Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce 210/PCIe/SSE2 GLX Version: 3.3.0 NVIDIA 340.93 Direct Rendering: Yes
Audio:     Card-1 NVIDIA MCP61 High Definition Audio driver: snd_hda_intel bus-ID: 00:05.0 chip-ID: 10de:03f0
           Card-2 NVIDIA High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 02:00.1 chip-ID: 10de:0be3
           Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
Network:   Card: NVIDIA MCP61 Ethernet driver: forcedeth port: d480 bus-ID: 00:07.0 chip-ID: 10de:03ef
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 500.1GB (21.3% used)
           ID-1: /dev/sda model: WDC_WD5000AAKX size: 500.1GB serial: WD-WCC2EMF62817
Partition: ID-1: / size: 20G used: 5.8G (32%) fs: ext4 dev: /dev/sda8
           ID-2: /media/5 size: 197G used: 65G (35%) fs: ext4 dev: /dev/sda5
           ID-3: /media/2-CBH size: 20G used: 3.4G (18%) fs: ext4 dev: /dev/sda2
           ID-4: /media/1-CBR size: 20G used: 7.6G (41%) fs: ext4 dev: /dev/sda1
           ID-5: /media/6R size: 20G used: 4.1G (22%) fs: ext4 dev: /dev/sda6
           ID-6: /media/10 size: 142G used: 5.0G (4%) fs: ext4 dev: /dev/sda10
           ID-7: /media/7H size: 20G used: 3.6G (20%) fs: ext4 dev: /dev/sda7
           ID-8: /home size: 20G used: 3.7G (20%) fs: ext4 dev: /dev/sda9
           ID-9: swap-1 size: 2.15GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
Sensors:   System Temperatures: cpu: 42.0C mobo: 31.5C gpu: 0.0:45C
           Fan Speeds (in rpm): cpu: 2092 fan-2: 0 fan-3: 0
Weather:   Conditions: 57 F (14 C) - Mostly Cloudy Wind: From the ESE at 8 MPH Humidity: 48%
           Pressure: 29.95 in (1014 mb) Time: July 31, 1:11 AM ART (America/Argentina/Buenos_Aires)
Info:      Processes: 160 Uptime: 15:04 Memory: 805.0/5985.6MB
           Init: systemd v: 215 runlevel: 5 Gcc sys: 4.9.2 alt: 4.8
           Client: Shell (bash 4.3.301 running in /usr/bin/termin) inxi: 2.1.28
 
 31 Jul 16 @ 01:11:15 ~
  $ 
Sector11

Re: Conky Showoff thread

Post by Sector11 »

trytip wrote:If anyone has the code to show the fan speed in RPMs for an Nvidia card please post it for me. All I can find is the percentage code.
I'm going hunting to see if I can find it.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Sector11 wrote:
trytip wrote:If anyone has the code to show the fan speed in RPMs for an Nvidia card please post it for me. All I can find is the percentage code.
I'm going hunting to see if I can find it.
Thanks Sector11! You are a gentleman and a scholar, as most of my fellow Canadians are! 8) :lol:

Unfortunately, the code you wrote to detect the CPU doesn't work. :(

CPU: ${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c -10} \
${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 16-24}
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Todd Sauve wrote:Thanks Sector11! You are a gentleman and a scholar, as most of my fellow Canadians are! 8) :lol:

Unfortunately, the code you wrote to detect the CPU doesn't work. :(

Code: Select all

CPU: ${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c -10} \
${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 16-24}
Just trying to help.

RE: ${pre_exec ...} vs ${execi 86400 ...}
I'm using conky v1.9 you are using conky v1.10
You don't have the ${pre_exec cat ...} command in that version of conky ... {hopefully} YET!
Change it to: ${execi 86400 cat...} and it will update once a day ... no sense in wasting CPU cycles updating it more often.

Also each "cat" call (where's Batman?) is a different length depending on the CPU. Recommend doing all the ground work in a terminal:

Code: Select all

 31 Jul 16 @ 11:10:35 ~
  $ cat /proc/cpuinfo | grep 'model name'
model name	: AMD Athlon(tm) II X3 450 Processor
model name	: AMD Athlon(tm) II X3 450 Processor
model name	: AMD Athlon(tm) II X3 450 Processor
 
 31 Jul 16 @ 11:10:50 ~
  $ cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq
AMD Athlon(tm) II X3 450 Processor
 
 31 Jul 16 @ 11:12:53 ~
  $ cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c -10
AMD Athlon
 
 31 Jul 16 @ 11:13:24 ~
  $ cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 16-24
II X3 450
 
 31 Jul 16 @ 11:13:47 ~
  $ 
As you see with the last two lines, I split the output into two calls to edit out the "(tm)". Script foo gurus out there could probably eliminate that second call and do it in one command ... but I'm not a script foo guru. :)
and in my conky:

Code: Select all

   CPU: ${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c -10} \
${pre_exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 16-24}
cat, grep, sed, cut and possibly fold commands are a blessing and a curse ... man pages are a blessing and my friend.
Last edited by Sector11 on Sun Jul 31, 2016 10:52 am, edited 1 time in total.
Sector11

Re: Conky Showoff thread

Post by Sector11 »

@ trytip...

No matter where I go all I see is % for Nvidia GPU fan speeds.

Some examples: Nvidia GPU Coolness
- my old stomping grounds: Automatically adjust Nvidia GPU fan speed - nice bash script.
- and if the ARCH Wiki only talks % values for the cards: NVIDIA/Tips and tricks, I think I'm safe in saying:

That's it folks: Nvidia GPU fan Speed are in % only not RPM
Locked

Return to “Compiz, Conky, Docks & Widgets”