How do I set up Conky to see 2x CPUs?

Asked by coljohnhannibalsmith

I'm using Conky as a system monitor. My unit has 2x TL50 CPUs. Does anyone know how to set up Conky to see both?

I've also modified the .conkyrc file so that when I execute it from Terminal it opens in it's own window, with the normal window controls; such as minimize, maximize & close; but when I run it at startup with the Sessions Manager it opens pinned to the Desktop and I can't close it. Has anyone solved this problem?

John

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu conky Edit question
Assignee:
No assignee Edit question
Solved by:
coljohnhannibalsmith
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

This may help you, look for 2.nd CPU: http://conky.sourceforge.net/variables.html
here conky examples with .conkyrc file included http://conky.sourceforge.net/screenshots.html

Never tried but taked from man of conky

man conky

please try the param:

 -o Create own window to draw

Hope this helps

Revision history for this message
Jim Hutchinson (jphutch) said :
#2

Use something like this in the .conkyrc

Core 0: ${color}${cpubar cpu1 8,50}
Core 1: ${color}${cpubar cpu2 8,50}

Change the 8 and 50 to a size you want. It's mostly trial and error. You can see mine in this screenshot -> http://ubuntukids.org/blog/wp-content/uploads/2007/11/gutsy_murrine_cappuccino.png.

Most people want conky pinned. If you want a window you should be able to change some of the settings. You probably need to mess with the own_window settings. I'm not sure though as I've never done it that way. If you want to close conky you can open a terminal and type

killall conky

And that will close it.

Revision history for this message
coljohnhannibalsmith (john-wakefield2) said :
#3

Thank you Jim,

This worked out well; unfortunately:

loadavg
acpitemp
top

do not allow cpu specific arguments.

I hope this will eventually change; but I'm not about to recode this app. I primarily need a temperature sensor to warn me if I'm in danger of harming my unit while I try overclocking it and none of the other temperature reporting apps work.

-John

Revision history for this message
Jim Hutchinson (jphutch) said :
#4

I'm not 100% sure but I think loadavg gives you a readout based on both cores which is pretty much what you want anyway. I've never used top in conky. As for temps, that depends a lot on your chipset and how well it's supported. On my previous MSI board things worked well. On a newer Asus board they don't. I had to use some slight of hand to get it to work. Basically, I had to point conky to a little script to poll for temps

Core Temp: $color${execi 5 /home/jim/cputemp.sh}

The script is used looks like this

#!/bin/bash
echo $(($(cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp1_input) / 1000))

It gives the readout of core 1 but the temps for the two cores are very similar so it's a good approximation of things. I suppose you could modify this to do temps for both cores if you wanted. That script is also specific to my chipset so it may not work for you.

There is a tool called lm-sensors that you may want to install if you haven't. Getting it set up is a bit of a pain. I found a how to on the ubuntu forums once that helped but I think it was mostly random luck that I got it working. Sorry, I don't have a link for that.

Revision history for this message
Jim Hutchinson (jphutch) said :
#5

Okay, found a link on lm-sensors if you need it.

http://ubuntuforums.org/showthread.php?t=2780