Conky hardware monitors?

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
Sanjima

Conky hardware monitors?

Post by Sanjima »

Is there anyone that might be kind enough to walk me through adding hardware monitors to my Conky config?
(hardware monitors like CPU temperature and fan speed, case fan speed and HDD temperatures)

I have lm_sensors installed, and it works fine when I run "sensors" from the terminal. I just don't know how to get any of this data into my Conky output.

I'm running Linux Mint 7 Gloria, Main Edition. if that helps.

Here's a screenshot of the output produced by the sensors command, and my current conky config. :3
http://img24.imageshack.us/img24/9606/screenshot1fu.png
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
lagagnon

Re: Conky hardware monitors?

Post by lagagnon »

Here is my line for CPU temperature:

${color lightgrey}CPU Temp:${execi 60 sensors | grep CPU | cut -c 15-16}C

You have to use grep and cut properly to get the info off the sensors line. "grep" finds the CPU line and "cut" finds the correct columns of info from the line.

However, if ACPI is working and enabled correctly and you have a motherboard that supports certain ACPI facilities you might be able to get CPU temp directly from the file: /proc/acpi/thermal_zone
Sanjima

Re: Conky hardware monitors?

Post by Sanjima »

ooh, alrighty. And I suppose I can use the same code style to get voltage readings and anything else from the Sensors output.

How would I go about checking to see if ACPI is installed and working correctly? =o
lagagnon

Re: Conky hardware monitors?

Post by lagagnon »

Sanjima wrote:ooh, alrighty. And I suppose I can use the same code style to get voltage readings and anything else from the Sensors output.
Exactly.
How would I go about checking to see if ACPI is installed and working correctly? =o
Just use the file manager to navigate to /proc/acpi/thermal_zone/THRM/temperature and see if you see a temperature listed there, if that is the case then you don't need the above and you can do this:

${acpitemp}°C ${alignr}(${cpu cpu1}%)
Sanjima

Re: Conky hardware monitors?

Post by Sanjima »

lagagnon wrote:Just use the file manager to navigate to /proc/acpi/thermal_zone/THRM/temperature and see if you see a temperature listed there
I did so and when I opened the temperature file, it was blank. o.o; Any thoughts?

*edit: When I open the folder as root and look at the file icons where it shows a little preview of its contents, they don't appear to be blank. But when I open it with the text editor, it appears as if blank.
optimize me

Re: Conky hardware monitors?

Post by optimize me »

Tutorials, how-to's, scripts, screenshots and more: http://conky.linux-hardcore.com/
Sanjima

Re: Conky hardware monitors?

Post by Sanjima »

optimize me wrote:Tutorials, how-to's, scripts, screenshots and more: http://conky.linux-hardcore.com/
That website is kinda handy, I'd been looking through it a bit earlier. But its section on hardware monitors and their scripts was every small and didn't explain much at all.
AK Dave

Re: Conky hardware monitors?

Post by AK Dave »

Thats totally awesome! Thanks! Oooh, I forsee hours and hours retooling my conky scripts now. :)
Sanjima

Re: Conky hardware monitors?

Post by Sanjima »

AK Dave wrote:
Thats totally awesome! Thanks! Oooh, I forsee hours and hours retooling my conky scripts now. :)
xD yeah I've spent quite a deal of time editing mine today and yesterday. Take a look =D
http://img43.imageshack.us/img43/8429/niftyf.png

If you like it I can give you my .conkyrc for it, and the extra scripts and files involved. :3
Locked

Return to “Compiz, Conky, Docks & Widgets”