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
Conky hardware monitors?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Conky hardware monitors?
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Conky hardware monitors?
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
${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
Re: Conky hardware monitors?
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
How would I go about checking to see if ACPI is installed and working correctly? =o
Re: Conky hardware monitors?
Exactly.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.
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:How would I go about checking to see if ACPI is installed and working correctly? =o
${acpitemp}°C ${alignr}(${cpu cpu1}%)
Re: Conky hardware monitors?
I did so and when I opened the temperature file, it was blank. o.o; Any thoughts?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
*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.
Re: Conky hardware monitors?
Tutorials, how-to's, scripts, screenshots and more: http://conky.linux-hardcore.com/
Re: Conky hardware monitors?
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.optimize me wrote:Tutorials, how-to's, scripts, screenshots and more: http://conky.linux-hardcore.com/
Re: Conky hardware monitors?
Thats totally awesome! Thanks! Oooh, I forsee hours and hours retooling my conky scripts now.optimize me wrote:http://conky.linux-hardcore.com/
Re: Conky hardware monitors?
xD yeah I've spent quite a deal of time editing mine today and yesterday. Take a look =DAK Dave wrote:Thats totally awesome! Thanks! Oooh, I forsee hours and hours retooling my conky scripts now.optimize me wrote:http://conky.linux-hardcore.com/
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