SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-26 14:22:23

Obadobo
Member
Registered: 2011-06-12
Posts: 36
Website

Conky temperature misreading

Conky tells me that my netbook is at 0 degrees.  conkyrc has "Temperature: $alignr${acpitemp}C" (the C is because I've never found the degree symbol!).  It was reading correctly, and I think that the bug has arisen since booting from linux-image-2.6.39-bpo.2-686-pae rather than linux-image-2.6.32-5-686.  Could this be the source of the problem?

Any ideas gratefully received

Offline

Be excellent to each other!

#2 2011-08-26 14:24:34

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: Conky temperature misreading

CPU Temp: ${alignr}${hwmon 0 temp 1}°C

Offline

#3 2011-08-26 14:33:54

Obadobo
Member
Registered: 2011-06-12
Posts: 36
Website

Re: Conky temperature misreading

Great!  Thanks a million - plus I've got the ° symbol now.  But why did the old one stop working?

Offline

#4 2011-08-26 14:50:22

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: Conky temperature misreading

I'm not really sure why it changed, I suppose they probably consolidated the code for all of the different temperature sensors into one. Now if only I could get my Athlon LE-1600 to display something besides 40°.

Offline

#5 2011-08-26 15:10:40

Obadobo
Member
Registered: 2011-06-12
Posts: 36
Website

Re: Conky temperature misreading

Thanks again

Offline

#6 2011-08-26 15:26:28

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,282

Re: Conky temperature misreading

Obadobo wrote:

Conky tells me that my netbook is at 0 degrees.  conkyrc has "Temperature: $alignr${acpitemp}C" (the C is because I've never found the degree symbol!).  It was reading correctly, and I think that the bug has arisen since booting from linux-image-2.6.39-bpo.2-686-pae rather than linux-image-2.6.32-5-686.  Could this be the source of the problem?

Any ideas gratefully received

Some point between 2.6.36 and 2.6.38 acpitemp became depricated.  (Actually, I think it was already depricated by 2.6.36; support for it was just removed by 2.6.38.)

@mynis01:  Thanks for posting that; it looks very familiar. tongue

Offline

#7 2011-08-26 15:51:11

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: Conky temperature misreading

Shortly after posting in this thread, I upgraded my kernel to version and found a workaround for the temp sensor issue. I ran sensors-detect and then added the following line to conky:

CPUtemp: ${alignr}${execpi 8 sensors | grep 'Core0' | cut --characters 16-17}°C

This is a bit hack-ish, and it will probably have to be modified depending on your hardware/software configuration. Just look out the output of the "sensors" command and determine what the correct arguments for grep and cut are.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo