LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Conky temp configuration (http://www.linuxquestions.org/questions/linux-software-2/conky-temp-configuration-708893/)

Deonild 03-03-2009 02:40 PM

Conky temp configuration
 
I'm setting up Conky on Archlinux and can't get temp to show.
I installed lm_sensors and got 1 temp reading which is good enough, but can't find out to use it. "Conky variables" guide shows how to use acpi, so i installed acpi and acpid and even put acpid in /etc/rc.conf modules to load (not sure that I need acpi, probably will uninstall).
$sensors output is:

k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +38.0'C

/proc/acpi$ acpi -V gives me:

Cooling 0: Processor 0 of 0

so maybe my system is not acpi compatible.

My current line in ~/.conkyrc for temp, which doesn't work, it shows 0 degrees is:

${color grey}CPU Temp:$color ${acpitemp}${color grey} Celcius

How can I use core0 Temp from sensors for conky??. Don't have "i2c" or other things like that which I've seen on other posts, rather nothing in i2c.

Thx for any ideas

Sgt Canuck 04-14-2009 04:59 PM

1 Attachment(s)
Quote:

Originally Posted by Deonild (Post 3463718)
I'm setting up Conky on Archlinux and can't get temp to show.
I installed lm_sensors and got 1 temp reading which is good enough, but can't find out to use it. "Conky variables" guide shows how to use acpi, so i installed acpi and acpid and even put acpid in /etc/rc.conf modules to load (not sure that I need acpi, probably will uninstall).
$sensors output is:

k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +38.0'C

/proc/acpi$ acpi -V gives me:

Cooling 0: Processor 0 of 0

so maybe my system is not acpi compatible.

My current line in ~/.conkyrc for temp, which doesn't work, it shows 0 degrees is:

${color grey}CPU Temp:$color ${acpitemp}${color grey} Celcius

How can I use core0 Temp from sensors for conky??. Don't have "i2c" or other things like that which I've seen on other posts, rather nothing in i2c.

Thx for any ideas

Oh I'm sure it is compatible. Not knowing Arch Linux and/or you machine and not being a geek either I'm at a loss except for one thing.

It seems on every "distro" that has conky threads send people to: Post your .conkyrc files w/ screenshots on the Ubuntu Forums. With 645 pages it's HUGE! I know there at least 5 people there that use Arch. Go to the last page and pop in a question, 10 to 1 you get a response within an hour.

If I knew more I would help but I had to ask for help myself and this line, displaying CPU Temp, Core Temp M/B Temp and GPU Temp, was the result:
Code:

${font DejaVu Sans Mono:bold:size=9}${color3}CPU: ${color5}${execpi 8 sensors | grep 'CPU Temp' | cut --characters 15-16 | xargs ~/Conky/scripts/ColorTempCPU.sh}${color}${goto 65}${color3}Core: ${execpi 8 sensors | grep 'Core0' | cut --characters 15-16 | xargs ~/Conky/scripts/ColorTempCore.sh}${color}${goto 135}${color3}M/B: ${execpi 8 sensors | grep 'M/B Temp' | cut --characters 15-16 | xargs ~/Conky/scripts/ColorTempMB.sh}${color}${goto 200}${color3}GPU: ${execpi 8 sh -c "DISPLAY=:0.0 nvidia-settings -q gpucoretemp | grep Attribute | cut --characters 41-42" | xargs ~/Conky/scripts/ColorTempGPU.sh}${font}
the trick is to know what to grep and where to cut. :)

Ask, trust me, you will get an answer, I did. :)
Have a nice day.
Bruce

Have a nice day.
Bruce


All times are GMT -5. The time now is 04:32 AM.