View Single Post
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#41
Originally Posted by Mentalist Traceur View Post
Keep in mind the only sensor we have that we can access from the N900's software for temperature is next to the battery, and thus represents a temperature that is true for only a small part of the phone.

That said, you also need power kernel installed and the right modules loaded to be able to get reads from that sensor to begin with. If you've got all those things, you can package the entire thing inside a status menu applet, yes.
In fact what you're talking about quite probably is the temperature of the battery gauge chip, which won't tell you anything useful neither about "temp of N900" (whatever that means, I'm sure it's not supposed to be the chip's temp of a peripheral chip), nor about true battery cell temperature either. Cell temp is obviously probed by a sensor connected to GAIA twl4030 ADCIN4 (iirc, maybe 1) and I dunno of any way to simply read out this value. Another possible source of battery cell temperature is via BB5 modem, as this chip also has a sensor attached for this purpose, but again I do not know of any pnatd AT cmd or libisi call to read out this value (though there *might* be and I'm simply not aware)

Another source of "temperature" reading frequently used seems to be a CPU chip sensor in OMAP3430. Alas it is evidently broken (rumour has it that's a silicon bug). My tests resulted in it showing rather weird values and eventually 'freezing' on a particular value of some 16°C when I tested it with ice-spray - so this one isn't really useful either. You don't want to powercycle the system to 'unfreeze' the CPU temp reading.

Whatever, for displaying a value in statusbar you need a .so built to do that. What for would you want to have that "temp" reading after all? I fail to see the valid usecase.

/j
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-03-27 at 13:11.